StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
TowerToJetIndex.h
1 // -*- mode: c++ -*-
2 
3 //
4 // Pibero Djawotho <pibero@tamu.edu>
5 // Texas A&M University
6 // 4 September 2009
7 //
8 
9 #ifndef TOWER_TO_JET_INDEX_H
10 #define TOWER_TO_JET_INDEX_H
11 
12 #ifndef StEnumerations_hh
13 #define StEnumerations_hh
14 
15 #define kUnknownIdentifier 0
16 #define kTpcIdentifier 1
17 #define kBarrelEmcTowerIdentifier 9
18 #define kEndcapEmcTowerIdentifier 13
19 
20 enum StDetectorId {
21  kUnknownId = kUnknownIdentifier,
22  kTpcId = kTpcIdentifier,
23  kBarrelEmcTowerId = kBarrelEmcTowerIdentifier,
24  kEndcapEmcTowerId = kEndcapEmcTowerIdentifier,
25 };
26 
27 #endif // StEnumerations_hh
28 
29 #include "TLorentzVector.h"
30 
31 class TowerToJetIndex : public TLorentzVector {
32 public:
33  TowerToJetIndex(int jetIndex = -1)
34  : mJetIndex(jetIndex)
35  , mTowerId(0)
36  , mDetectorId(kUnknownId)
37  , mAdc(0)
38  , mPedestal(0)
39  , mRms(0)
40  , mStatus(0)
41  {
42  }
43 
44  int jetIndex () const { return mJetIndex ; }
45  int towerId () const { return mTowerId ; }
46  int detectorId() const { return mDetectorId; }
47  int adc () const { return mAdc ; }
48  float pedestal () const { return mPedestal ; }
49  float rms () const { return mRms ; }
50  int status () const { return mStatus ; }
51 
52  void setJetIndex (int jetIndex ) { mJetIndex = jetIndex ; }
53  void setTowerId (int towerId ) { mTowerId = towerId ; }
54  void setDetectorId(int detectorId) { mDetectorId = detectorId; }
55  void setAdc (int adc ) { mAdc = adc ; }
56  void setPedestal (float pedestal) { mPedestal = pedestal ; }
57  void setRms (float rms ) { mRms = rms ; }
58  void setStatus (int status ) { mStatus = status ; }
59 
60 private:
61  int mJetIndex;
62  int mTowerId;
63  int mDetectorId;
64  int mAdc;
65  float mPedestal;
66  float mRms;
67  int mStatus;
68 
69  ClassDef(TowerToJetIndex, 1);
70 };
71 
72 #endif // TOWER_TO_JET_INDEX_H