StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMuAnalysisMaker.h
1 
20 #ifndef StMuAnalysisMaker_hh
21 #define StMuAnalysisMaker_hh
22 //
23 // Include files
24 #include "StMaker.h"
25 #include <string>
26 //
27 // Forward declarations
28 class StMuTrack;
29 class TFile;
30 class TH1D;
31 
32 #ifndef ST_NO_NAMESPACES
33 using std::string;
34 #endif
35 //
36 // The class declaration. It innherits from StMaker.
37 class StMuAnalysisMaker : public StMaker {
38 public:
39 
40  StMuAnalysisMaker(const Char_t *name="muAnalysis"); // constructor
41  ~StMuAnalysisMaker(); // destructor
42 
43  void Clear(Option_t *option=""); // called after every event to cleanup
44  Int_t Init(); // called once at the beginning of your job
45  Int_t Make(); // invoked for every event
46  Int_t Finish(); // called once at the end
47 
48  virtual const char *GetCVS() const {
49  static const char cvs[]="Tag $Name: $ $Id: StMuAnalysisMaker.h,v 1.2 2014/08/06 11:43:31 jeromel Exp $ built " __DATE__ " " __TIME__ ;
50  return cvs;
51  }
52 
53 private:
54 
55 // data member
56  int mEventCounter;
57  string mFileName;
58  TFile *mFile;
59 
60  TH1D *mGlobalPt;
61  TH1D *mPrimaryPt;
62  TH1D *mL3Pt;
63  TH1D *mRefMult;
64 
65 // method (a simple track filter)
66  bool accept(StMuTrack*); // and this is used to select tracks
67 
68  ClassDef(StMuAnalysisMaker,0)
69 };
70 #endif
void Clear(Option_t *option="")
User defined functions.
A typical Analysis Class for MuDst.