StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFtpcMixerMaker.h
1 //==================================================================================================
2 // StFtpcMixerMaker: Merges simulated and real data (embedding), needs two input chains
3 //
4 // Author: Frank Simon (fsimon@bnl.gov)
5 //==================================================================================================
6 
7 
8 #ifndef STAR_StFtpcMixerMaker
9 #define STAR_StFtpcMixerMaker
10 
11 #ifndef StMaker_H
12 #include "StMaker.h"
13 #endif
14 #ifndef HEP_SYSTEM_OF_UNITS_H
15 #include "SystemOfUnits.h"
16 #endif
17 
18 #include <utility>
19 
20 class StSequence;
21 class StDAQReader;
22 class StFTPCReader;
23 class StFtpcDbReader;
24 
25 // Db classes
26 class St_ftpcDimensions;
27 class St_ftpcPadrowZ;
28 class St_ftpcEField;
29 class St_ftpcVDrift;
30 class St_ftpcDeflection;
31 class St_ftpcdVDriftdP;
32 class St_ftpcdDeflectiondP;
33 class St_ftpcAmpSlope;
34 class St_ftpcAmpOffset;
35 class St_ftpcTimeOffset;
36 class St_ftpcDriftField;
37 class St_ftpcGas;
38 class St_ftpcElectronics;
39 class St_ftpcAsicMap;
40 
41 
42 class StFtpcMixerMaker : public StMaker {
43 
44  private:
45  const Char_t *mConfig1;
46  const Char_t *mConfig2;
48  StFtpcMixerMaker& operator=(const StFtpcMixerMaker&);
49 
50  // DataBases
51  St_ftpcDimensions *m_dimensions;
52  St_ftpcPadrowZ *m_padrow_z;
53  St_ftpcAsicMap *m_asicmap;
54  St_ftpcEField *m_efield;
55  St_ftpcVDrift *m_vdrift;
56  St_ftpcDeflection *m_deflection;
57  St_ftpcdVDriftdP *m_dvdriftdp;
58  St_ftpcdDeflectiondP *m_ddeflectiondp;
59  St_ftpcAmpSlope *m_ampslope;
60  St_ftpcAmpOffset *m_ampoffset;
61  St_ftpcTimeOffset *m_timeoffset;
62  St_ftpcDriftField *m_driftfield;
63  St_ftpcGas *m_gas;
64  St_ftpcElectronics *m_electronics;
65 
66  // Processes
67 
68  // Container
69 
70  // I/O streams
71  int mNumberOfEvents;
72 
73  StDAQReader *daqr1;
74  StFTPCReader *ftpcr1;
75  StDAQReader *daqr2;
76  StFTPCReader *ftpcr2;
77 
78  // Database
79  StFtpcDbReader *dbReader;
80 
81 
82  // Output
83 
84  protected:
85 
86  public:
87  StFtpcMixerMaker(const char *name="FtpcMixer", const char *kind1="undefined", const char *kind2="undefined");
89  Int_t InitRun(int);
90  Int_t Make();
91  Int_t Finish();
92 
93  void Clear(Option_t *option=""); // called after every event to cleanup
94 
95  inline const Char_t *getConfig1() {return mConfig1;}
96  inline const Char_t *getConfig2() {return mConfig2;}
97 
98  virtual const char *GetCVS() const
99  {static const char cvs[]="Tag $Name: $ $Id: StFtpcMixerMaker.h,v 1.3 2014/08/06 11:43:17 jeromel Exp $ built " __DATE__ " " __TIME__ ; return cvs;}
100 
101  ClassDef(StFtpcMixerMaker,0)
102 };
103 
104 #endif
105 
106  /***************************************************************************
107  *
108  * $Id: StFtpcMixerMaker.h,v 1.3 2014/08/06 11:43:17 jeromel Exp $
109  *
110  * $Log: StFtpcMixerMaker.h,v $
111  * Revision 1.3 2014/08/06 11:43:17 jeromel
112  * Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
113  *
114  * Revision 1.2 2003/09/10 19:47:17 perev
115  * ansi corrs
116  *
117  * Revision 1.1 2003/02/14 18:11:25 fsimon
118  * Initial commit of FTPC embedding code
119  *
120  *
121  ***************************************************************************/
Int_t InitRun(int)
InitRun method, reads in the database (FTPC geometry and calibration)
~StFtpcMixerMaker()
Destructor.
Int_t Make()
Make method, does all the work.
FTPC Mixer Maker, main part of FTPC embedding Framework.
void Clear(Option_t *option="")
Clear method.
Int_t Finish()
Finish method.