Skip to content

Instantly share code, notes, and snippets.

View tahuang1991's full-sized avatar
:octocat:
quantum state

TaoHuang tahuang1991

:octocat:
quantum state
  • TAMU
  • College station
View GitHub Profile
# Configuration file to unpack CSC digis, run Trigger Primitives emulator,
# and compare LCTs in the data with LCTs found by the emulator.
# Slava Valuev; October, 2006.
import FWCore.ParameterSet.Config as cms
process = cms.Process("unpacker")
process.maxEvents = cms.untracked.PSet(
@tahuang1991
tahuang1991 / tmb_tao.v
Last active July 18, 2018 17:37
OTMBfw_Tao
`timescale 1ns / 1ps
//`define DEBUG_TMB 1
//`define DEBUG_MPC 1
//-------------------------------------------------------------------------------------------------------------------
// TMB
// Sends 80MHz data from ALCT and Sequencer to MPC
// Outputs ALCT+CLCT match results for Sequencer header
// Receives 80MHz MPC desision result, sends de-muxed to Sequencer
//------------------------------------------------------------------------------------------------------------------
// 03/04/2002 Initial
import sys
print "this is a test pyroot script"
print "import root here "
try:
import ROOT
except ImportError:
print " import ROOT error "
sys.exit()
#!/bin/bash
#SBATCH -J Test
#SBATCH -p background
#SBATCH -n1
#SBATCH --mem-per-cpu=2000
#SBATCH --time=72:00:00
#SBATCH -o Test-%A-%a.out
#SBATCH -e Test-%A-%a.err
#SBATCH --ntasks-per-core=1
#SBATCH --nodelist=c0[407]
The lines below might hint at the cause of the crash.
You may get help by asking at the ROOT forum http://root.cern.ch/forum.
Only if you are really convinced it is a bug in ROOT then please submit a
report at http://root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#6 0x00002b6e3ea8940e in clang::Lexer::SkipWhitespace(clang::Token&, char const*, bool&) () from /cvmfs/cms.cern.ch/slc6_amd64_gcc630/cms/cmssw/CMSSW_9_4
#7 0x00002b6e3ea8d848 in clang::Lexer::LexTokenInternal(clang::Token&, bool) () from /cvmfs/cms.cern.ch/slc6_amd64_gcc630/cms/cmssw/CMSSW_9_4_0_pre1/exte
#8 0x00002b6e3eaf6ac0 in clang::Preprocessor::Lex(clang::Token&) () from /cvmfs/cms.cern.ch/slc6_amd64_gcc630/cms/cmssw/CMSSW_9_4_0_pre1/external/slc6_am
# Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: step2 --conditions auto:phase2_realistic -n 10 --era Phase2C2_timing --eventcontent FEVTDEBUGHLT -s DIGI:pdigi_valid,L1 --datatier GEN-SIM-DIGI --geometry Extended2023D4 --python DigiFullPU_2023tiltedPU.py --no_exec --filein file:step1.root --fileout file:step2.root
import FWCore.ParameterSet.Config as cms
from Configuration.StandardSequences.Eras import eras
process = cms.Process('L1',eras.Phase2C2)
import FWCore.ParameterSet.Config as cms
import os
import subprocess
from Configuration.StandardSequences.Eras import eras
process = cms.Process('TEST',eras.Run2_2016)
process.load('Configuration.StandardSequences.Services_cff')
process.load('Configuration.EventContent.EventContent_cff')
# Run quiet mode
import sys
sys.argv.append( '-b' )
import ROOT
ROOT.gROOT.SetBatch(1)
#from Helpers import *
ROOT.gErrorIgnoreLevel=1001
from ROOT import *
import random
import os
# Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: step2 --conditions auto:phase2_realistic -n 10 --era Phase2C2_timing --eventcontent FEVTDEBUGHLT -s DIGI:pdigi_valid,L1 --datatier GEN-SIM-DIGI --geometry Extended2023D4 --python DigiFullPU_2023tiltedPU.py --no_exec --filein file:step1.root --fileout file:step2.root
import FWCore.ParameterSet.Config as cms
from Configuration.StandardSequences.Eras import eras
process = cms.Process('reL1',eras.Phase2C2)
# Run quiet mode
import sys
sys.argv.append( '-b' )
import ROOT
ROOT.gROOT.SetBatch(1)
from Helpers import *
from hybridAlgorithmPtAssignment import *
from TTTrackIsolation import *
ROOT.gErrorIgnoreLevel=1001