This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ROOT | |
import numpy as n | |
f = ROOT.TFile("flatDxyDistribution.root", "recreate") | |
t = ROOT.TTree("name_of_tree", "tree title") | |
# create 1 dimensional float arrays (python's float datatype corresponds to c++ doubles) | |
# as fill variables | |
pt = n.zeros(1, dtype=float) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Instructions: | |
Setup: | |
cmsrel CMSSW_6_2_0_SLHC28_patch1 | |
cd CMSSW_6_2_0_SLHC28_patch1/src | |
cmsenv | |
git cms-init | |
git cms-addpkg IOMC/ParticleGuns | |
git cms-addpkg Configuration/Generator | |
git cms-merge-topic dildick:from-CMSSW_6_2_0_SLHC28_patch1-FlatRandomPtAndDxyGunProducer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ROOT | |
import numpy as n | |
import os | |
from DataFormats.FWLite import Events, Handle | |
ROOT.gSystem.Load("libFWCoreFWLite") | |
ROOT.AutoLibraryLoader.enable() | |
# Make VarParsing object | |
# https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideAboutPythonConfigFile#VarParsing_Example | |
from FWCore.ParameterSet.VarParsing import VarParsing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dphi_lct_pad = { | |
"ME11" : { | |
"Eff90" : { | |
'Pt5 ' : { 'odd' : 0.01973612, 'even' : 0.00882833 }, | |
'Pt7 ' : { 'odd' : 0.01365808, 'even' : 0.00617709 }, | |
'Pt10' : { 'odd' : 0.00936448, 'even' : 0.00429574 }, | |
'Pt15' : { 'odd' : 0.00621199, 'even' : 0.00291556 }, | |
'Pt20' : { 'odd' : 0.00470086, 'even' : 0.00228806 }, | |
'Pt30' : { 'odd' : 0.00323728, 'even' : 0.00171338 }, | |
'Pt40' : { 'odd' : 0.00255076, 'even' : 0.00145611 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Auto generated configuration file | |
# using: | |
# Revision: 1.20 | |
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v | |
# with command line options: step2 --filein file:out.root --fileout file:out_digi.root --mc --eventcontent FEVTDEBUG --datatier GEN-SIM-DIGI-RAW --conditions DES23_62_V1::All --customise SimMuon/GEMDigitizer/customizeGEMDigi.customize_digi_addGEM_addME0_muon_only --step DIGI:pdigi_valid,L1,DIGI2RAW --geometry Extended2023HGCalMuon,Extended2023HGCalMuonReco --python_filename HGCal_config_DIGI.py --no_exec -n -1 --magField 38T_PostLS1 | |
import FWCore.ParameterSet.Config as cms | |
process = cms.Process('DIGI2RAW') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run quiet mode | |
import sys | |
sys.argv.append( '-b' ) | |
import ROOT | |
ROOT.gROOT.SetBatch(1) | |
ROOT.gErrorIgnoreLevel=1001 | |
from ROOT import * | |
import os | |
import numpy as np | |
from math import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import FWCore.ParameterSet.Config as cms | |
import subprocess | |
process = cms.Process("TEST") | |
process.load("Configuration/StandardSequences/GeometryDB_cff") | |
process.load("Configuration/StandardSequences/MagneticField_cff") | |
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff') | |
process.load("Configuration/StandardSequences/RawToDigi_Data_cff") | |
process.load("Configuration.StandardSequences.Reconstruction_cff") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from CRABClient.UserUtilities import config | |
config = config() | |
config.section_("General") | |
config.General.requestName = 'RAW2DIGI_RECO' | |
config.General.workArea = 'crab_projects_2016Hv2_run281976' | |
config.General.transferLogs = True | |
config.section_("JobType") | |
config.JobType.pluginName = 'Analysis' | |
config.JobType.psetName = 'L1REC0_RAW2DIGI_RECO.py' |
OlderNewer