00001 // Hey Emacs this is really -*-c++-*- ! 00002 // \class EEeventDst 00003 // \author Piotr A. Zolnierczuk, Aug 2002 00004 #ifndef EEeventDst_h 00005 #define EEeventDst_h 00006 /********************************************************************* 00007 * $Id: EEeventDst.h,v 1.4 2004/04/08 21:34:32 perev Exp $ 00008 ********************************************************************* 00009 * Descripion: 00010 * STAR Endcap Electromagnetic Calorimeter Raw Hits 00011 ********************************************************************* 00012 * $Log: EEeventDst.h,v $ 00013 * Revision 1.4 2004/04/08 21:34:32 perev 00014 * Leak off 00015 * 00016 * Revision 1.3 2003/07/01 14:13:13 balewski 00017 * no clue 00018 * 00019 * Revision 1.2 2003/02/21 22:21:47 balewski 00020 * time stamp added 00021 * 00022 * Revision 1.1 2003/02/20 05:15:14 balewski 00023 * reorganization 00024 * 00025 * Revision 1.1 2003/01/28 23:16:06 balewski 00026 * start 00027 * 00028 * Revision 1.5 2002/11/11 21:22:48 balewski 00029 * EEMC added to StEvent 00030 * 00031 * Revision 1.4 2002/10/01 06:03:15 balewski 00032 * added smd & pre2 to TTree, tof removed 00033 * 00034 * Revision 1.3 2002/09/25 16:47:55 balewski 00035 * cleanup , cut in geant time for twoer-like detectors 00036 * 00037 * Revision 1.2 2002/09/20 21:58:13 balewski 00038 * sum of MC hits over activ detectors 00039 * produce total tower energy with weight 1 1 1 1 00040 * 00041 * Revision 1.1.1.1 2002/09/19 18:58:54 zolnie 00042 * Imported sources 00043 * 00044 * Revision 1.1.1.1 2002/08/29 19:32:01 zolnie 00045 * imported sources 00046 * 00047 * Revision 1.2 2002/08/28 01:44:03 zolnie 00048 * version alpha - 2 00049 * 00050 * Revision 1.1 2002/08/26 19:46:19 zolnie 00051 * Initial revision 00052 * 00053 *********************************************************************/ 00054 00055 #include "TObject.h" 00056 00057 class TClonesArray; 00058 class EEsectorDst; 00059 00060 00061 class EEeventDst :public TObject{ 00062 00063 public: 00064 00065 enum DataType { 00066 kUnknown = 0, 00067 kRawMC=1, // 1:1 copy of all geant hits 00068 kTrigMC=2, // hits from many tracks added for each detector 00069 kMiniDaq=3 // real hits from miniDAQ 00070 }; 00071 00072 int ID; 00073 DataType type; 00074 int token; 00075 unsigned int timeStamp; //(unix time, GMT) 00076 00077 // hits sorted by sectors 00078 TClonesArray *Sec; 00079 00080 EEeventDst(); 00081 virtual ~EEeventDst(); 00082 void print(int k=0); 00083 EEsectorDst *addSectorDst(int ID); 00084 EEsectorDst *getSec(int secID, int create=0); 00085 void clear(); 00086 void Clear(const char* opt=""); 00087 int getID(){return ID;} 00088 int getNSectors(); 00089 void setID(int id){ ID=id;} 00090 void setType(DataType t){ type=t;} 00091 DataType getType(){return type;} 00092 void sumRawMC(EEeventDst*,float minE=0.0001); //(GeV),(sec) 00093 00094 ClassDef(EEeventDst,1) // Endcap Emc event 00095 }; 00096 #endif 00097 00098
1.5.9