StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
EEsectorDst.h
1 // Hey Emacs this is really -*-c++-*- !
2 // \class EEevent
3 // \author Piotr A. Zolnierczuk, Aug 2002
4 #ifndef EEsectorDst_h
5 #define EEsectorDst_h
6 /*********************************************************************
7  * $Id: EEsectorDst.h,v 1.4 2003/10/02 20:52:45 balewski Exp $
8  *********************************************************************
9  * Descripion:
10  * STAR Endcap Electromagnetic Calorimeter Raw Hits
11  *********************************************************************
12  * $Log: EEsectorDst.h,v $
13  * Revision 1.4 2003/10/02 20:52:45 balewski
14  * more functionality for print()
15  *
16  * Revision 1.3 2003/02/20 20:13:15 balewski
17  * fixxy
18  * xy
19  *
20  * Revision 1.2 2003/02/20 05:15:14 balewski
21  * reorganization
22  *
23  * Revision 1.1 2003/01/28 23:16:07 balewski
24  * start
25  *
26  * Revision 1.4 2002/11/12 20:08:30 balewski
27  * some cleanup
28  *
29  * Revision 1.3 2002/10/01 06:03:16 balewski
30  * added smd & pre2 to TTree, tof removed
31  *
32  * Revision 1.2 2002/09/20 21:58:13 balewski
33  * sum of MC hits over activ detectors
34  * produce total tower energy with weight 1 1 1 1
35  *
36  * Revision 1.1.1.1 2002/09/19 18:58:54 zolnie
37  * Imported sources
38  *
39  * Revision 1.1.1.1 2002/08/29 19:32:01 zolnie
40  * imported sources
41  *
42  * Revision 1.2 2002/08/28 01:44:03 zolnie
43  * version alpha - 2
44  *
45  * Revision 1.1 2002/08/26 19:46:19 zolnie
46  * Initial revision
47  *
48  *********************************************************************/
49 #include "TObject.h"
50 
51 class TClonesArray;
52 
53 class EEsectorDst : public TObject{
54 
55  // hits from each subdetector in depth, for a single
56 public:
57  TClonesArray *Pre1Hits;
58  TClonesArray *Pre2Hits;
59  TClonesArray *SmdUHits;
60  TClonesArray *SmdVHits;
61  TClonesArray *TwHits;
62  TClonesArray *PostHits;
63  int ID ;// range 1-12
64 
65  void addTwHit(char, int,float,TClonesArray *hitA); //generic for tower-like entries
66  void addSmdHit(int, float,TClonesArray *hitA); //generic for smd-like entries
67 
68  EEsectorDst(int=1000);
69  virtual ~EEsectorDst();
70  void print(int k=0);
71  int getID(){return ID;}
72 
73  void addPre1Hit(char sub, int eta,float ener) {addTwHit(sub,eta,ener,Pre1Hits);}
74  void addPre2Hit(char sub, int eta,float ener) {addTwHit(sub,eta,ener,Pre2Hits);}
75  void addTwHit(char sub, int eta,float ener) {addTwHit(sub,eta,ener,TwHits);}
76  void addPostHit(char sub, int eta,float ener) {addTwHit(sub,eta,ener,PostHits);}
77  void addSmdUHit(int strip,float ener) {addSmdHit(strip,ener,SmdUHits);}
78  void addSmdVHit(int strip,float ener) {addSmdHit(strip,ener,SmdVHits);}
79 
80  void sumRawMC(EEsectorDst *outSec, float minE);
81  void sumRawMCtw(TClonesArray *inH, float* sum, int mx);// add hist from many tracks within one detector element
82  void sumRawMCsmd(TClonesArray *inH, float* sum, int mx);// add hist from many tracks within one detector element
83 
84  void clear();
85 
86  TClonesArray *getPre1Hits(){return Pre1Hits;}
87  TClonesArray *getPre2Hits(){return Pre2Hits;}
88  TClonesArray *getSmdUHits(){return SmdUHits;}
89  TClonesArray *getSmdVHits(){return SmdVHits;}
90  TClonesArray *getTwHits() {return TwHits;}
91  TClonesArray *getPostHits(){return PostHits;}
92 
93  ClassDef(EEsectorDst,1) // Endcap Emc event
94 };
95 #endif
96 
97