ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Validation/src/JetValidationMod.cc
(Generate patch)

Comparing UserCode/MitPhysics/Validation/src/JetValidationMod.cc (file contents):
Revision 1.1 by loizides, Wed Oct 15 06:05:02 2008 UTC vs.
Revision 1.2 by loizides, Thu Dec 4 13:53:35 2008 UTC

# Line 24 | Line 24 | ClassImp(mithep::JetValidationMod)
24    fIC5Jets(0),
25    fSC5Jets(0),
26    fIC5GenJets(0),
27 <  fSC5GenJets(0),
28 <  fNEventsProcessed(0)
27 >  fSC5GenJets(0)
28   {
29    // Constructor.
30   }
31  
32   //--------------------------------------------------------------------------------------------------
34 void JetValidationMod::Begin()
35 {
36  // Run startup code on the client machine. For this module, we dont do
37  // anything here.
38 }
39
40 //--------------------------------------------------------------------------------------------------
33   void JetValidationMod::Process()
34   {
35    // Process entries of the tree.
36  
45  fNEventsProcessed++;
46  if (fNEventsProcessed % 1000 == 0 || fPrintDebug)
47    cerr << endl << "Process Event " << fNEventsProcessed << endl;
48    
37    //************************************************************************************************
38    //
39    // For IterativeCone 0.5 Jets
# Line 285 | Line 273 | void JetValidationMod::Process()
273  
274   }
275  
288
276   //--------------------------------------------------------------------------------------------------
277   void JetValidationMod::SlaveBegin()
278   {
# Line 298 | Line 285 | void JetValidationMod::SlaveBegin()
285    ReqBranch(fIC5JetName,                fIC5Jets);
286    ReqBranch(fSC5JetName,                fSC5Jets);
287  
288 <  fIC5GenJetRecoJetDeltaR = new TH1D("hIC5GenJetRecoJetDeltaR",";IC5GenJetRecoJetDeltaR;#",100,0.,1.0);
289 <  fIC5GenJetRecoJetDeltaEta = new TH1D("hIC5GenJetRecoJetDeltaEta",";IC5GenJetRecoJetDeltaEta;#",100,0.,0.5);
290 <  fIC5GenJetRecoJetDeltaPhi = new TH1D("hIC5GenJetRecoJetDeltaPhi",";IC5GenJetRecoJetDeltaPhi;#",100,0.,0.5);
288 >  fIC5GenJetRecoJetDeltaR =
289 >    new TH1D("hIC5GenJetRecoJetDeltaR",";IC5GenJetRecoJetDeltaR;#",100,0.,1.0);
290 >  fIC5GenJetRecoJetDeltaEta =
291 >    new TH1D("hIC5GenJetRecoJetDeltaEta",";IC5GenJetRecoJetDeltaEta;#",100,0.,0.5);
292 >  fIC5GenJetRecoJetDeltaPhi =
293 >    new TH1D("hIC5GenJetRecoJetDeltaPhi",";IC5GenJetRecoJetDeltaPhi;#",100,0.,0.5);
294  
295    fIC5JetResponseVsGenJetPtInBarrel = new TH2D("hIC5JetResponseVsGenJetPtInBarrel",";IC5JetResponseVsGenJetPtInBarrel;#",500,0.,5.0,5000,0,5000);
296    fIC5JetResponseVsGenJetPtInEndcap = new TH2D("hIC5JetResponseVsGenJetPtInEndcap",";IC5JetResponseVsGenJetPtInEndcap;#",500,0.,5.0,5000,0,5000);
297    fIC5JetResponseVsGenJetPtForward = new TH2D("hIC5JetResponseVsGenJetPtForward",";IC5JetResponseVsGenJetPtForward;#",500,0.,5.0,5000,0,5000);
298    fIC5JetResponseVsCaloJetEta = new TH2D("hIC5JetResponseVsCaloJetEta",";IC5JetResponseVsCaloJetEta;#",500,0.,5.0,100,-5,5);
309
310
299    
300 <  fIC5CentralGenJetRecoJetDeltaR = new TH1D("hIC5CentralGenJetRecoJetDeltaR",";IC5CentralGenJetRecoJetDeltaR;#",100,0.,1.0);
300 >  fIC5CentralGenJetRecoJetDeltaR =
301 >    new TH1D("hIC5CentralGenJetRecoJetDeltaR",";IC5CentralGenJetRecoJetDeltaR;#",100,0.,1.0);
302    fIC5ForwardGenJetRecoJetDeltaR = new TH1D("hIC5ForwardGenJetRecoJetDeltaR",";IC5ForwardGenJetRecoJetDeltaR;#",100,0.,1.0);
303    
304    fIC5NMatchedCaloJetsVsGenJetPt = new TH1D("hIC5NMatchedCaloJetsVsGenJetPt",";IC5GenJetPt;#",5000,0.,5000);
# Line 419 | Line 408 | void JetValidationMod::SlaveBegin()
408    AddOutput(fSC5CorrPtCaloJetsOverGenJetsPtVsGenJetPt);  
409    AddOutput(fSC5NCaloJets);
410   }
422
423 //--------------------------------------------------------------------------------------------------
424 void JetValidationMod::SlaveTerminate()
425 {
426  // Run finishing code on the computer (slave) that did the analysis. For this
427  // module, we dont do anything here.
428  cout << "Events Processed: " << fNEventsProcessed << endl;
429
430 }
431
432 //--------------------------------------------------------------------------------------------------
433 void JetValidationMod::Terminate()
434 {
435  // Run finishing code on the client computer. For this module, we dont do
436  // anything here.
437 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines