#include <DigiScintHit.h>
Public Types | |
| typedef enum DigiScintHit::EFailMode | FailMode_t |
| enum | EFailMode { kInvalidStrip = 0x0001, kNegEnergy = 0x0002, kNullEnergy = 0x0004, kBadGeom = 0x0008, kNullPath = 0x0010, kPhotonComputer = 0x0020, kFailMask = 0xFFFF } |
Public Member Functions | |
| DigiScintHit () | |
| DigiScintHit (const DigiScintHit &) | |
| DigiScintHit (Int_t trkId, Int_t trkPid, Float_t trkEnergy, PlexStripEndId sid, Float_t t1, Float_t x1, Float_t y1, Float_t z1, Float_t t2, Float_t x2, Float_t y2, Float_t z2, Float_t ds, Float_t de, Float_t trkPx1=0., Float_t trkPy1=0., Float_t trkPz1=0.) | |
| void | SetTrackId (Int_t trackid) |
| void | SetT1 (Float_t newTime) |
| void | SetT2 (Float_t newTime) |
| Int_t | TrackId () const |
| Float_t | ParticleEnergy () const |
| Float_t | ParticleKineticEnergy () const |
| Int_t | ParticleId () const |
| const PlexStripEndId & | StripEndId () const |
| Int_t | Plane () const |
| Int_t | Strip () const |
| Float_t | T1 () const |
| Float_t | X1 () const |
| Float_t | Y1 () const |
| Float_t | Z1 () const |
| Float_t | T2 () const |
| Float_t | X2 () const |
| Float_t | Y2 () const |
| Float_t | Z2 () const |
| Float_t | DS () const |
| Float_t | DE () const |
| Float_t | ParticlePX1 () const |
| Float_t | ParticlePY1 () const |
| Float_t | ParticlePZ1 () const |
| UShort_t | FailBits () const |
| Bool_t | TestFailBit (FailMode_t failbit) const |
| UShort_t | TestFailBits (UShort_t failmask=kFailMask) const |
| void | SetFailBit (FailMode_t failbit) |
| virtual void | Print (Option_t *option="") const |
| virtual const char * | AsString (Option_t *option="") const |
| virtual std::ostream & | FormatToOStream (std::ostream &os, Option_t *option="") const |
Private Attributes | |
| PlexStripEndId | fStripId |
| Float_t | fT1 |
| Float_t | fX1 |
| Float_t | fY1 |
| Float_t | fZ1 |
| Float_t | fT2 |
| Float_t | fX2 |
| Float_t | fY2 |
| Float_t | fZ2 |
| Float_t | fDS |
| Float_t | fDE |
| Float_t | fParticleEnergy |
| Float_t | fParticlePX1 |
| Float_t | fParticlePY1 |
| Float_t | fParticlePZ1 |
| Int_t | fParticleId |
| Int_t | fTrackId |
| UShort_t | fFailBits |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const DigiScintHit &h) |
|
|
|
|
|
Definition at line 19 of file DigiScintHit.h. 00019 {
00020 kInvalidStrip = 0x0001,
00021 kNegEnergy = 0x0002,
00022 kNullEnergy = 0x0004,
00023 kBadGeom = 0x0008,
00024 kNullPath = 0x0010,
00025 kPhotonComputer = 0x0020,
00026 kFailMask = 0xFFFF
00027 } FailMode_t;
|
|
|
Definition at line 19 of file DigiScintHit.cxx. 00019 : 00020 fStripId(), 00021 fT1(0), 00022 fX1(0), 00023 fY1(0), 00024 fZ1(0), 00025 fT2(0), 00026 fX2(0), 00027 fY2(0), 00028 fZ2(0), 00029 fDS(0), 00030 fDE(0), 00031 fParticleEnergy(0), 00032 fParticlePX1(0), 00033 fParticlePY1(0), 00034 fParticlePZ1(0), 00035 fParticleId(0), 00036 fTrackId(0), 00037 fFailBits(0) 00038 { }
|
|
|
Definition at line 42 of file DigiScintHit.cxx. 00042 : 00043 TObject(in), 00044 fStripId(in.StripEndId()), 00045 fT1(in.T1()), 00046 fX1(in.X1()), 00047 fY1(in.Y1()), 00048 fZ1(in.Z1()), 00049 fT2(in.T2()), 00050 fX2(in.X2()), 00051 fY2(in.Y2()), 00052 fZ2(in.Z2()), 00053 fDS(in.DS()), 00054 fDE(in.DE()), 00055 fParticleEnergy(in.ParticleEnergy()), 00056 fParticlePX1(in.ParticlePX1()), 00057 fParticlePY1(in.ParticlePY1()), 00058 fParticlePZ1(in.ParticlePZ1()), 00059 fParticleId(in.ParticleId()), 00060 fTrackId(in.TrackId()), 00061 fFailBits(in.FailBits()) 00062 { 00063 }
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Definition at line 67 of file DigiScintHit.cxx. 00072 : 00073 fStripId(sid), 00074 fT1(t1), 00075 fX1(x1), 00076 fY1(y1), 00077 fZ1(z1), 00078 fT2(t2), 00079 fX2(x2), 00080 fY2(y2), 00081 fZ2(z2), 00082 fDS(ds), 00083 fDE(de), 00084 fParticleEnergy(trkEnergy), 00085 fParticlePX1(trkPx1), 00086 fParticlePY1(trkPy1), 00087 fParticlePZ1(trkPz1), 00088 fParticleId(trkPid), 00089 fTrackId(trkId), 00090 fFailBits(0) 00091 { }
|
|
|
Definition at line 125 of file DigiScintHit.cxx. References PlexStripEndId::AsString(), DE(), DS(), Form(), option, ParticleEnergy(), ParticleId(), ParticleKineticEnergy(), Plane(), Strip(), StripEndId(), T1(), TrackId(), X1(), Y1(), and Z1(). Referenced by FormatToOStream(), Truthifier::Print(), Print(), and SimDetector::SortDigiPE(). 00126 {
00127 TParticlePDG* part = TDatabasePDG::Instance()->GetParticle(ParticleId());
00128
00129 switch(option[0]) {
00130 case 'e': // (E)xtended printout.
00131 case 'E':
00132 return Form("DigiScintHit Track=%d Particle=%s(%d) E=%.1f GeV K=%f GeV\n"
00133 " Strip: %s\n"
00134 " (%5.2f, %4.3f, %4.3f), %.1f ns\n"
00135 " dE/dx = %.2f MeV / %.1f cm\n",
00136 TrackId(),
00137 (part==0)?"unknown":part->GetName(),
00138 ParticleId(),
00139 ParticleEnergy()/Munits::GeV,
00140 ParticleKineticEnergy()/Munits::GeV,
00141 StripEndId().AsString(),
00142 X1(),Y1(),Z1(),T1()/Munits::ns,
00143 DE()/Munits::MeV,
00144 DS()/Munits::cm
00145 );
00146 case 'o': // old
00147 return Form("DigiScintHit (Trk %d) (%s) (%.1f GeV) (%.1f MeV/%.1f cm) (Plane %d Strip %d)",
00148 TrackId(),
00149 (part==0)?"unknown":part->GetName(),
00150 ParticleEnergy()/Munits::GeV,
00151 DE()/Munits::MeV,
00152 DS()/Munits::cm,
00153 Plane(),
00154 Strip()
00155 );
00156 default:
00157 return Form("DigiScintHit %s (Trk %4d=%6s %.2f GeV) (%.2f MeV/%.2f cm) %f",
00158 StripEndId().AsString("c"),
00159 TrackId(),
00160 (part==0)?"unknown":part->GetName(),
00161 ParticleEnergy()/Munits::GeV,
00162 DE()/Munits::MeV,
00163 DS()/Munits::cm,
00164 T1()/Munits::ns
00165 );
00166 }
00167 return ""; // Keep compiler happy.
00168 }
|
|
|
|
Definition at line 57 of file DigiScintHit.h. Referenced by ScintHitTruthModule::Ana(), CompareToReroot::Ana(), AsString(), PhotonDefaultModel::ComputePhotons(), PhotonCalibratedPeComputer::ComputePhotons(), PhotonCalibratedBlueComputer::ComputePhotons(), PhotonTransport::FillBadHitNtuple(), NtpMaker::FillMCInfo(), NtpMCModule::FillNtpMCDigiScintHit(), CDTruthifier::GetTruthHitInfo(), and PhotonTransport::SimulateScintHit(). 00057 { return fDS; }
|
|
|
Definition at line 62 of file DigiScintHit.h. Referenced by NtpMCModule::FillNtpMCDigiScintHit(). 00062 { return fFailBits; }
|
|
||||||||||||
|
Definition at line 117 of file DigiScintHit.cxx. References AsString(), and option. Referenced by operator<<(). 00119 {
00120 os << AsString(option);
00121 return os;
00122 }
|
|
|
Definition at line 43 of file DigiScintHit.h. Referenced by AsString(), PhotonTransport::FillBadHitNtuple(), NtpMaker::FillMCInfo(), NtpMCModule::FillNtpMCDigiScintHit(), NtpMCModule::FillNtpMCStdHep(), TruthHelper::GetTrackMaxE(), TruthHelper::GetTrackMaxE2(), TruthHelper::GetTrackMinE(), TruthHelper::GetTrackMinE2(), CDTruthifier::GetTruthHitInfo(), ParticleKineticEnergy(), and PhotonTransport::SimulateScintHit(). 00043 { return fParticleEnergy; }
|
|
|
|
Definition at line 95 of file DigiScintHit.cxx. References ParticleEnergy(), and ParticleId(). Referenced by ScintHitTruthModule::Ana(), AsString(), and PhotonTransport::SimulateScintHit(). 00096 {
00097 TParticlePDG* part = TDatabasePDG::Instance()->GetParticle(ParticleId());
00098 Float_t mass = 0;
00099 if(part)
00100 mass = part->Mass()*Munits::GeV;
00101 return ParticleEnergy()-mass;
00102 }
|
|
|
Definition at line 59 of file DigiScintHit.h. Referenced by NtpMCModule::FillNtpMCStdHep(). 00059 { return fParticlePX1; }
|
|
|
Definition at line 60 of file DigiScintHit.h. Referenced by NtpMCModule::FillNtpMCStdHep(). 00060 { return fParticlePY1; }
|
|
|
Definition at line 61 of file DigiScintHit.h. Referenced by NtpMCModule::FillNtpMCStdHep(). 00061 { return fParticlePZ1; }
|
|
|
|
Definition at line 111 of file DigiScintHit.cxx. References AsString(), and option. Referenced by RerootToTruthModule::Ana(). 00112 {
00113 std::cout << this->AsString(option) << std::endl;
00114 }
|
|
|
Definition at line 67 of file DigiScintHit.h. References fFailBits. 00067 { fFailBits |= failbit; }
|
|
|
Definition at line 39 of file DigiScintHit.h. References fT1. Referenced by ConcatArrays::OffsetTime(). 00039 { fT1 = newTime; }
|
|
|
Definition at line 40 of file DigiScintHit.h. References fT2. Referenced by ConcatArrays::OffsetTime(). 00040 { fT2 = newTime; }
|
|
|
Definition at line 38 of file DigiScintHit.h. References fTrackId. Referenced by ConcatArrays::ConcatDigiScintHits(). 00038 { fTrackId = trackid; }
|
|
|
Definition at line 48 of file DigiScintHit.h. References fStripId, and PlexStripEndId::GetStrip(). Referenced by ScintHitTruthModule::Ana(), AsString(), PhotonTransport::FillBadHitNtuple(), NtpMaker::FillMCInfo(), NtpMCModule::FillNtpMCDigiScintHit(), NtpMCModule::FillNtpMCStdHep(), CDTruthifier::GetTruthHitInfo(), and PhotonTransport::SimulateScintHit().
|
|
|
|
|
Definition at line 53 of file DigiScintHit.h. Referenced by PhotonTransport::AddNoise(), NtpMaker::FillMCInfo(), NtpMCModule::FillNtpMCDigiScintHit(), CDTruthifier::GetTruthHitInfo(), ConcatArrays::OffsetTime(), PhotonFullBlueTracker::ScintPhotonToFibreHit(), PhotonFastBlueModel::ScintPhotonToFibreHit(), PhotonDefaultModel::ScintPhotonToFibreHit(), and PhotonTransport::SimulateScintHit(). 00053 { return fT2; }
|
|
|
Definition at line 63 of file DigiScintHit.h. References fFailBits. 00064 { return (Bool_t) ((fFailBits & failbit) != 0); }
|
|
|
Definition at line 65 of file DigiScintHit.h. References fFailBits. 00066 { return (UShort_t) (fFailBits & failmask); }
|
|
|
|
|
|
|
Definition at line 55 of file DigiScintHit.h. Referenced by NtpMaker::FillMCInfo(), NtpMCModule::FillNtpMCDigiScintHit(), CDTruthifier::GetTruthHitInfo(), PhotonFullBlueTracker::ScintPhotonToFibreHit(), PhotonDefaultModel::ScintPhotonToFibreHit(), PhotonTransport::SimulateScintHit(), MCDisp::Update(), and PhotonTransport::VerifyScintHit(). 00055 { return fY2; }
|
|
|
|
Definition at line 56 of file DigiScintHit.h. Referenced by ScintHitTruthModule::Ana(), NtpMaker::FillMCInfo(), NtpMCModule::FillNtpMCDigiScintHit(), CDTruthifier::GetTruthHitInfo(), PhotonFullBlueTracker::ScintPhotonToFibreHit(), PhotonDefaultModel::ScintPhotonToFibreHit(), PhotonTransport::SimulateScintHit(), MCDisp::Update(), and PhotonTransport::VerifyScintHit(). 00056 { return fZ2; }
|
|
||||||||||||
|
|
|
|
Definition at line 87 of file DigiScintHit.h. |
|
|
Definition at line 86 of file DigiScintHit.h. |
|
|
Definition at line 94 of file DigiScintHit.h. Referenced by SetFailBit(), TestFailBit(), and TestFailBits(). |
|
|
Definition at line 88 of file DigiScintHit.h. |
|
|
Definition at line 92 of file DigiScintHit.h. |
|
|
Definition at line 89 of file DigiScintHit.h. |
|
|
Definition at line 90 of file DigiScintHit.h. |
|
|
Definition at line 91 of file DigiScintHit.h. |
|
|
Definition at line 77 of file DigiScintHit.h. |
|
|
Definition at line 78 of file DigiScintHit.h. Referenced by SetT1(). |
|
|
Definition at line 82 of file DigiScintHit.h. Referenced by SetT2(). |
|
|
Definition at line 93 of file DigiScintHit.h. Referenced by SetTrackId(). |
|
|
Definition at line 79 of file DigiScintHit.h. |
|
|
Definition at line 83 of file DigiScintHit.h. |
|
|
Definition at line 80 of file DigiScintHit.h. |
|
|
Definition at line 84 of file DigiScintHit.h. |
|
|
Definition at line 81 of file DigiScintHit.h. |
|
|
Definition at line 85 of file DigiScintHit.h. |
1.3.9.1