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.1 by konec, Mon Oct 1 19:21:02 2012 UTC vs.
Revision 1.4 by konec, Mon Oct 22 06:28:46 2012 UTC

# Line 36 | Line 36 | void L1RpcTreeAnalysis::beginJob()
36    theAnaEmu.init(theHistos);
37    theAnaSynch.init(theHistos);
38    theAnaClu.init(theHistos);
39 +  theAnaTimingL1.init(theHistos);
40  
41   }
42  
# Line 73 | Line 74 | void L1RpcTreeAnalysis::analyze(const ed
74    std::vector<uint32_t> *detsHitsCompatibleWithMuon = 0;
75    std::vector<uint32_t> *detsSIMU = 0;
76    std::vector<uint32_t> *nDigisCompDets = 0;
77 +  std::vector<uint32_t> *clSizeCompDets = 0;
78  
79    EventObj * event = 0;
80    MuonObj * muon = 0;
# Line 83 | Line 85 | void L1RpcTreeAnalysis::analyze(const ed
85    TBranch *bdetsHitsCompatibleWithMuon = 0;
86    TBranch *bdetsSIMU =0;
87    TBranch *bnDigisCompDets =0;
88 +  TBranch *bclSizeCompDets =0;
89  
90    L1ObjColl* l1RpcColl = 0;
91    L1ObjColl* l1OtherColl = 0;
# Line 97 | Line 100 | void L1RpcTreeAnalysis::analyze(const ed
100    chain.SetBranchAddress("detsHitsCompatibleWithMuon",&detsHitsCompatibleWithMuon,&bdetsHitsCompatibleWithMuon);
101    chain.SetBranchAddress("detsSIMU",&detsSIMU,&bdetsSIMU);
102    chain.SetBranchAddress("nDigisCompDets",&nDigisCompDets, &bnDigisCompDets);
103 +  chain.SetBranchAddress("clSizeCompDets",&clSizeCompDets, &bclSizeCompDets);
104  
105    chain.SetBranchAddress("l1RpcColl",&l1RpcColl);
106    chain.SetBranchAddress("l1OtherColl",&l1OtherColl);
# Line 138 | Line 142 | void L1RpcTreeAnalysis::analyze(const ed
142     theAnaDet.run( muon, *detsHitsCompatibleWithMuon,  *detsCrossedByMuon, *detsCrossedByMuonDeepInside);
143     theAnaEmu.run ( event, muon, l1RpcCollEmu, l1RpcColl);
144     theAnaSynch.run( event, muon, ConverterRPCRawSynchroSynchroCountsObj::toRawSynchro( *counts));
145 <   theAnaClu.run( muon, l1RpcColl, *detsHitsCompatibleWithMuon, *nDigisCompDets);
145 >   theAnaClu.run( event, muon, l1RpcColl, *detsHitsCompatibleWithMuon, *nDigisCompDets, *clSizeCompDets);
146 >   theAnaTimingL1.run(event,muon,l1RpcColl,l1OtherColl);
147  
148   //   theAnaEmu.debug =theAnaDet.debug;
149   //    std::cout <<"----------"<<std::endl;
# Line 151 | Line 156 | void L1RpcTreeAnalysis::analyze(const ed
156   void L1RpcTreeAnalysis::endJob()
157   {
158    std::cout <<"ENDJOB, summaries:"<<std::endl;
159 <  TGraph* hGraph_DetEff =theAnaDet.resume();
160 <  TGraph* hGraph_RunEff =theAnaRpcMisc.resume();
159 >  TGraph* hGraph_DetEff = theAnaDet.resume();
160 >  theAnaRpcMisc.resume(theHistos);
161 >  TGraph* hGraph_RunClu = theAnaClu.resume();
162 >  theAnaTimingL1.resume(theHistos);
163  
164    theAnaSynch.endJob();
165  
# Line 160 | Line 167 | void L1RpcTreeAnalysis::endJob()
167    TFile f(histoFile.c_str(),"RECREATE");
168    theHistos.Write();
169    hGraph_DetEff->Write("hGraph_DetEff");
170 <  hGraph_RunEff->Write("hGraph_RunEff");
170 >  hGraph_RunClu->Write("hGraph_RunClu");
171    f.Close();
172    std::cout <<"END"<<std::endl;
173   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines