StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StBTofMixerMaker.h
1 //
2 // StBTofMixerMaker.h
3 //
4 //
5 // Created by Nickolas Luttrell on 6/3/16.
6 //
7 //
8 
9 #ifndef StBTofMixerMaker_HH
10 #define StBTofMixerMaker_HH
11 
12 #include "StMaker.h"
13 #include "St_DataSet.h"
14 
15 class StEvent;
16 class StBTofCollection;
17 class StBTofHit;
18 
19 #include <vector>
20 
21 class StBTofMixerMaker : public StMaker{
22 
23 public:
24  StBTofMixerMaker(const char *name="Simulation");
25 
26  virtual ~StBTofMixerMaker();
27 
28  virtual int Init();
29  int InitRun(int);
30  int FinishRun(int);
31  virtual int Make();
32  virtual int Finish();
33 
34  virtual const char *GetCVS() const
35  {static const char cvs[]="Tag $Name: $ $Id: StBTofMixerMaker.h,v 1.3 2018/06/21 03:38:46 jdb Exp $ built " __DATE__ " " __TIME__ ; return cvs;}
36 
37  ClassDef(StBTofMixerMaker,2)
38 
39 protected:
40 
41  // All the internal definitions should be placed here.
42 
47  bool mIsEmbedding = kFALSE;
48 
50  void findDuplicates(std::vector<StBTofHit*> &eventHits, StBTofCollection *simHits);
51 
52 };
53 
54 #endif /* StBTofMixerMaker_h */
55 
56 
57 
58 // end of StBTofMixerMaker.h
virtual ~StBTofMixerMaker()
bool mIsEmbedding
Embedding flag.
virtual int Finish()
StBTofMixerMaker(const char *name="Simulation")
StBTofCollection * mEventCollection
BtofCollection from StEvent.
void findDuplicates(std::vector< StBTofHit * > &eventHits, StBTofCollection *simHits)
Find duplicate hits between the BTofCollections.
StEvent * mEvent
The StEvent info from previous Makers.
virtual int Make()
StBTofCollection * mBTofSimCollection
BTofCollection produced by BTofSimMaker.
StBTofCollection * mNewCollection
BTofCollection to be assembled by embedding.