StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StSvtDaqMaker.h
1 /***************************************************************************
2  *
3  * $Id: StSvtDaqMaker.h,v 1.11 2014/08/06 11:43:45 jeromel Exp $
4  *
5  * Author: Marcelo Munhoz
6  ***************************************************************************
7  *
8  * Description: SVT Library Maker
9  *
10  ***************************************************************************
11  *
12  * $Log: StSvtDaqMaker.h,v $
13  * Revision 1.11 2014/08/06 11:43:45 jeromel
14  * Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
15  *
16  * Revision 1.10 2004/01/30 00:14:42 munhoz
17  * few corrections to pedestal reading and adding getDaqReader method
18  *
19  * Revision 1.9 2003/09/10 19:47:35 perev
20  * ansi corrs
21  *
22  * Revision 1.8 2003/02/19 11:03:32 munhoz
23  * adding getCVS line
24  *
25  * Revision 1.7 2002/02/15 02:39:28 munhoz
26  * switching from .const to .data
27  *
28  * Revision 1.6 2001/10/24 16:49:43 munhoz
29  * adding capability to retrieve t0 and first SCA
30  *
31  * Revision 1.5 2001/08/22 14:22:17 caines
32  * Default to config to FULL and ZS
33  *
34  * Revision 1.4 2001/07/11 23:29:47 munhoz
35  * adding capability for zero suppressed and pedestal reading
36  *
37  * Revision 1.2 2000/08/04 21:03:51 perev
38  * Leaks + Clear() cleanup
39  *
40  * Revision 1.1 2000/06/13 20:42:05 caines
41  * StRoot/StSvtDaqMaker
42  *
43  *
44  **************************************************************************/
45 
46 #ifndef STSVTDAQMAKER_H
47 #define STSVTDAQMAKER_H
48 
49 #ifndef StMaker_H
50 #include "StMaker.h"
51 #endif
52 
53 class StSvtHybridDaqData;
54 class StSvtDaqPed;
55 class StSvtDaqData;
56 class StDAQReader;
57 class StSVTReader;
58 class TObjectSet;
59 
60 class StSvtDaqMaker : public StMaker {
61 
62  private:
63  const char *fConfig;
64  const char *fDataType;
65 
66  StSvtHybridDaqData *fData;
67  StSvtDaqData *fSvtData;
68  StSvtDaqPed *fSvtPed;
69  StSvtDaqPed *fSvtRMSPed;
70 
71  TObjectSet *fSvtSet;
72  TObjectSet *fHybridSet;
73  TObjectSet *fPedSet;
74  TObjectSet *fRMSPedSet;
75 
77  StSVTReader *svtReader;
78 
79  protected:
80 
81  public:
82  StSvtDaqMaker(const char *name="SvtDaq", const char* config="FULL", const char* data="ZS");
83  virtual ~StSvtDaqMaker();
84  void SetConfiguration(const char* config){fConfig = config;}
85  void SetDataType(const char* data){fDataType = data;}
86  Int_t SetSvtData();
87  Int_t SetSvtPed();
88  Int_t SetSvtRMSPed();
89  Int_t SetHybridData();
90  Int_t GetDaqReader();
91  Int_t GetSvtData();
92  Int_t GetSvtPed();
93  Int_t GetSvtRMSPed();
94  Int_t GetHybridData(int barrel, int ladder, int wafer, int hybrid);
95  Int_t GetUnixTime();
96  void PrintInfo();
97  void PrintEventInfo();
98  Int_t Reset();
99  void UpdateReader();
100  Int_t InitEvp(const char* option){return kStErr;}
101  Int_t GetSvtEvpData(){return kStErr;}
102 
103  virtual Int_t Init();
104  // virtual Int_t InitRun(int runnumber);
105  virtual Int_t Make();
106  virtual void Clear(const char *opt);
107  virtual Int_t Finish();
108 
109  virtual const char *GetCVS() const
110  {static const char cvs[]="Tag $Name: $ $Id: StSvtDaqMaker.h,v 1.11 2014/08/06 11:43:45 jeromel Exp $ built " __DATE__ " " __TIME__ ; return cvs;}
111 
112  ClassDef(StSvtDaqMaker,0) //StAF chain virtual base class for Makers
113 };
114 
115 #endif
116 
117 
virtual Int_t Make()
Definition: Stypes.h:44
virtual Int_t Finish()