StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFcsDbMaker.h
1 /***************************************************************************
2  * $Id: StFcsDbMaker.h,v 1.2 2021/05/27 14:02:25 akio Exp $
3  * \author: akio ogawa
4  ***************************************************************************
5  *
6  * Description: FCS DB access Maker
7  *
8  ***************************************************************************
9  *
10  * $Log: StFcsDbMaker.h,v $
11  * Revision 1.2 2021/05/27 14:02:25 akio
12  * clean up Clear and fixGain/corr
13  *
14  * Revision 1.1 2021/03/30 13:40:07 akio
15  * FCS code after peer review and moved from $CVSROOT/offline/upgrades/akio
16  *
17  * Revision 1.22 2021/02/25 21:53:50 akio
18  * Int_t -> int
19  *
20  * Revision 1.21 2021/02/24 22:56:19 akio
21  * Modified for STAR code review (Dmitry)
22  *
23  * Revision 1.20 2021/02/23 22:18:23 akio
24  * Modified for STAr code review (Jason)
25  *
26  * Revision 1.19 2021/02/12 20:09:50 akio
27  * Adding getIdfromSCmap()
28  *
29  * Revision 1.18 2021/02/09 21:54:23 akio
30  * Using StEnumeration
31  *
32  * Revision 1.17 2021/02/05 17:23:25 akio
33  * Adding access to STAR offline DB tables.
34  * Adding getFromName/getDetFromName from David.
35  *
36  * Revision 1.16 2021/01/05 18:15:01 akio
37  * added setPedestal()
38  *
39  * Revision 1.15 2020/12/30 20:17:55 akio
40  * adding SC map access
41  *
42  * Revision 1.14 2020/09/03 19:43:20 akio
43  * Updating SC map and adding patchpanel & cable color map
44  *
45  * Revision 1.13 2020/05/29 18:53:40 akio
46  * Adding EPD as PRES maps, STAR coordinate for 4x4 trigger patch, renming map files to be used for DAQ as Tonko specifies
47  *
48  * Revision 1.12 2020/05/04 15:48:22 akio
49  * adding input file for DAQ
50  *
51  * Revision 1.11 2019/10/23 13:34:38 akio
52  * Adding getZDepth, and take out Ecal front space (for SiPM/Fee) from offsets
53  * so that x/z offsets are now pointing to actual ecal tower front & near beam corner.
54  *
55  * Revision 1.10 2019/07/10 06:13:34 akio
56  * Adding reading of gains from text files
57  *
58  * Revision 1.9 2019/07/03 16:18:49 akio
59  * correcting a comment
60  *
61  * Revision 1.8 2019/06/27 16:10:32 akio
62  * adding getLocalXYinCell
63  *
64  * Revision 1.7 2019/06/26 18:03:07 akio
65  * change default to mRun19=0 (futture full FCS)
66  *
67  * Revision 1.6 2019/06/25 16:38:59 akio
68  * Fixed y offset for run19
69  * Added setting run# and time dependent (for preshower yoffset only for now)
70  *
71  * Revision 1.5 2019/06/21 17:28:55 akio
72  * dealing with 5cm offsent when leakyHcal
73  *
74  * Revision 1.4 2019/06/07 18:16:55 akio
75  * *** empty log message ***
76  *
77  * Revision 1.3 2019/03/13 20:46:19 akio
78  * formatting
79  *
80  * Revision 1.2 2019/03/13 20:29:30 akio
81  * update for run19
82  *
83  * Revision 1.1 2018/11/14 16:50:13 akio
84  * FCS codes in offline/upgrade/akio
85  *
86  **************************************************************************/
87 
88 #ifndef STFCSDBMAKER_H
89 #define STFCSDBMAKER_H
90 
91 #ifndef StMaker_H
92 #include "StMaker.h"
93 #endif
94 
95 class StFcsDb;
96 class StFcsDbPulse;
97 
98 class StFcsDbMaker : public StMaker {
99 public:
100  StFcsDbMaker(const char *name="fcsDbMkr");
101  virtual ~StFcsDbMaker();
102  virtual int Init();
103  int InitRun(int runNumber);
104  void Clear(Option_t *option);
105  int Make();
106  void setDbAccess(int v){mDbAccess=v;}
107 
108 private:
109  StFcsDb *mFcsDb;
110  int mDbAccess=1;
111  StFcsDbPulse* mFcsDbPulse;
112 
113  virtual const Char_t *GetCVS() const {static const Char_t cvs[]="Tag " __DATE__ " " __TIME__ ; return cvs;}
114  ClassDef(StFcsDbMaker,0) //StAF chain virtual base class for Makers
115 };
116 
117 #endif
118 
119 
void Clear(Option_t *option)
User defined functions.