13 TeV VH2mu - From scratch full recipe (OLD)

NB: The code on this page is not being kept up-to-date. Please go to the new page here

Using Github with CMS-H2Mu code

Moved to Sandbox.RootMaker

More old info

Misc. info

PileupInformation

PileupJSONFileforData

CMS.SWGuideCMSDataAnalysisSchool2012PileupReweighting

https://github.com/ekenn003/AnalysisTool/blob/7_2_5/AnalysisTool_ZH/ana_2mu_main.cc#L866

Efficiencies from Muon POG



Pileup collection in miniAODv2

before:

puInfo = cms.InputTag("addPileupInfo", "", "HLT"),

change to:

puInfo = cms.InputTag("slimmedAddPileupInfo"),

egamma collections in cmssw 74x

data version 1:

barrelHits = cms.InputTag("reducedEgamma", "reducedEBRecHits", "RECO"),
endcapHits = cms.InputTag("reducedEgamma", "reducedEERecHits", "RECO"),
esHits = cms.InputTag("reducedEgamma", "reducedESRecHits", "RECO"),
conversions = cms.InputTag("reducedEgamma", "reducedConversions", "RECO"),

data which has been reminiaod'd:

barrelHits = cms.InputTag("reducedEgamma", "reducedEBRecHits", "PAT"),
endcapHits = cms.InputTag("reducedEgamma", "reducedEERecHits", "PAT"),
esHits = cms.InputTag("reducedEgamma", "reducedESRecHits", "PAT"),
conversions = cms.InputTag("reducedEgamma", "reducedConversions", "PAT"),

Analysis

Step 2: Process ntuples with AnalysisTool

Installation

For the latest release and instructions, always check the README

These steps are for CMSSW 72X. These steps are for running the most recent release of AnalysisTool, which has been substantially modified to run on ntuples produced with the NEW RootMaker (will not work on ntuples made with MyRootMaker).

# set up scram area
cmsrel CMSSW_7_2_5
cd CMSSW_7_2_5/src/
cmsenv
git cms-init # this should always be done after a fresh cmsrel

# check out code
git clone -b 725_rootmaker https://github.com/ekenn003/AnalysisTool.git 

# build
cd $CMSSW_BASE/src/AnalysisTool/AnalysisTool

./configure --prefix=$CMSSW_BASE/src/AnalysisTool/AnalysisTool
make
make install
source AnalysisToolUseThis

Then we can make a directory for a specific channel we want to work on:

cd $CMSSW_BASE/src/AnalysisTool/
mkdir AnalysisTool_ZH
cd AnalysisTool_ZH/
cp ../ana_2mu_main.cc .

Prepare luminosity information (this should not be needed after next release)

Creating LUMI_INFO.root

Note for this section: the script update_pileup_info has to take a file called lumi.csv as input. Our merger script has to take a file called lumi.cvs as input (note the different file endings).

The following command takes as input the JSON used to create our ntuples (pay attention to the ending of lumi.*csv*):

brilcalc lumi --byls --normtag /afs/cern.ch/user/c/cmsbril/public/normtag_json/OfflineNormtagV1.json -i /afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/certification/Collisions15/13TeV/<MyJSON> -o lumi.csv

Execute the update_pileup_info script (you might have to chmod it first), then rename it so we can use it:

./update_pileup_info lumi.csv

mv lumi.csv lumi.cvs

we want to keep this result in our working directory, AnalysisTool_ZH/.

Then LUMI_INFO.root is created with the following commands:

# put the input file names into the input text file
ls $INDIR/*.root > $OUTDIR/$INFILE
echo "END" >> $OUTDIR/$INFILE
./../AnalysisTool/merger < $OUTDIR/$INFILE 

Variables:
$INDIR is the full path of the directory containing the AC1B_*.root files produced in step 1
$INFILE is a list of all the root files in $INDIR (with "END" appended so it knows when to stop)
$OUTDIR is the directory that will contain the results of the job (root and text output)
$OUTFILE is a text file that contains all the output from the job, at the end you can find the cutflow

Prepare pile-up reweighting

Getting pileup distribution

The following command takes as input the JSON used to create our data ntuples:

pileupCalc.py -i /afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/certification/Collisions15/13TeV/<MyJSON> --inputLumiJSON /afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/certification/Collisions15/13TeV/PileUp/pileup_latest.txt  --calcMode true --minBiasXsec 71000 --maxPileupBin 100 --numPileupBins 200  MyDataPileupHistogram.root

and outputs a root file with something like this:

which we will also keep in the working directory AnalysisTool_ZH/.

More info on data pileup information

Running

Modifying main.cc and run script

AnalysisTool is able to tell if it is running on data or monte carlo (assuming the ntuples were made properly). At the top of the job output you will see something like this:

...
Reading PileUp-Information
10000 Events are added.
Sample will be treated as MC.
Events 0 - 10000 will be processed (10000 Events).
...

Running

I don't really have a good way to do this. Right now I simply run it on lxplus inside the directory AnalysisTool/AnalysisTool_ZH with the following commands. Right now this entire process (including creation of LUMI_INFO.root if it does not exist) is basically automated with a script like this for each sample + this script.

Compile analysis code
Edit your analysis code (eg. ana_2mu_main.cc) and then (re)compile it:
# make a softlink to the analysis code called "main.cc"
ln -s ana_2mu_main.cc main.cc

rm main.o # if it already exists
make

Create input file
The input file has to have 3 things:
  • list of full paths to input files (AC1B_*.root)
  • full path to pileup histogram (MyDataPileupHistogram*.root) (There should only be one of these.)
  • END as the last line

An example of an input file might look like this:

/afs/cern.ch/work/e/ekennedy/eos/cms/store/user/ekennedy/mc/.../AC1B_1.root
/afs/cern.ch/work/e/ekennedy/eos/cms/store/user/ekennedy/mc/.../AC1B_2.root
/afs/cern.ch/work/e/ekennedy/eos/cms/store/user/ekennedy/mc/.../AC1B_3.root
/afs/cern.ch/work/e/ekennedy/eos/cms/store/user/ekennedy/mc/.../AC1B_4.root
...
/afs/cern.ch/work/e/ekennedy/work/.../CMSSW_7_2_5/src/AnalysisTool/AnalysisTool_ZH/MyDataPileupHistogram_v2.root
END

Run the analysis
# run the analysis
./myanalysis < input.txt > output.txt

Running in batch mode TODO

Step 3: Scale, fit, and plot results TODO

Final histograms are scaled by (lumi of data * sample cross section) / (sumWeights of sample)

Step 4: Datacards TODO

AnalysisTool_ZH

CMSSW release: 7_2_5

https://github.com/ekenn003/AnalysisTool

Installed according to the readme. Working on a file produced from TTbarH_M-125_13TeV_amcatnlo-pythia8-tauola/Phys14DR-PU40bx25_PHYS14_25_V1-v1/MINIAODSIM (10000 events).

Accessing a new variable from the ntuple

Example: muon_muID branch added to ntuple in MyRootMaker. At the analogous places for other branches... :

added to AnalysisTool/Analyse.h:

Int_t muon_muID[M_muonmaxcount];

added to AnalysisTool/Analyse.h:

skimtree->Branch("muon_muID", muon_muID, "muon_muID[muon_count]/I");
...
tree->SetBranchAddress("muon_muID", muon_muID);

(captial I = signed int, lowercase i = unsigned)

added to AnalysisTool/DataForm.h:

Int_t muID;
...
Int_t MuID() const { return(muID); }

added to AnalysisTool/DataForm.cc:

muID(ma->muon_muID[n]),

Now you can do themu.MuID().

Green led AK5 to AK4 jets

Changed AK5 and ak5 to AK4 and ak4 in the following files:

AnalysisTool/AnalysisTool/Analyse.cc
AnalysisTool/AnalysisTool/Analyse.h
AnalysisTool/AnalysisTool/AnalysisBox.h
AnalysisTool/AnalysisTool/DataForm.cc
AnalysisTool/AnalysisTool/DataForm.h
AnalysisTool/AnalysisTool_ZH/main.cc

After modifying files in AnalysisTool/AnalysisTool/ you have to repeat the installation recipe on the readme.

Green led AnalysisTool/Analyse.h: No such file or directory

g++  -O2 -Wall -Wno-unused-variable -Wno-unused-but-set-variable -Wno-sign-compare -I /cvmfs/cms.cern.ch/slc6_amd64_gcc481/cms/cmssw/CMSSW_7_2_4/external/slc6_amd64_gcc481/bin/../../../../../../lcg/root/5.34.18-cms12/include -ICMSSW_6_2_3/src/AnalysisTool_ZH/include  -c main.cc
main.cc:3:34: fatal error: AnalysisTool/Analyse.h: No such file or directory
 #include "AnalysisTool/Analyse.h"
                                  ^
compilation terminated.
make: *** [main.o] Error 1

Solution

You forgot to source bin/AnalysisToolUseThis.

Green led ERROR GetHLTriggerIndex

...
ERROR GetHLTriggerIndex: Trigger HLT_Mu17_Mu8_v1 not found.
...
ERROR GetHLTriggerIndex: Trigger HLT_Mu17_Mu8_v24 not found.

ERROR GetHLTriggerIndex: Trigger HLT_Mu17_TkMu8_v1 not found.
...
ERROR GetHLTriggerIndex: Trigger HLT_Mu17_TkMu8_v16 not found.
...

Check what triggers were used in the miniAOD:

Add to tuplizer code the steps from the miniAOD workbook and it prints out something like this for each event:

 === TRIGGER PATHS ===
Trigger generation_step, prescale 1: PASS
Trigger digitisation_step, prescale 1: PASS
Trigger L1simulation_step, prescale 1: PASS
Trigger digi2raw_step, prescale 1: PASS
Trigger HLTriggerFirstPath, prescale 1: fail (or not run)
Trigger HLT_Mu40_v1, prescale 1: fail (or not run)
Trigger HLT_IsoMu20_eta2p1_IterTrk02_v1, prescale 1: fail (or not run)
Trigger HLT_IsoTkMu20_eta2p1_IterTrk02_v1, prescale 1: fail (or not run)
Trigger HLT_IsoMu24_eta2p1_IterTrk02_v1, prescale 1: fail (or not run)
Trigger HLT_IsoTkMu24_eta2p1_IterTrk02_v1, prescale 1: fail (or not run)
Trigger HLT_IsoMu24_IterTrk02_v1, prescale 1: fail (or not run)
Trigger HLT_IsoTkMu24_IterTrk02_v1, prescale 1: fail (or not run)
Trigger HLT_Mu17_Mu8_v1, prescale 1: fail (or not run)
Trigger HLT_Mu17_TkMu8_v1, prescale 1: fail (or not run)
Trigger HLT_Mu30_TkMu11_v1, prescale 1: fail (or not run)
Trigger HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_v1, prescale 1: fail (or not run)
Trigger HLT_Mu17_TrkIsoVVL_TkMu8_TrkIsoVVL_v1, prescale 1: fail (or not run)
Trigger HLT_DoubleMu4_3_Bs_v1, prescale 1: fail (or not run)
Trigger HLT_DoubleMu4_3_Jpsi_Displaced_v1, prescale 1: fail (or not run)
Trigger HLT_Dimuon20_Jpsi_v1, prescale 1: fail (or not run)
Trigger HLT_Dimuon13_PsiPrime_v1, prescale 1: fail (or not run)
Trigger HLT_Dimuon13_Upsilon_v1, prescale 1: fail (or not run)
Trigger HLT_Mu25_TkMu0_dEta18_Onia_v1, prescale 1: fail (or not run)
Trigger HLT_DoubleMu4_JpsiTrk_Displaced_v1, prescale 1: fail (or not run)
Trigger HLT_DoubleMu4_PsiPrimeTrk_Displaced_v1, prescale 1: fail (or not run)
Trigger HLT_DoubleMu4_LowMassNonResonantTrk_Displaced_v1, prescale 1: fail (or not run)
Trigger HLT_DoubleMu33NoFiltersNoVtx_v1, prescale 1: fail (or not run)
Trigger HLT_DoubleMu38NoFiltersNoVtx_v1, prescale 1: fail (or not run)
Trigger HLT_Mu38NoFiltersNoVtx_Photon38_CaloIdL_v1, prescale 1: fail (or not run)
Trigger HLT_Mu42NoFiltersNoVtx_Photon42_CaloIdL_v1, prescale 1: fail (or not run)
Trigger HLT_Ele27_eta2p1_WP85_Gsf_v1, prescale 1: fail (or not run)
Trigger HLT_Ele32_eta2p1_WP85_Gsf_v1, prescale 1: fail (or not run)
Trigger HLT_DoubleEle33_CaloIdL_GsfTrkIdVL_v1, prescale 1: fail (or not run)
Trigger HLT_Photon36_R9Id85_OR_CaloId24b40e_Iso50T80L_Photon18_AND_HE10_R9Id65_Mass95_v1, prescale 1: fail (or not run)
Trigger HLT_Photon42_R9Id85_OR_CaloId24b40e_Iso50T80L_Photon22_AND_HE10_R9Id65_v1, prescale 1: fail (or not run)
Trigger HLT_PFJet260_v1, prescale 1: fail (or not run)
Trigger HLT_AK8PFJet360TrimMod_Mass30_v1, prescale 1: fail (or not run)
Trigger HLT_L2Mu10_NoVertex_NoBPTX_v1, prescale 1: fail (or not run)
Trigger HLT_L2Mu10_NoVertex_NoBPTX3BX_NoHalo_v1, prescale 1: fail (or not run)
Trigger HLT_L2Mu20_NoVertex_3Sta_NoBPTX3BX_NoHalo_v1, prescale 1: fail (or not run)
Trigger HLT_L2Mu30_NoVertex_3Sta_NoBPTX3BX_NoHalo_v1, prescale 1: fail (or not run)
Trigger HLT_JetE30_NoBPTX_v1, prescale 1: fail (or not run)
Trigger HLT_JetE30_NoBPTX3BX_NoHalo_v1, prescale 1: fail (or not run)
Trigger HLT_JetE50_NoBPTX3BX_NoHalo_v1, prescale 1: fail (or not run)
Trigger HLT_JetE70_NoBPTX3BX_NoHalo_v1, prescale 1: fail (or not run)
Trigger HLT_IsoMu17_eta2p1_LooseIsoPFTau20_v1, prescale 1: fail (or not run)
Trigger HLT_Ele22_eta2p1_WP85_Gsf_LooseIsoPFTau20_v1, prescale 1: fail (or not run)
Trigger HLT_DoubleMediumIsoPFTau40_Trk1_eta2p1_Reg_v1, prescale 1: fail (or not run)
Trigger HLT_LooseIsoPFTau50_Trk30_eta2p1_MET120_v1, prescale 1: fail (or not run)
Trigger HLT_ReducedIterativeTracking_v1, prescale 1: PASS
Trigger HLT_IsoMu20_eta2p1_IterTrk02_TriCentralPFJet60_50_35_v1, prescale 1: fail (or not run)
Trigger HLT_IsoMu20_eta2p1_IterTrk02_TriCentralPFJet40_v1, prescale 1: fail (or not run)
Trigger HLT_IsoMu20_eta2p1_IterTrk02_CentralPFJet30_BTagCSV_v1, prescale 1: fail (or not run)
Trigger HLT_IsoMu24_eta2p1_IterTrk02_TriCentralPFJet60_50_35_v1, prescale 1: fail (or not run)
Trigger HLT_IsoMu24_eta2p1_IterTrk02_TriCentralPFJet40_v1, prescale 1: fail (or not run)
Trigger HLT_IsoMu24_eta2p1_IterTrk02_CentralPFJet30_BTagCSV_v1, prescale 1: fail (or not run)
Trigger HLT_Ele27_eta2p1_WP85_Gsf_TriCentralPFJet40_v1, prescale 1: fail (or not run)
Trigger HLT_Ele27_eta2p1_WP85_Gsf_TriCentralPFJet60_50_35_v1, prescale 1: fail (or not run)
Trigger HLT_Ele27_eta2p1_WP85_Gsf_CentralPFJet30_BTagCSV_v1, prescale 1: fail (or not run)
Trigger HLT_Ele32_eta2p1_WP85_Gsf_TriCentralPFJet40_v1, prescale 1: fail (or not run)
Trigger HLT_Ele32_eta2p1_WP85_Gsf_TriCentralPFJet60_50_35_v1, prescale 1: fail (or not run)
Trigger HLT_Ele32_eta2p1_WP85_Gsf_CentralPFJet30_BTagCSV_v1, prescale 1: fail (or not run)
Trigger HLT_Mu40_eta2p1_PFJet200_PFJet50_v1, prescale 1: fail (or not run)
Trigger HLT_Ele45_CaloIdVT_GsfTrkIdT_PFJet200_PFJet50_v1, prescale 1: fail (or not run)
Trigger HLT_Ele23_Ele12_CaloId_TrackId_Iso_v1, prescale 1: fail (or not run)
Trigger HLT_Ele17_Ele12_Ele10_CaloId_TrackId_v1, prescale 1: fail (or not run)
Trigger HLT_Mu23_TrkIsoVVL_Ele12_Gsf_CaloId_TrackId_Iso_MediumWP_v1, prescale 1: fail (or not run)
Trigger HLT_Mu8_TrkIsoVVL_Ele23_Gsf_CaloId_TrackId_Iso_MediumWP_v1, prescale 1: fail (or not run)
Trigger HLT_Photon22_R9Id90_HE10_Iso40_EBOnly_PFMET40_v1, prescale 1: fail (or not run)
Trigger HLT_Photon36_R9Id90_HE10_Iso40_EBOnly_PFMET40_v1, prescale 1: fail (or not run)
Trigger HLT_Photon50_R9Id90_HE10_Iso40_EBOnly_PFMET40_v1, prescale 1: fail (or not run)
Trigger HLT_Photon75_R9Id90_HE10_Iso40_EBOnly_PFMET40_v1, prescale 1: fail (or not run)
Trigger HLT_Photon90_R9Id90_HE10_Iso40_EBOnly_PFMET40_v1, prescale 1: fail (or not run)
Trigger HLT_Photon135_PFMET40_v1, prescale 1: fail (or not run)
Trigger HLT_Photon150_PFMET40_v1, prescale 1: fail (or not run)
Trigger HLT_Photon160_PFMET40_v1, prescale 1: fail (or not run)
Trigger HLT_Photon250_NoHE_PFMET40_v1, prescale 1: fail (or not run)
Trigger HLT_Photon300_NoHE_PFMET40_v1, prescale 1: fail (or not run)
Trigger HLT_Photon22_R9Id90_HE10_Iso40_EBOnly_VBF_v1, prescale 1: fail (or not run)
Trigger HLT_Photon36_R9Id90_HE10_Iso40_EBOnly_VBF_v1, prescale 1: fail (or not run)
Trigger HLT_Photon50_R9Id90_HE10_Iso40_EBOnly_VBF_v1, prescale 1: fail (or not run)
Trigger HLT_Photon75_R9Id90_HE10_Iso40_EBOnly_VBF_v1, prescale 1: fail (or not run)
Trigger HLT_Photon90_R9Id90_HE10_Iso40_EBOnly_VBF_v1, prescale 1: fail (or not run)
Trigger HLT_Photon135_VBF_v1, prescale 1: fail (or not run)
Trigger HLT_Photon150_VBF_v1, prescale 1: fail (or not run)
Trigger HLT_Photon160_VBF_v1, prescale 1: fail (or not run)
Trigger HLT_Photon250_NoHE_VBF_v1, prescale 1: fail (or not run)
Trigger HLT_Photon300_NoHE_VBF_v1, prescale 1: fail (or not run)
Trigger HLT_DoubleEle33_CaloIdL_GsfTrkIdVL_MW_v1, prescale 1: fail (or not run)
Trigger HLT_Ele95_CaloIdVT_GsfTrkIdT_v1, prescale 1: fail (or not run)
Trigger HLT_DoublePhoton85_v1, prescale 1: fail (or not run)
Trigger HLT_Photon155_v1, prescale 1: fail (or not run)
Trigger HLT_Ele20WP60_Ele8_Mass55_v1, prescale 1: fail (or not run)
Trigger HLT_Ele25WP60_SC4_Mass55_v1, prescale 1: fail (or not run)
Trigger HLT_L2DoubleMu23_NoVertex_v1, prescale 1: fail (or not run)
Trigger HLT_L2DoubleMu28_NoVertex_2Cha_Angle2p5_Mass10_v1, prescale 1: fail (or not run)
Trigger HLT_L2DoubleMu38_NoVertex_2Cha_Angle2p5_Mass10_v1, prescale 1: fail (or not run)
Trigger HLT_PFMET170_NoiseCleaned_v1, prescale 1: fail (or not run)
Trigger HLT_PFMET120_NoiseCleaned_BTagCSV07_v1, prescale 1: fail (or not run)
Trigger HLT_PFHT350_PFMET120_NoiseCleaned_v1, prescale 1: fail (or not run)
Trigger HLT_PFHT900_v1, prescale 1: fail (or not run)
Trigger HLT_ZeroBias_v1, prescale 1: PASS
Trigger HLT_Physics_v1, prescale 1: PASS
Trigger HLTriggerFinalPath, prescale 1: PASS

 === TRIGGER OBJECTS ===
   Trigger object:  pt 202.496, eta 1.5742, phi 0.222181
      Collection: hltAK4CaloJetsCorrectedIDPassed::HLT
      Type IDs:    85
      Filters:     hltSingleCaloJet200
      Paths (0/0):
   Trigger object:  pt 143.029, eta 0.895079, phi 2.71477
      Collection: hltL2TauJets::HLT
      Type IDs:    84
      Filters:     hltDoubleL2Tau35eta2p1 hltL2Tau30eta2p1
      Paths (0/0):
   Trigger object:  pt 119.399, eta 1.51203, phi 0.199264
      Collection: hltL2TauJets::HLT
      Type IDs:    84
      Filters:     hltDoubleL2Tau35eta2p1 hltL2Tau30eta2p1
      Paths (0/0):
   Trigger object:  pt 37.6808, eta -1.61598, phi -0.0134721
      Collection: hltL2TauJets::HLT
      Type IDs:    84
      Filters:     hltDoubleL2Tau35eta2p1 hltL2Tau30eta2p1
      Paths (0/0):
   Trigger object:  pt 32.4363, eta 1.74465, phi 0.368276
      Collection: hltL2TauJets::HLT
      Type IDs:    84
      Filters:     hltL2Tau30eta2p1
      Paths (0/0):
   Trigger object:  pt 37.6808, eta -1.61598, phi -0.0134721
      Collection: hltL2TauJetsIso::HLT
      Type IDs:    84
      Filters:     hltDoubleL2IsoTau35eta2p1
      Paths (0/0):
   Trigger object:  pt 37.6808, eta -1.61598, phi -0.0134721
      Collection: hltL2TausForPixelIsolation::HLT
      Type IDs:    84
      Filters:     hltL2TauIsoFilter
      Paths (0/0):
   Trigger object:  pt 97.8727, eta 0, phi -1.18903
      Collection: hltPFHT::HLT
      Type IDs:    90
      Filters:     hltPFHT900
      Paths (0/0):
   Trigger object:  pt 655.68, eta 0, phi 0
      Collection: hltPFHT::HLT
      Type IDs:    89
      Filters:     hltPFHT900
      Paths (0/0):
   Trigger object:  pt 216, eta 0.8695, phi 2.79253
      Collection: hltL1extraParticles:Central:HLT
      Type IDs:    -84
      Filters:     hltL1sL1SingleJet176
      Paths (0/0):
   Trigger object:  pt 208, eta 1.566, phi 0.349066
      Collection: hltL1extraParticles:Central:HLT
      Type IDs:    -84
      Filters:     hltL1sL1SingleJet176
      Paths (0/0):
   Trigger object:  pt 148, eta 0.8695, phi 2.79253
      Collection: hltL1extraParticles:Tau:HLT
      Type IDs:    -86
      Filters:     hltL1sDoubleTauJet36erORDoubleTauJet68er
      Paths (0/0):
   Trigger object:  pt 132, eta 1.566, phi 0.349066
      Collection: hltL1extraParticles:Tau:HLT
      Type IDs:    -86
      Filters:     hltL1sDoubleTauJet36erORDoubleTauJet68er
      Paths (0/0):
   Trigger object:  pt 36, eta -1.566, phi 0
      Collection: hltL1extraParticles:Tau:HLT
      Type IDs:    -86
      Filters:     hltL1sDoubleTauJet36erORDoubleTauJet68er
      Paths (0/0):
   Trigger object:  pt 412, eta 0, phi 0
      Collection: hltL1extraParticles:MHT:HLT
      Type IDs:    -89
      Filters:     hltL1sL1HTT150
      Paths (0/0):

Check what triggers were used in the ntuple:

In ROOT session:

TFile *_file0 = TFile::Open("AC1B_test_1_1_ni1.root")
makeroottree.cd()
AC1Brun->GetListOfBranches()->ls("*")

shows list of branches in the TTree AC1Brun, which includes

 OBJ: TBranch   run_hltmunames   run_hltmunames/C : 0 at: 0x7feda2c9e5d0

then, scan the tree for the branch I want:

AC1Brun.Scan("run_hltmunames","","colsize=2000")

Ideally it will output something like this:

************                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
*    Row   *                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               run_hltmunames *
************                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
*        0 *                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              HLT_Mu8_v16:hltL3fL1sMu3L3Filtered8 HLT_Mu17_v3:hltL3fL1sMu12L3Filtered17 HLT_Mu40_v12:hltL3fL1sMu16L1f0L2f16QL3Filtered40Q HLT_Mu40_eta2p1_v9:hltL3fL1sMu16Eta2p1L1f0L2f16QL3Filtered40Q HLT_Mu50_eta2p1_v6:hltL3fL1sMu16Eta2p1L1f0L2f16QL3Filtered50Q HLT_IsoMu24_v15:hltL3crIsoL1sMu16L1f0L2f16QL3f24QL3crIsoRhoFiltered0p15 HLT_IsoMu24_eta2p1_v13:hltL3crIsoL1sMu16Eta2p1L1f0L2f16QL3f24QL3crIsoRhoFiltered0p15 HLT_IsoMu30_v9:hltL3crIsoL1sMu16L1f0L2f16QL3f30QL3crIsoRhoFiltered0p15 HLT_IsoMu30_eta2p1_v13:hltL3crIsoL1sMu16Eta2p1L1f0L2f16QL3f30QL3crIsoRhoFiltered0p15 HLT_Mu17_Mu8_v17:hltL3fL1DoubleMu10MuOpenL1f0L2f10L3Filtered17 HLT_Mu17_Mu8_v17:hltL3pfL1DoubleMu10MuOpenL1f0L2pf0L3PreFiltered8 HLT_Mu17_Mu8_v17:hltL2fL1DoubleMu10MuOpenL1f0L2Filtered10 HLT_Mu17_Mu8_v17:hltL2pfL1DoubleMu10MuOpenL1f0L2PreFiltered0 HLT_Mu17_Mu8_v17:hltL1sL1DoubleMu10MuOpen HLT_Mu17_Mu8_v17:hltL1sL1DoubleMu10MuOpengt10 HLT_Mu17_TkMu8_v10:hltDiMuonGlb17Trk8DzFiltered0p2 HLT_Mu17_TkMu8_v10:hltDiMuonGlbFiltered17TrkFiltered8 HLT_Mu17_TkMu8_v10:hl *
************                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************

Solution

Problem: LUMI_INFO.root was missing as an input file.

In AnalysisTool/AnalysisTool/ do

./merger < input.txt

where input.txt contains the list of AC1B root files, for example

/<fullpath>/AC1B_01.root
/<fullpath>/AC1B_02.root
END

this will create LUMI_INFO.root in the same directory as the input files.

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2016-11-11 - ElizabethKennedy
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback