test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackAnalysisAlgorithm.h
Go to the documentation of this file.
1 #ifndef ParallelAnalysis_TrackAnalysisAlgorithm_h
2 #define ParallelAnalysis_TrackAnalysisAlgorithm_h
3 /* class examples::TrackAnalysisAlgorithm
4  *
5  * Algorithm structure siutable for both TSelector running
6  * and Framework processing
7  *
8  * \author Luca Lista, INFN
9  *
10  */
11 
13 class TH1F;
14 class TList;
15 class TCanvas;
16 namespace edm { class Event; }
17 
18 namespace examples {
19 
22  TrackAnalysisAlgorithm( const TList *, TList& );
24  void process( const edm::Event& );
26  void postProcess( TList & );
28  static void terminate( TList & );
29  private:
31  static void draw( const TList &, TCanvas &, const char * );
33  TH1F * h_pt, * h_eta;
35  static const char * kPt, * kEta;
36  };
37 
38 }
39 
40 #endif
void process(const edm::Event &)
process one event
static void draw(const TList &, TCanvas &, const char *)
draw an histogram
static void terminate(TList &)
terminate processing
static const char * kPt
histogram names
TrackAnalysisAlgorithm(const TList *, TList &)
constructor
void postProcess(TList &)
post process