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 
12 class TH1F;
13 class TList;
14 class TCanvas;
15 namespace edm { class Event; }
16 
17 namespace examples {
18 
21  TrackAnalysisAlgorithm( const TList *, TList& );
23  void process( const edm::Event& );
25  void postProcess( TList & );
27  static void terminate( TList & );
28  private:
30  static void draw( const TList &, TCanvas &, const char * );
32  TH1F * h_pt, * h_eta;
34  static const char * kPt, * kEta;
35  };
36 
37 }
38 
39 #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