StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
EEmcHit.h
1 /*
2  * Created by S. Gliske, May 2012
3  *
4  * Description: Container used in the EEmcAnalysisTree. Note: this
5  * class does not explicitly depend on the STAR framework, and so the
6  * trees can be read outside of the STAR framework. Note: data
7  * members are most all public, to allow a lighter weight
8  * implementation.
9  *
10  */
11 
12 #ifndef EEmcHit_H_
13 #define EEmcHit_H_
14 
15 #include <Rtypes.h>
16 #include <TObject.h>
17 #include <TArrayS.h>
18 #include <TArrayF.h>
19 
20 class EEmcHit_t : public TObject{
21  public:
22  EEmcHit_t();
23  virtual ~EEmcHit_t(){ /* */ };
24 
25  void Clear( const Option_t* );
26 
27  Int_t uClusIdx, vClusIdx;
28 
29  Float_t x, y; // position on the EEMC
30  Float_t eta, phi; // x,y in other coord system
31 
32  Float_t eTow, ePost; // Total energy in the towers and post, summed over all used towers
33  Float_t ePre1, ePre2; // Energy in each preshower layer, for just the central tower
34 
35  // the following is to store the indices and weights of the "used"
36  // towers
37 
38  enum { kMaxNumTowers = 9 };
39 
40  Short_t centralTowerIdx;
41  Short_t numUsedTowers;
42 
43  Short_t usedTowerIdx[ kMaxNumTowers ];
44  Float_t usedTowerWeight[ kMaxNumTowers ];
45 
46  private:
47  ClassDef( EEmcHit_t, 3 );
48 };
49 
50 #endif
51 
52 /*
53  * $Id: EEmcHit.h,v 1.1 2012/11/26 19:04:30 sgliske Exp $
54  * $Log: EEmcHit.h,v $
55  * Revision 1.1 2012/11/26 19:04:30 sgliske
56  * moved from offline/users/sgliske/StRoot/StEEmcPool/EEmcTreeContainers to StRoot/StEEmcPool/EEmcTreeContainers
57  *
58  *
59  */