StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StChargedPionJetParticle.h
1 #ifndef ST_CHARGED_PION_JET_PARTICLE_HH
2 #define ST_CHARGED_PION_JET_PARTICLE_HH
3 
4 // $Id: StChargedPionJetParticle.h,v 1.4 2009/01/04 17:48:10 kocolosk Exp $
5 
6 #include "Math/PtEtaPhiE4D.h"
7 #include "Math/LorentzVector.h"
8 using namespace ROOT::Math;
9 
10 #include "StarClassLibrary/StThreeVectorF.hh"
11 #include "StEvent/StEnumerations.h"
12 
13 #include "TLorentzVector.h"
14 
15 class StChargedPionJetParticle : public LorentzVector< PtEtaPhiE4D<Double32_t> > {
16 public:
18  virtual ~StChargedPionJetParticle();
19 
20  int index();
21  StDetectorId detectorId();
22 
23  int charge();
24  unsigned int nHits();
25  unsigned int nHitsPoss();
26  unsigned int nHitsFit();
27  unsigned int nHitsDEdx();
28  double nSigmaPion();
29 
30  StThreeVectorF& globalDca();
31  const StThreeVectorF& globalDca() const;
32 
33  double z(const TLorentzVector&) const;
34 
35  void setIndex(short);
36  void setDetectorId(StDetectorId);
37 
38  void setCharge(char);
39  void setNHits(unsigned char);
40  void setNHitsFit(unsigned char);
41  void setNHitsPoss(unsigned char);
42  void setNHitsDEdx(unsigned char);
43  void setNSigmaPion(float);
44 
45  void setGlobalDca(StThreeVectorF&);
46 
47 private:
48  Short_t mIndex;
49  Char_t mDetectorId;
50  Char_t mCharge;
51  UChar_t mNHits;
52  UChar_t mNHitsFit;
53  UChar_t mNHitsDEdx;
54  UChar_t mNHitsPoss;
55  Float_t mNSigmaPion;
56  StThreeVectorF mGlobalDca;
57 
58  ClassDef(StChargedPionJetParticle, 2)
59 };
60 
61 inline int StChargedPionJetParticle::index() { return mIndex; }
62 inline StDetectorId StChargedPionJetParticle::detectorId() { return StDetectorId(mDetectorId); }
63 inline int StChargedPionJetParticle::charge() { return mCharge; }
64 inline unsigned int StChargedPionJetParticle::nHits() { return mNHits; }
65 inline unsigned int StChargedPionJetParticle::nHitsPoss() { return mNHitsPoss; }
66 inline unsigned int StChargedPionJetParticle::nHitsFit() { return mNHitsFit; }
67 inline unsigned int StChargedPionJetParticle::nHitsDEdx() { return mNHitsDEdx; }
68 inline double StChargedPionJetParticle::nSigmaPion() { return mNSigmaPion; }
69 inline StThreeVectorF& StChargedPionJetParticle::globalDca() { return mGlobalDca; }
70 inline const StThreeVectorF& StChargedPionJetParticle::globalDca() const { return mGlobalDca; }
71 
72 inline void StChargedPionJetParticle::setIndex(short a) { mIndex = a; }
73 inline void StChargedPionJetParticle::setDetectorId(StDetectorId a) { mDetectorId = char(a); }
74 inline void StChargedPionJetParticle::setCharge(char a) { mCharge = a; }
75 inline void StChargedPionJetParticle::setNHits(unsigned char a) { mNHits = a; }
76 inline void StChargedPionJetParticle::setNHitsFit(unsigned char a) { mNHitsFit = a; }
77 inline void StChargedPionJetParticle::setNHitsPoss(unsigned char a) { mNHitsPoss = a; }
78 inline void StChargedPionJetParticle::setNHitsDEdx(unsigned char a) { mNHitsDEdx = a; }
79 inline void StChargedPionJetParticle::setNSigmaPion(float a) { mNSigmaPion = a; }
80 inline void StChargedPionJetParticle::setGlobalDca(StThreeVectorF & a) { mGlobalDca = a; }
81 
82 #endif
83 
84 /*****************************************************************************
85  * $Log: StChargedPionJetParticle.h,v $
86  * Revision 1.4 2009/01/04 17:48:10 kocolosk
87  * include StEnumerations.h instead of deprecated StDetectorId.h
88  *
89  * Revision 1.3 2008/12/29 15:58:30 kocolosk
90  * removed commented code and added Id and Log as needed
91  *
92  *****************************************************************************/