ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/TreeMod/src/BaseMod.cc
(Generate patch)

Comparing UserCode/MitAna/TreeMod/src/BaseMod.cc (file contents):
Revision 1.2 by loizides, Sun Sep 28 02:34:14 2008 UTC vs.
Revision 1.3 by loizides, Tue Nov 25 15:57:49 2008 UTC

# Line 2 | Line 2
2  
3   #include "MitAna/TreeMod/interface/BaseMod.h"
4   #include "MitAna/TreeMod/interface/HLTFwkMod.h"
5 + #include <TH1D.h>
6  
7   using namespace mithep;
8  
# Line 53 | Line 54 | Bool_t BaseMod::HasHLTInfo(const char *h
54      return kTRUE;
55    return kFALSE;
56   }
57 +
58 + //--------------------------------------------------------------------------------------------------
59 + void BaseMod::SaveNEventsProcessed(const char *name)
60 + {
61 +  // Save the number of processed events in a one-bin histogram.
62 +
63 +  TH1D *hDEvents = new TH1D(name,"Total number of processed events",1,-0.5,0.5);
64 +  hDEvents->Fill(0.0,fNEventsProcessed);
65 +  hDEvents->SetEntries(fNEventsProcessed);
66 +  AddOutput(hDEvents);
67 + }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines