StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StSCReader.h
1 /***************************************************************************
2  *
3  *
4  *
5  * Author: Herbert Ward
6  ***************************************************************************
7  *
8  * Description: Offline Wrapper for DAQ SC reader functions
9  *
10  ***************************************************************************
11  *
12  *
13  *
14  **************************************************************************/
15 #ifndef _StSCReader_
16 #define _StSCReader_
17 
18 class TDataSet;
19 struct sc_t;
20 
22 {
23  public:
24  StSCReader(sc_t *daqLegacy, unsigned int utime);
25  virtual ~StSCReader();
26  char thereIsSCData(); // returns FALSE if there is no SC data in the .daq file
27  virtual int close();
28  virtual int Update();
29  double getCTBWest();
30  double getCTBEast();
31  double getCTBOrTOFp();
32  double getTOFp();
33  double getZDCWest();
34  double getZDCEast();
35  double getZDCX();
36  double getZDCWestNoKiller();
37  double getZDCEastNoKiller();
38  double getZDCXNoKiller();
39  double getEPDX();
40  double getMult();
41  double getL0();
42  double getBBCX();
43  double getBBCXCTB();
44  double getBBCWest();
45  double getBBCEast();
46  double getBBCYellowBkg();
47  double getBBCBlueBkg();
48  double getPVPDWest();
49  double getPVPDEast();
50  unsigned int getValid();
51  unsigned int getTime();
52  int getTimelag();
53  float getMagField();
54  TDataSet* getSCTable(unsigned long runno=0);
55  protected:
56  void FillTime(unsigned int utime);
57 
58  sc_t *fSC;
59  short flipBBCBkg;
60  bool useNoKillers;
61  bool useEPD;
62 };
63 
64 #endif
Definition: daq_sc.h:6