StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StRareMaker.h
1 // $Id: StRareMaker.h,v 1.6 2002/01/18 19:14:10 struck Exp $
2 //
3 // $Log: StRareMaker.h,v $
4 // Revision 1.6 2002/01/18 19:14:10 struck
5 // compress track classes, filter only hadronic unbiased/Z=-2 events
6 //
7 // Revision 1.5 2001/10/16 01:26:14 struck
8 // added filename parameter for tree file to constructors
9 //
10 // Revision 1.4 2001/10/15 20:20:27 struck
11 // first version with L3 included
12 //
13 // Revision 1.3 2001/09/14 18:00:25 perev
14 // Removed references to StRun.
15 //
16 // Revision 1.2 2001/09/06 20:51:23 hardtke
17 // Update
18 //
19 
20 
21 #ifndef StRareMaker_HH
22 #define StRareMaker_HH
23 
24 
25 #include "StMaker.h"
26 #include "SystemOfUnits.h"
27 #ifndef ROOT_TH1
28 #include "TH1.h"
29 #endif
30 #ifndef ROOT_TH2
31 #include "TH2.h"
32 #endif
33 #include "TTree.h"
34 #include "TFile.h"
35 
36 class StEvent;
37 //-tu class StRun;
38 class StRareEvent;
39 class StRareEventCut;
40 class StRareTrackCut;
41 class StL3RareTrackCut;
42 
43 class StRareMaker : public StMaker {
44 
45 private:
46  int number_of_events_processed;
47  TFile* out;
48 
49 protected:
50 
51  TTree *m_Tree;
52 
53 public:
54 
55  StRareMaker(const Char_t *name="RareParticles", const Char_t* fileName="RareEvent.root");
56  StRareMaker(const Char_t *name, const Char_t* fileName, StRareEventCut* cut, StRareTrackCut* track);
57  StRareMaker(const Char_t *name,
58  const Char_t* fileName,
59  StRareEventCut* cut,
60  StRareTrackCut* trackCut,
61  StL3RareTrackCut* l3trackCut);
62  virtual ~StRareMaker(){};
63  virtual void Clear(Option_t *option="");
64  virtual Int_t Init();
65  virtual Int_t Make();
66  virtual void PrintInfo();
67  virtual Int_t Finish();
68  virtual void Report();
69 
70 private:
71  StRareTrackCut* mTrackCut;
72  StRareEventCut* mEventCut;
73  StL3RareTrackCut* mL3TrackCut;
74  StRareEvent* mRareEvent;
75 
76  ClassDef(StRareMaker, 1)
77 };
78 
79 #endif
80 
81 
82 
83 
virtual void Clear(Option_t *option="")
User defined functions.
virtual Int_t Finish()
virtual Int_t Make()