StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StRTSBaseMaker.h
1 #ifndef STAR_StRTSBaseMaker_H
2 #define STAR_StRTSBaseMaker_H
3 
4 /***************************************************************************
5  *
6  * $Id: StRTSBaseMaker.h,v 1.13 2014/08/06 11:42:55 jeromel Exp $
7  * StRTSBaseMaker - class to fille the StEvewnt from DAQ reader
8  *--------------------------------------------------------------------------
9  *
10  ***************************************************************************/
11 
12 #include "StMaker.h"
13 
14 class StRtsTable;
15 
16 
19 
23 class StRTSBaseMaker : public StMaker
36 {
37  private:
38  static const char *fRTSRootDataset; // The name of the Root dataset
39  StRtsTable *fDaq_Dta;
40  TString fDetectorName; // name of the detector
41 
42  protected:
43  StRtsTable *GetNextDaqElement(const char *elementPath);
44 
46 
50  StRtsTable *DaqDta() {return fDaq_Dta;}
51 
52  StRtsTable *GetNext(const char* bank);
53 
54  virtual StRtsTable *GetNextRaw();
55  virtual StRtsTable *GetNextRaw(int sec);
56  virtual StRtsTable *GetNextAdc();
57  virtual StRtsTable *GetNextAdc(int sec);
58  virtual StRtsTable *GetNextLegacy();
59  virtual StRtsTable *GetNextLegacy(int sec);
60 
61  public:
62 
63  StRTSBaseMaker(const char *detectorName,const char *makerName="");
64  virtual ~StRTSBaseMaker() ;
65 
66  Int_t Sector () const;
67  Int_t Pad () const;
68  Int_t Rdo () const;
69  Int_t Row () const;
70 
71  // DAQ Event raw data
72 
73  static UInt_t Token();
74  static UInt_t Trgcmd();
75  static UInt_t Daqcmd();
76  static UInt_t Trgword();
77  static UInt_t Phyword();
78  static UInt_t Daqbits();
79  static UInt_t Daqbits_l1();
80  static UInt_t Daqbits_l2();
81  static UInt_t Evpgroups() ;
82 
83  UInt_t Detectors() const;
84 
85  const TString &DetectorName() const { return fDetectorName; }
90  virtual Int_t Make() = 0;
91 
92  // cvs
93  virtual const char *GetCVS() const
94  {
95  static const char cvs[]="Tag $Name: $Id: built " __DATE__ " " __TIME__ ; return cvs;
96  }
97 
98  ClassDef(StRTSBaseMaker, 1) //StRTSBaseMaker - class to fille the StEvewnt from DAQ reader
99 };
100 
101 
102 #endif
static UInt_t Evpgroups()
evp groups aka L3 summary[2]
StRtsTable * GetNextDaqElement(const char *elementPath)
Query the STAR production chain for the DAQ data.
Class StRTSBaseMaker - is an abstract StMaker to define the interface to access the DAQ data from the...
static UInt_t Trgcmd()
current trigger command
static UInt_t Phyword()
the Physics Word
static UInt_t Daqbits_l2()
triggers satisfying l2
StRTSBaseMaker(const char *detectorName, const char *makerName="")
StRTSBaseMaker( const char *detectorName,TVirtualPad *pad) ctor.
static UInt_t Daqcmd()
current DAQ command
virtual StRtsTable * GetNextRaw()
This is an overloaded member function, provided for convenience.
static UInt_t Daqbits_l1()
triggers satisfying l1
StRtsTable * DaqDta()
Return the current DAQ data block. This member function is provided for convenience.
static UInt_t Trgword()
the Trigger Word
StRtsTable * GetNext(const char *bank)
This is an overloaded member function, provided for convenience.
virtual StRtsTable * GetNextAdc()
This is an overloaded member function, provided for convenience.
UInt_t Detectors() const
detectors present bit mask according to DAQ!
static UInt_t Token()
current token
virtual StRtsTable * GetNextLegacy()
This is an overloaded member function, provided for convenience.
virtual ~StRTSBaseMaker()
StRTSBaseMaker class dtor.
virtual Int_t Make()=0
static UInt_t Daqbits()
"offline" bits aka L3 summary...