StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTpcRTSHitMaker.h
1 #ifndef StTpcRTSHitMaker_H
2 #define StTpcRTSHitMaker_H
3 
4 /***************************************************************************
5  *
6  * $Id: StTpcRTSHitMaker.h,v 1.19 2021/05/10 21:13:19 fisyak Exp $
7  * StTpcRTSHitMaker - class to runonline (RTS) cluster maker over StTpcRawData
8  * $Log: StTpcRTSHitMaker.h,v $
9  * Revision 1.19 2021/05/10 21:13:19 fisyak
10  * Clean up
11  *
12  * Revision 1.17 2018/10/17 20:45:27 fisyak
13  * Restore update for Run XVIII dE/dx calibration removed by Gene on 08/07/2018
14  *
15  * Revision 1.15 2018/06/22 18:35:19 perev
16  * Merging with TPC group code
17  *
18  * Revision 1.12 2014/08/06 11:43:50 jeromel
19  * Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
20  *
21  * Revision 1.11 2012/09/13 21:00:04 fisyak
22  * Corrections for iTpx, clean up
23  *
24  * Revision 1.10 2012/05/07 23:01:37 fisyak
25  * Add Tonko's interface for variable no. of pad rows
26  *
27  * Revision 1.9 2012/05/07 15:51:01 fisyak
28  * Remove hard coded TPC numbers
29  *
30  * Revision 1.8 2011/03/08 18:20:44 genevb
31  * Limit on number of hits starting at time bin 0
32  *
33  * Revision 1.7 2010/08/30 18:02:02 genevb
34  * Introduce hit maxima for tracking
35  *
36  * Revision 1.6 2010/01/12 22:55:17 fisyak
37  * Add minimum cluster charge in ADC for <= 20090101
38  *
39  * Revision 1.5 2009/11/25 21:34:04 fisyak
40  * replace daqReader by daq_tpx
41  *
42  * Revision 1.4 2009/11/10 21:05:08 fisyak
43  * Add attributes for sector and pad row selections
44  *
45  * Revision 1.3 2009/10/07 13:46:35 fine
46  * replace the obsolete rts_reader with the modern daqReader
47  *
48  * Revision 1.2 2008/12/15 21:04:01 fine
49  * For for the NEW_DAQ_READER
50  *
51  * Revision 1.1.1.1 2008/05/27 14:22:41 fisyak
52  * Maker to access TPC DAQ information via EVP_READER
53  *
54  * Revision 1.1 2008/04/28 14:37:16 fisyak
55  * Rearrage TpcHitMaker to make it run for parallel taks, add the first version of online clustering
56  *
57  * Revision 1.1.1.1 2008/04/03 20:16:39 fisyak
58  * Initial version
59  *
60  *--------------------------------------------------------------------------
61  *
62  ***************************************************************************/
63 #include <string.h>
64 #include "StMaker.h"
65 
66 class StTpcDigitalSector;
67 
68 #include "StDAQMaker/StRtsReaderMaker.h"
69 class daq_tpx;
70 class daq_itpc;
71 class daq_dta;
72 class daq_cld;
73 class tpc23_base;
74 class TH2F;
75 class StTpcRTSHitMaker : public StMaker {
76  public:
77  StTpcRTSHitMaker(const char *name="tpc_hits") : StMaker(name), fTpx(0), fiTpc(0),
78  fTpx23(0), fiTpc23(0),
79  fminCharge(0) {fgStTpcRTSHitMaker = this;}
80  virtual ~StTpcRTSHitMaker();
81  static StTpcRTSHitMaker *instance() {return fgStTpcRTSHitMaker;}
82  Int_t Init();
83  Int_t InitRun(Int_t runnumber);
84  Int_t InitRun23(Int_t runnumber);
85  Int_t Make();
86  Int_t Make23();
87  Int_t from_file(daq_dta *gain_dta, const Char_t *fname = "");
88  void PrintCld(daq_cld *cld = 0, Int_t IdTruth = 0, Int_t quality=0);
89  void PrintAdc(daq_dta *dta = 0);
90  static TH2F *PlotSecRow(Int_t sec = 1, Int_t row = 1, Int_t flags = 2);
91  private:
92  daq_tpx *fTpx;
93  daq_itpc *fiTpc;
94  tpc23_base *fTpx23;
95  tpc23_base *fiTpc23;
96  Int_t FixGains(tpc23_base *tpc23, Int_t sector, Int_t row, Int_t npads); // fix dead pads and edges
97  Bool_t fNoiTPCLu;
98  Double_t fminCharge; // ! minimum cluster charge in ADC
99  Int_t maxHits[24];
100  Int_t maxBin0Hits;
101  Int_t bin0Hits;
102  static StTpcRTSHitMaker *fgStTpcRTSHitMaker;
103  // cvs
104  virtual const char *GetCVS() const {
105  static const char cvs[]="Tag $Name: $ $Id: StTpcRTSHitMaker.h,v 1.19 2021/05/10 21:13:19 fisyak Exp $ built " __DATE__ " " __TIME__ ; return cvs;
106  }
107  ClassDef(StTpcRTSHitMaker, 1) //StTpcRTSHitMaker - class to fille the StEvewnt from DAQ reader
108 };
109 
110 #endif
StMaker(const char *name="", const char *dummy=0)
Constructor &amp; Destructor.
Definition: StMaker.cxx:188