StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StSvtData.hh
1 /***************************************************************************
2  *
3  * $Id: StSvtData.hh,v 1.6 2004/01/26 23:14:14 perev Exp $
4  *
5  * Author: Marcelo Munhoz
6  ***************************************************************************
7  *
8  * Description: SVT Data BASE class
9  *
10  ***************************************************************************
11  *
12  * $Log: StSvtData.hh,v $
13  * Revision 1.6 2004/01/26 23:14:14 perev
14  * Leak off
15  *
16  * Revision 1.5 2001/10/24 16:48:50 munhoz
17  * adding capability to retrieve t0 and first SCA
18  *
19  * Revision 1.4 2000/11/30 20:39:12 caines
20  * Changed to allow us of database
21  *
22  * Revision 1.3 2000/08/23 12:48:44 munhoz
23  * add reset method
24  *
25  * Revision 1.2 2000/07/06 03:47:31 caines
26  * Add PedOffset to class so can calc. sum adc
27  *
28  * Revision 1.1.1.1 2000/03/10 14:26:21 munhoz
29  * SVT Class Library
30  *
31  **************************************************************************/
32 
33 #ifndef STSVTDATA_HH
34 #define STSVTDATA_HH
35 
36 #include "StSvtHybridCollection.hh"
37 
38 #define N_SECTORS 24
39 
40 class StSvtHybridData;
41 class StSVTReader;
42 class StSvtAsciiUnpacker;
43 
45 {
46 public:
47  StSvtData();
48  StSvtData(const char* config, int run=0, int event=0, int trigger=0, int time=0);
49  StSvtData(StSvtConfig* config, int run=0, int event=0, int trigger=0, int time=0);
50  virtual ~StSvtData();
51 
52  StSvtData(const StSvtData&);
53  StSvtData& operator = (const StSvtData&);
54 
55  void setRunNumber(int run) { mRunNumber = run;}
56  void setEventNumber(int evt) { mEventNumber = evt;}
57  void setTrigWord(int trigger) { mTriggerWord = trigger;}
58  void setPedOffset(int offset){mPedOffset = offset;}
59  void setUnixTime(int time) {mUnixTime = time;}
60 
61  int getRunNumber() {return mRunNumber;}
62  int getEventNumber() {return mEventNumber;}
63  int getTrigWord() {return mTriggerWord;}
64  int getPedOffset(){return mPedOffset;}
65  int getUnixTime() {return mUnixTime;}
66 
67 protected:
68 
69  int mRunNumber; // Run Number
70  int mEventNumber; // Event Number
71  int mTriggerWord; // Trigger Type
72  int mPedOffset; //Pedestal offset added so can see zero
73  int mUnixTime; // Unix time
74 
75  ClassDef(StSvtData,1)
76 };
77 
78 #endif