StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTrsDetectorReader.hh
1 /***************************************************************************
2  *
3  * $Id: StTrsDetectorReader.hh,v 1.3 2003/12/24 13:44:51 fisyak Exp $
4  *
5  * Authors: bl, mcbs
6  ***************************************************************************
7  *
8  * Description: Access to the digital information via the abstract
9  * interface
10  ***************************************************************************
11  *
12  * $Log: StTrsDetectorReader.hh,v $
13  * Revision 1.3 2003/12/24 13:44:51 fisyak
14  * Add (GEANT) track Id information in Trs; propagate it via St_tpcdaq_Maker; account interface change in StTrsZeroSuppressedReaded in StMixerMaker
15  *
16  * Revision 1.2 1999/12/08 02:10:25 calderon
17  * Modified to eliminate warnings on Linux.
18  *
19  * Revision 1.1 1999/11/05 22:17:04 calderon
20  * Made private copy constructor and operator= in StTrsDigitalSector.
21  * Renamed DigitalSignalGenerators: Fast -> Old, Parameterized -> Fast
22  * and use new "Fast" as default.
23  * Added StTrsDetectorReader and StTrsZeroSuppressedReader for DAQ type
24  * data access.
25  *
26  ***************************************************************************/
27 #ifndef ST_TRS_DETECTOR_READER_HH
28 #define ST_TRS_DETECTOR_READER_HH
29 
30 #include <string>
31 
32 #include "StTpcRawDataEvent.hh"
33 
34 //#include "StDaqLib/GENERIC/EventReader.hh"
36 //typedef StTrsZeroSuppressedReader ZeroSuppressedReader;
37 class StTrsDetectorReader {//: public DetectorReader {
38 public:
40  // StTrsDetectorReader(string& fd, string& ver = "0");
41  // StTrsDetectorReader(St_DataSet& ev, string& ver = "0");
42  StTrsDetectorReader(StTpcRawDataEvent* ev, std::string ver = std::string("TrsDatav1.0"));
43 
45 
46  StTrsZeroSuppressedReader* getZeroSuppressedReader(int sector);
47 #if 0
48  ADCRawReader* getADCRawReader(int sector);
49  PedestalReader* getPedestalReader(int sector);
50  PedestalRMSReader* getPedestalRMSReader(int sector);
51  GainReader* getGainReader(int sector);
52  CPPReader* getCPPReader(int sector);
53  BadChannelReader* getBadChannelReader(int sector);
54 
55  int MemUsed();
56 #endif
57 protected:
58 #if 0
59  // Buffer and index functions for the various readers.
60  // Initially these will do nothing. Add functionality
61  // to increase performance
62  int InformBuffers(ZeroSuppressedReader *, int sector);
63  int InformBuffers(ADCRawReader *,int sector);
64  int InformBuffers(PedestalReader *,int sector);
65  int InformBuffers(PedestalRMSReader *,int sector);
66  int InformBuffers(GainReader *,int sector);
67  int InformBuffers(CPPReader *,int sector);
68  int InformBuffers(BadChannelReader *,int sector);
69  int InformBuffers(ConfigReader *,int sector);
70 
71  int AttachBuffers(ZeroSuppressedReader *, int sector);
72  int AttachBuffers(ADCRawReader *, int sector);
73  int AttachBuffers(PedestalReader *, int sector);
74  int AttachBuffers(PedestalRMSReader *, int sector);
75  int AttachBuffers(GainReader *, int sector);
76  int AttachBuffers(CPPReader *, int sector);
77  int AttachBuffers(BadChannelReader *, int sector);
78  int AttachBuffers(ConfigReader *, int sector);
79 
80  int errnum;
81  //char errstr0[250];
82 
83 #endif
84 private:
86  StTrsDetectorReader& operator=(const StTrsDetectorReader& rhs);
87  std::string mVersion;
88  StTpcRawDataEvent* mTheEvent;
90 };
91 #endif