StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
EEeventDst.h
1 // Hey Emacs this is really -*-c++-*- !
2 // \class EEeventDst
3 // \author Piotr A. Zolnierczuk, Aug 2002
4 #ifndef EEeventDst_h
5 #define EEeventDst_h
6 /*********************************************************************
7  * $Id: EEeventDst.h,v 1.4 2004/04/08 21:34:32 perev Exp $
8  *********************************************************************
9  * Descripion:
10  * STAR Endcap Electromagnetic Calorimeter Raw Hits
11  *********************************************************************
12  * $Log: EEeventDst.h,v $
13  * Revision 1.4 2004/04/08 21:34:32 perev
14  * Leak off
15  *
16  * Revision 1.3 2003/07/01 14:13:13 balewski
17  * no clue
18  *
19  * Revision 1.2 2003/02/21 22:21:47 balewski
20  * time stamp added
21  *
22  * Revision 1.1 2003/02/20 05:15:14 balewski
23  * reorganization
24  *
25  * Revision 1.1 2003/01/28 23:16:06 balewski
26  * start
27  *
28  * Revision 1.5 2002/11/11 21:22:48 balewski
29  * EEMC added to StEvent
30  *
31  * Revision 1.4 2002/10/01 06:03:15 balewski
32  * added smd & pre2 to TTree, tof removed
33  *
34  * Revision 1.3 2002/09/25 16:47:55 balewski
35  * cleanup , cut in geant time for twoer-like detectors
36  *
37  * Revision 1.2 2002/09/20 21:58:13 balewski
38  * sum of MC hits over activ detectors
39  * produce total tower energy with weight 1 1 1 1
40  *
41  * Revision 1.1.1.1 2002/09/19 18:58:54 zolnie
42  * Imported sources
43  *
44  * Revision 1.1.1.1 2002/08/29 19:32:01 zolnie
45  * imported sources
46  *
47  * Revision 1.2 2002/08/28 01:44:03 zolnie
48  * version alpha - 2
49  *
50  * Revision 1.1 2002/08/26 19:46:19 zolnie
51  * Initial revision
52  *
53  *********************************************************************/
54 
55 #include "TObject.h"
56 
57 class TClonesArray;
58 class EEsectorDst;
59 
60 
61 class EEeventDst :public TObject{
62 
63 public:
64 
65  enum DataType {
66  kUnknown = 0,
67  kRawMC=1, // 1:1 copy of all geant hits
68  kTrigMC=2, // hits from many tracks added for each detector
69  kMiniDaq=3 // real hits from miniDAQ
70  };
71 
72  int ID;
73  DataType type;
74  int token;
75  unsigned int timeStamp; //(unix time, GMT)
76 
77  // hits sorted by sectors
78  TClonesArray *Sec;
79 
80  EEeventDst();
81  virtual ~EEeventDst();
82  void print(int k=0);
83  EEsectorDst *addSectorDst(int ID);
84  EEsectorDst *getSec(int secID, int create=0);
85  void clear();
86  void Clear(const char* opt="");
87  int getID(){return ID;}
88  int getNSectors();
89  void setID(int id){ ID=id;}
90  void setType(DataType t){ type=t;}
91  DataType getType(){return type;}
92  void sumRawMC(EEeventDst*,float minE=0.0001); //(GeV),(sec)
93 
94  ClassDef(EEeventDst,1) // Endcap Emc event
95 };
96 #endif
97 
98