ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/Selection/src/applySelection.cc
(Generate patch)

Comparing UserCode/MitHzz4l/Selection/src/applySelection.cc (file contents):
Revision 1.17 by khahn, Thu May 10 00:14:35 2012 UTC vs.
Revision 1.18 by khahn, Thu May 10 03:01:17 2012 UTC

# Line 249 | Line 249 | int main(int argc, char** argv)
249    chain->SetBranchAddress(fMuonName,        &muonArr);
250    chain->SetBranchAddress(fPrimVtxName,     &vtxArr);
251    chain->SetBranchAddress(fPFCandidateName, &pfArr);
252 <  chain->SetBranchAddress(fPileupInfoName,  &puArr);
252 >  if( ctrl.mc ) chain->SetBranchAddress(fPileupInfoName,  &puArr);
253    chain->SetBranchAddress(fPileupEnergyDensityName, &puDArr);
254    chain->SetBranchAddress(fTrackName, &trkArr);
255    chain->SetBranchAddress(fTriggerMaskName, &trigMask);
# Line 282 | Line 282 | int main(int argc, char** argv)
282      {
283        chain->GetEntry(ientry);
284        if(!(ientry%1000)) cerr << "entry: " << ientry << endl;
285      if( ientry > 100) break;
285        setPV( ctrl, vtxArr, vtx);
286  
287  
# Line 307 | Line 306 | int main(int argc, char** argv)
306          //
307          // JSON
308          //
309 +        /*
310          RunLumiRangeMap::RunLumiPairType rl(info->RunNum(), info->LumiSec());      
311          if( !(rlrm.HasRunLumi(rl)) )  {
312            if( ctrl.debug ) cout << "\tfails JSON" << endl;
313            continue;
314          }
315 +        */
316          //
317          // trigger
318          //
# Line 400 | Line 401 | int main(int argc, char** argv)
401          //      if( pass > 3 ) break;
402  
403        } else if( ret4l.status.selectionBits.test(PASS_ZCANDIDATE) ) { // save for fakes ...
404 <        cout << "failingLeptons : " << failingLeptons.size() << endl;
405 <        for( int f=0; f<failingLeptons.size(); f++ ) {
406 <          SimpleLepton  l = failingLeptons[f];
407 <          cout << "f: " << f << "\t"
408 <               << "type: " << l.type << "\t"
409 <               << "pT: " << l.vec.Pt()  << "\t"
410 <               << "eta: " << l.vec.Eta()
411 <               << endl;
404 >        if(ctrl.debug) {
405 >          cout << "failingLeptons : " << failingLeptons.size() << endl;
406 >          for( int f=0; f<failingLeptons.size(); f++ ) {
407 >            SimpleLepton  l = failingLeptons[f];
408 >            cout << "f: " << f << "\t"
409 >                 << "type: " << l.type << "\t"
410 >                 << "pT: " << l.vec.Pt()  << "\t"
411 >                 << "eta: " << l.vec.Eta()
412 >                 << endl;
413 >          }
414          }
412        /*
413        cout << "passingLeptons : " << passingLeptons.GetSize() << endl;
414        for( int f=0; f<passingLeptons.GetSize(); f++ ) {
415          cout << "f: " << f << "\t"
416               << "type: " << passingLeptons.At(f).type << "\t"
417               << "pT: " << passingLeptons.At(f).vec.Pt()
418               << endl;
419        }
420        */
421        cout << endl;
415          foTree.Fill();
416        }
417      }  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines