ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/L1RpcTriggerAnalysis/plugins/L1RpcTreeAnalysis.cc
(Generate patch)

Comparing UserCode/L1RpcTriggerAnalysis/plugins/L1RpcTreeAnalysis.cc (file contents):
Revision 1.3 by konec, Mon Oct 8 07:09:24 2012 UTC vs.
Revision 1.5 by konec, Tue Oct 23 11:12:48 2012 UTC

# Line 20 | Line 20
20   #include "UserCode/L1RpcTriggerAnalysis/interface/MuonObj.h"
21   #include "UserCode/L1RpcTriggerAnalysis/interface/L1ObjColl.h"
22   #include "UserCode/L1RpcTriggerAnalysis/interface/SynchroCountsObj.h"
23 + #include "UserCode/L1RpcTriggerAnalysis/interface/TriggerMenuResultObj.h"
24  
25   #include "UserCode/L1RpcTriggerAnalysis/interface/ConverterRPCRawSynchroSynchroCountsObj.h"
26  
# Line 36 | Line 37 | void L1RpcTreeAnalysis::beginJob()
37    theAnaEmu.init(theHistos);
38    theAnaSynch.init(theHistos);
39    theAnaClu.init(theHistos);
40 +  theAnaTimingL1.init(theHistos);
41  
42   }
43  
# Line 78 | Line 80 | void L1RpcTreeAnalysis::analyze(const ed
80    EventObj * event = 0;
81    MuonObj * muon = 0;
82  
83 +  TriggerMenuResultObj *bitsL1  = 0;
84 +  TriggerMenuResultObj *bitsHLT = 0;
85 +
86    TBranch *bcounts=0;
87    TBranch *bdetsCrossedByMuon =0;
88    TBranch *bdetsCrossedByMuonDeepInside =0;
# Line 93 | Line 98 | void L1RpcTreeAnalysis::analyze(const ed
98    chain.SetBranchAddress("event",&event);
99    chain.SetBranchAddress("muon",&muon);
100  
101 +  chain.SetBranchAddress("bitsL1",&bitsL1);
102 +  chain.SetBranchAddress("bitsHLT",&bitsHLT);
103 +  
104    chain.SetBranchAddress("counts",&counts,&bcounts);
105    chain.SetBranchAddress("detsCrossedByMuon",&detsCrossedByMuon,&bdetsCrossedByMuon);
106    chain.SetBranchAddress("detsCrossedByMuonDeepInside",&detsCrossedByMuonDeepInside,&bdetsCrossedByMuonDeepInside);
# Line 107 | Line 115 | void L1RpcTreeAnalysis::analyze(const ed
115  
116  
117    //
118 <  // number of efents
118 >  // number of events
119    //
120    Int_t nentries = (Int_t) chain.GetEntries();
121    std::cout <<" ENTRIES: " << nentries << std::endl;
# Line 134 | Line 142 | void L1RpcTreeAnalysis::analyze(const ed
142   //   theAnaDet.debug = false;
143   //    if ((*event).id==60422922)theAnaRpcMisc.debug = true;
144  
145 +   std::cout <<" Number of bits L1: " <<  bitsL1->names.size()<<"/"<<bitsL1->firedAlgos.size()
146 +                           <<" HLT: "<< bitsHLT->names.size()<<"/"<<bitsHLT->firedAlgos.size()<<std::endl;
147 +
148     theAnaMuonDistribution.run(muon);
149     theAnaRpcVsOth.run(muon,l1RpcColl,l1OtherColl);
150     theAnaEff.run(muon,l1RpcColl,l1OtherColl);
# Line 142 | Line 153 | void L1RpcTreeAnalysis::analyze(const ed
153     theAnaEmu.run ( event, muon, l1RpcCollEmu, l1RpcColl);
154     theAnaSynch.run( event, muon, ConverterRPCRawSynchroSynchroCountsObj::toRawSynchro( *counts));
155     theAnaClu.run( event, muon, l1RpcColl, *detsHitsCompatibleWithMuon, *nDigisCompDets, *clSizeCompDets);
156 +   theAnaTimingL1.run(event,muon,l1RpcColl,l1OtherColl);
157  
158   //   theAnaEmu.debug =theAnaDet.debug;
159   //    std::cout <<"----------"<<std::endl;
# Line 157 | Line 169 | void L1RpcTreeAnalysis::endJob()
169    TGraph* hGraph_DetEff = theAnaDet.resume();
170    theAnaRpcMisc.resume(theHistos);
171    TGraph* hGraph_RunClu = theAnaClu.resume();
172 +  theAnaTimingL1.resume(theHistos);
173  
174    theAnaSynch.endJob();
175  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines