-
Notifications
You must be signed in to change notification settings - Fork 4
Analyzer
rymuelle edited this page Apr 13, 2018
·
5 revisions
If it is your first time, compile
scram b -j 8
In Create_Input.sh, supply your inputDir and name for filelist:
Folder="/store/group/alca_muonalign/ZMM_10_1_0_pre3_ideal_9M_2018_realisitic_2018_bad_step1/crab_ZMM_10_1_0_pre3_ideal_9M_2018_realistic_bad_step2_v2_full_reco_v2/180412_205117/"
fileTXT="MuAlRefit_ZMM_10_1_0_pre3_ideal_9M_2018_realisitic_2018_bad_list.py"
You can find your inputDir easily:
ls -lrt /eos/cms/store/group/alca_muonalign
Try running locally:
. analyzer891.sh
Then run:
. Create_Input.sh
Open muAlAnalyzer_Data_cfg.py
import FWCore.ParameterSet.Config as cms
import os
ijob = int(os.environ["IJOB"])
input_files = os.environ["INPUTFILES"].split(" ")
process = cms.Process("MUAL")
process.load("FWCore.MessageService.MessageLogger_cfi")
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring(*input_files))
process.muAlAnalyzer = cms.EDAnalyzer('MuAlAnalyzer',
debugLevel = cms.int32(1),
recoMuons = cms.InputTag("muAlMuons"),
recoBeamSpot = cms.InputTag("offlineBeamSpot"),
genParticle = cms.InputTag("genParticles"),
fillRecoMuons = cms.bool(True),
fillRecoDimuons = cms.bool(True),
fillGenMuons = cms.bool(False),
)
process.p = cms.Path(process.muAlAnalyzer)
process.TFileService = cms.Service("TFileService",
fileName = cms.string("out_%03d.root" % ijob)
)
Ask yourself: fillGenMuons = cms.bool(False), is this Data or MC? Does this MC file have gen info?
Make a new Dir:
mkdir MuAlRefit_MYSTUDY
cd MuAlRefit_MYSTUDY
cp ../$FILELIST$ .
cp ../muAlAnalyzer_Data_cfg.py .
cp ../createJobs.py .
python createJobs.py $FILELIST$ $N_JOBS$
FILELIST is the one you created and N_JOBS is the job splitting you want to use; recommend N_JOBS ~800 jobs and to remain in the range [500-900] jobs.
Now you can submit the jobs:
source submit.sh