StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEMCReader.h
1 /***************************************************************************
2  *
3  *
4  *
5  * Author: Herbert Ward and Subhasis
6  ***************************************************************************
7  *
8  * Description: Offline Wrapper for DAQ EMC reader functions
9  *
10  ***************************************************************************
11  *
12  *
13  *
14  **************************************************************************/
15 #ifndef _StEMCReader_
16 #define _StEMCReader_
17 
18 
19 class EMC_Reader;
20 class StDAQReader;
21 
23 {
24  public:
26  virtual ~StEMCReader();
27  virtual int close();
28  virtual int Update();
29  int getTowerADC(int mod, int e, int s, unsigned short& ADC );
30  int getTowerADC(int index, unsigned short& ADC );
31  int getSMD_ADC (int index, int fiber, unsigned short& ADC );
32  int getSMDE_ADC(int mod, int e, unsigned short& ADC );
33  int getSMDP_ADC(int mod, int bin,int s,unsigned short& ADC );
34  int getSMD_TIMEBIN(int fiber, unsigned int& TimeBin);
35  int NSmdHits();
36  int NTowerHits();
37  EMC_Reader* getBemcReader(); // From Alex P. Suaide at Wayne State University, Aug 28 2002.
38 
39  protected:
40  EMC_Reader *fEMCImpReader;
41  StDAQReader* fDAQReader;
42 };
43 
44 #endif
void rd(int hits=0, bool clear=false)
This function redraws all hits and/or tracks from the current event.
Definition: Ed.C:69