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.23 by konec, Mon May 27 11:02:41 2013 UTC vs.
Revision 1.24 by akalinow, Tue Jun 25 10:49:35 2013 UTC

# Line 48 | Line 48 | L1RpcTreeAnalysis::L1RpcTreeAnalysis(con
48      theAnaSiMuDistribution(0),
49      theAnaOtfEff(0)
50   {
51 +
52    if (theConfig.exists("anaMuonDistribution")) theAnaMuonDistribution = new AnaMuonDistribution( cfg.getParameter<edm::ParameterSet>("anaMuonDistribution"));
53    if (theConfig.exists("anaMenu")) theAnaMenu = new AnaMenu(theConfig.getParameter<edm::ParameterSet>("anaMenu"));
54    if (theConfig.exists("anaTimingL1")) theAnaTimingL1 = new AnaTimingL1( theConfig.getParameter<edm::ParameterSet>("anaTimingL1") );
# Line 65 | Line 66 | L1RpcTreeAnalysis::L1RpcTreeAnalysis(con
66  
67   void L1RpcTreeAnalysis::beginJob()
68   {
69 +
70    theHistos.SetOwner();
71  
72    if (theAnaMuonDistribution) theAnaMuonDistribution->init(theHistos);
# Line 106 | Line 108 | void L1RpcTreeAnalysis::analyze(const ed
108    //
109    // define input chain
110    //
111 +
112    TChain chain("tL1Rpc");
113    std::vector<std::string> treeFileNames = theConfig.getParameter<std::vector<std::string> >("treeFileNames");
114    for (std::vector<std::string>::const_iterator it = treeFileNames.begin(); it != treeFileNames.end(); ++it)  chain.Add((*it).c_str() );
115  
113
116    //
117    // prepare datastructures and branches
118    //
# Line 156 | Line 158 | void L1RpcTreeAnalysis::analyze(const ed
158    chain.SetBranchAddress("l1ObjColl",&l1ObjColl);
159    chain.SetBranchAddress("hitSpec",&hitSpec);
160  
159
161    //
162    // number of events
163    //
# Line 164 | Line 165 | void L1RpcTreeAnalysis::analyze(const ed
165    std::cout <<" ENTRIES: " << nentries << std::endl;
166  
167  
168 +
169    //
170    // main loop
171    //
# Line 173 | Line 175 | void L1RpcTreeAnalysis::analyze(const ed
175      if (theAnaMenu) theAnaMenu->updateMenu(bitsL1->names, bitsHLT->names);
176  
177   //    if (ev < 44055) continue;
178 <    if ( (lastRun != (*event).run) || (ev/1000*1000==ev) ) {
178 >    if ( (lastRun != (*event).run) || (ev%10000==0) ) {
179   //    if (true) {
180   //    if (! ((*event).run==204601 && (*event).id ==109463402)) { continue;
181        lastRun = (*event).run;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines