00001 00002 00003 // Program name: CDTruthHitInfo.cxx 00004 // 00005 // Package: CalDetTracker 00006 // 00007 // Purpose: A simple class to hold the MC truth about the hits 00008 // 00009 // Contact: Chris Smith, Ryan Nichol, Leo Jenner or Jeff Hartnell 00011 00012 #ifndef CDTRUTHHITINFO_H 00013 #define CDTRUTHHITINFO_H 00014 00015 #include "TObject.h" 00016 00017 class CDTruthHitInfo : public TObject 00018 { 00019 public: 00020 00021 CDTruthHitInfo(); 00022 CDTruthHitInfo(Int_t plane,Int_t strip); 00023 00024 //methods that do modify the object 00025 void SetEarliestT1(Double_t earliestT1) {fEarliestT1=earliestT1;} 00026 void SetLatestT2(Double_t latestT2) {fLatestT2=latestT2;} 00027 void SetMainPartEn(Double_t mainPartEn) {fMainPartEn=mainPartEn;} 00028 void SetMainPathLength(Double_t mainPL) {fMainPathLength=mainPL;} 00029 void SetMainParticle(Int_t particle) {fMainParticle=particle;} 00030 void SetMainT1(Double_t t1) {fMainT1=t1;} 00031 void SetMainX1(Double_t x1) {fMainX1=x1;} 00032 void SetMainY1(Double_t y1) {fMainY1=y1;} 00033 void SetMainZ1(Double_t z1) {fMainZ1=z1;} 00034 void SetMainT2(Double_t t2) {fMainT2=t2;} 00035 void SetMainX2(Double_t x2) {fMainX2=x2;} 00036 void SetMainY2(Double_t y2) {fMainY2=y2;} 00037 void SetMainZ2(Double_t z2) {fMainZ2=z2;} 00038 void SetNumDigiScintHits(Int_t num) {fNumDigiScintHits=num;} 00039 void SetPmtTruth1(Int_t pmtTruth) {fPmtTruth1=pmtTruth;} 00040 void SetPmtTruth2(Int_t pmtTruth) {fPmtTruth2=pmtTruth;} 00041 void SetTotalEnDep(Double_t totalEnDep) {fTotalEnDep=totalEnDep;} 00042 void SetVaChip1(Int_t vaChip) {fVaChip1=vaChip;} 00043 void SetVaChip2(Int_t vaChip) {fVaChip2=vaChip;} 00044 00045 //methods that don't modify the object 00046 Double_t GetEarliestT1() const {return fEarliestT1;} 00047 Double_t GetLatestT2() const {return fLatestT2;} 00048 Double_t GetMainPartEn() const {return fMainPartEn;} 00049 Double_t GetMainPathLength() const {return fMainPathLength;} 00050 Int_t GetMainParticle() const {return fMainParticle;} 00051 Double_t GetMainT1() const {return fMainT1;} 00052 Double_t GetMainX1() const {return fMainX1;} 00053 Double_t GetMainY1() const {return fMainY1;} 00054 Double_t GetMainZ1() const {return fMainZ1;} 00055 Double_t GetMainT2() const {return fMainT2;} 00056 Double_t GetMainX2() const {return fMainX2;} 00057 Double_t GetMainY2() const {return fMainY2;} 00058 Double_t GetMainZ2() const {return fMainZ2;} 00059 Int_t GetNumDigiScintHits() const {return fNumDigiScintHits;} 00060 Int_t GetPlane() const {return fPlane;} 00061 Int_t GetPmtTruth1() const {return fPmtTruth1;} 00062 Int_t GetPmtTruth2() const {return fPmtTruth2;} 00063 Int_t GetStrip() const {return fStrip;} 00064 Double_t GetTotalEnDep() const {return fTotalEnDep;} 00065 Int_t GetVaChip1() const {return fVaChip1;} 00066 Int_t GetVaChip2() const {return fVaChip2;} 00067 00068 private: 00069 00070 //methods that do modify the object 00071 void InitialiseVariables(); 00072 00073 //data members 00074 Double_t fEarliestT1; 00075 Double_t fLatestT2; 00076 Double_t fMainPartEn; 00077 Int_t fMainParticle; 00078 Double_t fMainPathLength; 00079 Double_t fMainT1; 00080 Double_t fMainX1; 00081 Double_t fMainY1; 00082 Double_t fMainZ1; 00083 Double_t fMainT2; 00084 Double_t fMainX2; 00085 Double_t fMainY2; 00086 Double_t fMainZ2; 00087 Int_t fNumDigiScintHits; 00088 Int_t fPlane; 00089 Int_t fPmtTruth1;//stripend 1 00090 Int_t fPmtTruth2;//stripend 2 00091 Int_t fStrip; 00092 Double_t fTotalEnDep;//sum of digiScintHits 00093 Int_t fVaChip1;//va chip on stripend 1 00094 Int_t fVaChip2;//va chip on stripend 2 00095 00096 ClassDef(CDTruthHitInfo,1) // CDTruthHitInfo 00097 }; 00098 #endif //CDTRUTHHITINFO_H 00099 00100 00101 00102 00103 00104 00105
1.3.9.1