StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StChain.h
1 
15 #ifndef STAR_StChain
16 #define STAR_StChain
17 
18 #include <stdlib.h>
19 #include <stdio.h>
20 
21 #ifndef StMaker_H
22 #include "StMaker.h"
23 #endif
24 
25 
26 class StEvtHddr;
27 class StChainOpt;
28 enum EChainBits {
29  kIsCalibrated = BIT(24) // if the TObject has been created after calibration
30 };
31 
32 
33 class StChain : public StMaker {
34  private:
35  Int_t m_Version; //StChain version number
36  Int_t m_VersionDate; //StChain version date
37  Int_t mNTotal; //Total events processed
38  Int_t mNFailed; //Failed events processed
39  protected:
40  StEvtHddr *m_EvtHddr; //Header of event
41  StChainOpt *mChainOpt;
42  public:
43  StChain(const char *name="bfcChain", const Bool_t UseOwnHeader = kFALSE);
44  virtual ~StChain();
45  virtual void Clear(Option_t *option="");
46  virtual Int_t Finish(); // *MENU*
47  virtual Int_t Init();
48  virtual Int_t Make();
49  virtual Int_t Make(Int_t num){return IMake(num);}
50  virtual Int_t IsChain() const {return 1;}
51  virtual Int_t MakeEvent(); // *MENU*
52  virtual Int_t EventLoop(Int_t jBeg,Int_t jEnd, StMaker *outMk=0);
53  virtual Int_t EventLoop(Int_t jEnd=1000000, StMaker *outMk=0) {return EventLoop(1,jEnd,outMk);}
54  Int_t GetVersion() const {return m_Version;}
55  Int_t GetVersionDate() const {return m_VersionDate;}
56  Int_t GetNTotal() const {return mNTotal;}
57  Int_t GetNFailed() const {return mNFailed;}
58  void SetChainOpt(StChainOpt *opt) {mChainOpt=opt;}
59  virtual const StChainOpt *GetChainOpt() const;
60  virtual const char *GetCVS() const
61  {static const char cvs[]="Tag $Name: $ $Id: StChain.h,v 1.48 2018/06/29 21:46:18 smirnovd Exp $ built " __DATE__ " " __TIME__ ; return cvs;}
62  ClassDef(StChain, 0) //StChain control class
63 };
64 
65 #endif
66 
67 
68 // $Id: StChain.h,v 1.48 2018/06/29 21:46:18 smirnovd Exp $
69 // $Log: StChain.h,v $
70 // Revision 1.48 2018/06/29 21:46:18 smirnovd
71 // Revert iTPC-related changes committed on 2018-06-20 through 2018-06-28
72 //
73 // Revert "NoDead option added"
74 // Revert "Fill mag field more carefully"
75 // Revert "Assert commented out"
76 // Revert "Merging with TPC group code"
77 // Revert "Remove too strong assert"
78 // Revert "Restore removed by mistake line"
79 // Revert "Remove not used anymore file"
80 // Revert "iTPCheckIn"
81 //
82 // Revision 1.46 2014/08/06 11:42:55 jeromel
83 // Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
84 //
85 // Revision 1.45 2007/04/26 20:36:49 perev
86 // Some ChainOpt fixes
87 //
88 // Revision 1.44 2007/04/26 15:56:22 fisyak
89 // Remove non implemented GetChainOpt method (use default from StMaker)
90 //
91 // Revision 1.43 2007/04/26 03:57:14 perev
92 // StChainOpt interface to hide StBFChain dependency
93 //
94 // Revision 1.42 2005/08/29 21:42:21 fisyak
95 // switch from fBits to fStatus for StMaker control bits
96 //
97 // Revision 1.41 2002/11/26 02:16:39 perev
98 // EventLoop added
99 //
100 // Revision 1.40 2002/03/12 21:19:00 fisyak
101 // Set only one StEvtHddr as default option (due to Embedding)
102 //
103 // Revision 1.39 2002/02/02 23:31:14 jeromel
104 // doxygenized. Added some text for the Make() method.
105 //
106 // Revision 1.38 2001/04/10 22:32:43 perev
107 // Overload clean
108 //
109 // Revision 1.37 2001/04/10 21:38:49 perev
110 // Maki(int) --> IMake(int)
111 //
112 // Revision 1.36 2000/11/27 22:46:39 fisyak
113 // Introduce kIsCalibrated BIT
114 //
115 // Revision 1.35 2000/11/27 13:31:23 fisyak
116 // Add Production time set
117 //
118 // Revision 1.34 2000/09/27 19:34:59 fisyak
119 // Temporal fix to get Run/EventNo from dst
120 //
121 // Revision 1.33 2000/07/26 20:58:22 fine
122 // StChain::GetOption virtual dummy methods have been introduced
123 //
124 // Revision 1.32 2000/03/23 00:15:22 fine
125 // Adjusted to libSTAR for ROOT 2.24
126 //
127 // Revision 1.31 1999/12/03 01:24:40 fine
128 // Advanced timer has been introduced
129 //
130 // Revision 1.30 1999/07/15 13:56:46 perev
131 // cleanup
132 //
133 // Revision 1.29 1999/07/14 15:26:18 fine
134 // Context menu MakeEvent method has been introduced
135 //
136 // Revision 1.28 1999/07/13 02:19:33 perev
137 // GetCVS,StEvtHddr,etc...
138 //
139 // Revision 1.27 1999/07/11 20:40:35 perev
140 // Move Clear from StChain to StMaker
141 //
142 // Revision 1.26 1999/03/19 20:30:49 perev
143 // GetCVSTag introduced
144 //
145 // Revision 1.25 1999/03/11 01:23:58 perev
146 // new schema StChain
147 //
148 // Revision 1.18 1998/12/21 19:42:50 fisyak
149 // Move ROOT includes to non system
150 //
151 // Revision 1.17 1998/11/25 21:58:21 fisyak
152 // Cleanup
153 //
154 // Revision 1.16 1998/11/22 18:28:06 fisyak
155 // Add name of tag
156 //
157 // Revision 1.15 1998/11/19 01:23:56 fine
158 // StChain::MakeDoc has been introduced, StChain::MakeDoc has been fixed (see macros/bfc_doc.C macro
159 //
160 // Revision 1.14 1998/10/31 00:21:31 fisyak
161 // Makers take care about branches
162 //
163 // Revision 1.13 1998/10/07 18:43:59 perev
164 // Add Spy classes for Farm Monitor
165 //
166 // Revision 1.12 1998/10/06 18:00:27 perev
167 // cleanup
168 //
169 // Revision 1.11 1998/09/18 14:35:29 fisyak
170 // Fix makers
171 //
172 // Revision 1.10 1998/09/08 22:43:09 fisyak
173 // Modify St_dst_Maker to account new calling sequence
174 //
175 // Revision 1.9 1998/09/08 13:42:00 love
176 // new St_tpctest_Maker module
177 //
178 // Revision 1.8 1998/08/18 14:05:02 fisyak
179 // Add to bfc dst
180 //
181 // Revision 1.7 1998/08/07 19:34:53 fisyak
182 // Add St_run_Maker
183 //
184 // Revision 1.6 1998/07/20 15:08:08 fisyak
185 // Add tcl and tpt
186 //
virtual void Clear(Option_t *option="")
User defined functions.
Definition: StChain.cxx:77
virtual Int_t Finish()
Definition: StChain.cxx:85
virtual Int_t Make()
Definition: StChain.cxx:110