#include <BesMdcHit.hh>
Public Member Functions | |
BesMdcHit () | |
~BesMdcHit () | |
BesMdcHit (const BesMdcHit &) | |
const BesMdcHit & | operator= (const BesMdcHit &) |
int | operator== (const BesMdcHit &) const |
void * | operator new (size_t) |
void | operator delete (void *) |
void | Draw () |
void | Print () |
void | SetTrackID (G4int track) |
void | SetLayerNo (G4int layer) |
void | SetCellNo (G4int cell) |
void | SetEdep (G4double de) |
void | SetPos (G4ThreeVector xyz) |
void | SetDriftD (G4double distance) |
void | SetDriftT (G4double time) |
void | SetGlobalT (G4double time) |
void | SetTheta (G4double angle) |
void | SetEnterAngle (G4double angle) |
void | SetPosFlag (G4int flag) |
G4int | GetTrackID () |
G4int | GetLayerNo () |
G4int | GetCellNo () |
G4double | GetEdep () |
G4ThreeVector | GetPos () |
G4double | GetDriftD () |
G4double | GetDriftT () |
G4double | GetGlobalT () |
G4double | GetTheta () |
G4double | GetEnterAngle () |
G4int | GetPosFlag () |
Private Attributes | |
G4int | trackID |
G4int | layerNo |
G4int | cellNo |
G4double | edep |
G4ThreeVector | pos |
G4double | driftD |
G4double | driftT |
G4double | globalT |
G4double | theta |
G4double | enterAngle |
G4int | posFlag |
Definition at line 21 of file BesMdcHit.hh.
BesMdcHit::BesMdcHit | ( | ) |
BesMdcHit::~BesMdcHit | ( | ) |
BesMdcHit::BesMdcHit | ( | const BesMdcHit & | ) |
Definition at line 30 of file BesMdcHit.cc.
References cellNo, driftD, driftT, edep, enterAngle, globalT, layerNo, pos, posFlag, theta, and trackID.
00031 : G4VHit() 00032 { 00033 trackID = right.trackID; 00034 layerNo = right.layerNo; 00035 cellNo = right.cellNo; 00036 edep = right.edep; 00037 pos = right.pos; 00038 driftD = right.driftD; 00039 driftT = right.driftT; 00040 globalT = right.globalT; 00041 theta = right.theta; 00042 enterAngle= right.enterAngle; 00043 posFlag = right.posFlag; 00044 }
void BesMdcHit::Draw | ( | ) |
Definition at line 73 of file BesMdcHit.cc.
References pos.
00074 { 00075 G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance(); 00076 if(pVVisManager) 00077 { 00078 G4Circle circle(pos); 00079 circle.SetScreenSize(2.); 00080 circle.SetFillStyle(G4Circle::filled); 00081 G4Colour colour(1.,0.,0.); 00082 G4VisAttributes attribs(colour); 00083 circle.SetVisAttributes(attribs); 00084 pVVisManager->Draw(circle); 00085 } 00086 }
G4int BesMdcHit::GetCellNo | ( | ) | [inline] |
Definition at line 52 of file BesMdcHit.hh.
References cellNo.
Referenced by BesRootIO::SaveMdcHitRoot(), BesAsciiIO::SaveMdcHits(), BesMcTruthWriter::SaveMdcTruth(), BesAsciiIO::SaveMdcTruth(), and BesMdcCalTransfer::SetHitPointer().
00052 { return cellNo;};
G4double BesMdcHit::GetDriftD | ( | ) | [inline] |
Definition at line 55 of file BesMdcHit.hh.
References driftD.
Referenced by BesRootIO::SaveMdcHitRoot(), BesAsciiIO::SaveMdcHits(), BesMcTruthWriter::SaveMdcTruth(), BesAsciiIO::SaveMdcTruth(), and BesMdcCalTransfer::SetHitPointer().
00055 { return driftD;};
G4double BesMdcHit::GetDriftT | ( | ) | [inline] |
Definition at line 56 of file BesMdcHit.hh.
References driftT.
Referenced by BesRootIO::SaveMdcHitRoot().
00056 { return driftT;};
G4double BesMdcHit::GetEdep | ( | ) | [inline] |
Definition at line 53 of file BesMdcHit.hh.
References edep.
Referenced by BesRootIO::SaveMdcHitRoot(), BesAsciiIO::SaveMdcHits(), BesMcTruthWriter::SaveMdcTruth(), BesAsciiIO::SaveMdcTruth(), and BesMdcCalTransfer::SetHitPointer().
00053 { return edep; };
G4double BesMdcHit::GetEnterAngle | ( | ) | [inline] |
Definition at line 59 of file BesMdcHit.hh.
References enterAngle.
Referenced by BesRootIO::SaveMdcHitRoot(), BesAsciiIO::SaveMdcHits(), and BesMdcCalTransfer::SetHitPointer().
00059 { return enterAngle;};
G4double BesMdcHit::GetGlobalT | ( | ) | [inline] |
Definition at line 57 of file BesMdcHit.hh.
References globalT.
Referenced by BesRootIO::SaveMdcHitRoot(), and BesAsciiIO::SaveMdcHits().
00057 { return globalT;};
G4int BesMdcHit::GetLayerNo | ( | ) | [inline] |
Definition at line 51 of file BesMdcHit.hh.
References layerNo.
Referenced by BesRootIO::SaveMdcHitRoot(), BesAsciiIO::SaveMdcHits(), BesMcTruthWriter::SaveMdcTruth(), BesAsciiIO::SaveMdcTruth(), and BesMdcCalTransfer::SetHitPointer().
00051 { return layerNo; };
G4ThreeVector BesMdcHit::GetPos | ( | ) | [inline] |
Definition at line 54 of file BesMdcHit.hh.
References pos.
Referenced by BesRootIO::SaveMdcHitRoot(), BesAsciiIO::SaveMdcHits(), BesMcTruthWriter::SaveMdcTruth(), BesAsciiIO::SaveMdcTruth(), and BesMdcCalTransfer::SetHitPointer().
00054 { return pos; };
G4int BesMdcHit::GetPosFlag | ( | ) | [inline] |
Definition at line 60 of file BesMdcHit.hh.
Referenced by BesRootIO::SaveMdcHitRoot(), BesAsciiIO::SaveMdcHits(), BesMcTruthWriter::SaveMdcTruth(), BesAsciiIO::SaveMdcTruth(), and BesMdcCalTransfer::SetHitPointer().
00060 { return posFlag;};
G4double BesMdcHit::GetTheta | ( | ) | [inline] |
Definition at line 58 of file BesMdcHit.hh.
References theta.
Referenced by BesRootIO::SaveMdcHitRoot(), BesAsciiIO::SaveMdcHits(), and BesMdcCalTransfer::SetHitPointer().
00058 { return theta;};
G4int BesMdcHit::GetTrackID | ( | ) | [inline] |
Definition at line 50 of file BesMdcHit.hh.
References trackID.
Referenced by BesRootIO::SaveMdcHitRoot(), BesAsciiIO::SaveMdcHits(), BesMcTruthWriter::SaveMdcTruth(), and BesAsciiIO::SaveMdcTruth().
00050 { return trackID; };
void BesMdcHit::operator delete | ( | void * | ) | [inline] |
Definition at line 93 of file BesMdcHit.hh.
References BesMdcHitAllocator.
00094 { 00095 BesMdcHitAllocator.FreeSingle((BesMdcHit*) aHit); 00096 }
void * BesMdcHit::operator new | ( | size_t | ) | [inline] |
Definition at line 84 of file BesMdcHit.hh.
References BesMdcHitAllocator.
00085 { 00086 void *aHit; 00087 aHit = (void *) BesMdcHitAllocator.MallocSingle(); 00088 return aHit; 00089 }
Definition at line 48 of file BesMdcHit.cc.
References cellNo, driftD, driftT, edep, enterAngle, globalT, layerNo, pos, posFlag, theta, and trackID.
00049 { 00050 trackID = right.trackID; 00051 layerNo = right.layerNo; 00052 cellNo = right.cellNo; 00053 edep = right.edep; 00054 pos = right.pos; 00055 driftD = right.driftD; 00056 driftT = right.driftT; 00057 globalT = right.globalT; 00058 theta = right.theta; 00059 enterAngle= right.enterAngle; 00060 posFlag = right.posFlag; 00061 return *this; 00062 }
int BesMdcHit::operator== | ( | const BesMdcHit & | ) | const |
void BesMdcHit::Print | ( | ) |
Definition at line 90 of file BesMdcHit.cc.
References cellNo, driftD, driftT, edep, enterAngle, globalT, layerNo, pos, posFlag, theta, and trackID.
00091 { 00092 G4cout << " trackID: " << trackID 00093 << " layerNo: " << layerNo 00094 << " cellNo: " << cellNo 00095 << " energy deposit: " << G4BestUnit(edep,"Energy") 00096 << " position: " << G4BestUnit(pos,"Length") 00097 << " driftD: " << G4BestUnit(driftD,"Length") 00098 << " driftT: " << G4BestUnit(driftT,"Time") 00099 << " globalT: " << G4BestUnit(globalT,"Time") 00100 << " theta: " << G4BestUnit(theta,"Angle") 00101 << " enterAngle: " << G4BestUnit(enterAngle,"Angle") 00102 << " posFlag: " << posFlag 00103 <<G4endl; 00104 }
void BesMdcHit::SetCellNo | ( | G4int | cell | ) | [inline] |
Definition at line 40 of file BesMdcHit.hh.
References cellNo.
Referenced by BesTuningIO::GetMdcRootHits(), and BesMdcSD::ProcessHits().
00040 { cellNo =cell;};
void BesMdcHit::SetDriftD | ( | G4double | distance | ) | [inline] |
Definition at line 43 of file BesMdcHit.hh.
References driftD.
Referenced by BesTuningIO::GetMdcRootHits(), and BesMdcSD::ProcessHits().
00043 { driftD = distance;};
void BesMdcHit::SetDriftT | ( | G4double | time | ) | [inline] |
Definition at line 44 of file BesMdcHit.hh.
References driftT.
Referenced by BesTuningIO::GetMdcRootHits(), and BesMdcSD::ProcessHits().
00044 { driftT = time;};
void BesMdcHit::SetEdep | ( | G4double | de | ) | [inline] |
Definition at line 41 of file BesMdcHit.hh.
References edep.
Referenced by BesTuningIO::GetMdcRootHits(), and BesMdcSD::ProcessHits().
00041 { edep = de; };
void BesMdcHit::SetEnterAngle | ( | G4double | angle | ) | [inline] |
Definition at line 47 of file BesMdcHit.hh.
References enterAngle.
Referenced by BesTuningIO::GetMdcRootHits(), and BesMdcSD::ProcessHits().
00047 { enterAngle = angle;};
void BesMdcHit::SetGlobalT | ( | G4double | time | ) | [inline] |
Definition at line 45 of file BesMdcHit.hh.
References globalT.
Referenced by BesTuningIO::GetMdcRootHits(), and BesMdcSD::ProcessHits().
00045 { globalT = time;};
void BesMdcHit::SetLayerNo | ( | G4int | layer | ) | [inline] |
Definition at line 39 of file BesMdcHit.hh.
References layerNo.
Referenced by BesTuningIO::GetMdcRootHits(), and BesMdcSD::ProcessHits().
00039 { layerNo = layer; };
void BesMdcHit::SetPos | ( | G4ThreeVector | xyz | ) | [inline] |
Definition at line 42 of file BesMdcHit.hh.
References pos.
Referenced by BesTuningIO::GetMdcRootHits(), and BesMdcSD::ProcessHits().
00042 { pos = xyz; };
void BesMdcHit::SetPosFlag | ( | G4int | flag | ) | [inline] |
Definition at line 48 of file BesMdcHit.hh.
References posFlag.
Referenced by BesTuningIO::GetMdcRootHits(), and BesMdcSD::ProcessHits().
void BesMdcHit::SetTheta | ( | G4double | angle | ) | [inline] |
Definition at line 46 of file BesMdcHit.hh.
References theta.
Referenced by BesTuningIO::GetMdcRootHits(), and BesMdcSD::ProcessHits().
00046 { theta = angle;};
void BesMdcHit::SetTrackID | ( | G4int | track | ) | [inline] |
Definition at line 38 of file BesMdcHit.hh.
References trackID.
Referenced by BesTuningIO::GetMdcRootHits(), and BesMdcSD::ProcessHits().
00038 { trackID = track; };
G4int BesMdcHit::cellNo [private] |
Definition at line 65 of file BesMdcHit.hh.
Referenced by BesMdcHit(), GetCellNo(), operator=(), Print(), and SetCellNo().
G4double BesMdcHit::driftD [private] |
Definition at line 68 of file BesMdcHit.hh.
Referenced by BesMdcHit(), GetDriftD(), operator=(), Print(), and SetDriftD().
G4double BesMdcHit::driftT [private] |
Definition at line 69 of file BesMdcHit.hh.
Referenced by BesMdcHit(), GetDriftT(), operator=(), Print(), and SetDriftT().
G4double BesMdcHit::edep [private] |
Definition at line 66 of file BesMdcHit.hh.
Referenced by BesMdcHit(), GetEdep(), operator=(), Print(), and SetEdep().
G4double BesMdcHit::enterAngle [private] |
Definition at line 72 of file BesMdcHit.hh.
Referenced by BesMdcHit(), GetEnterAngle(), operator=(), Print(), and SetEnterAngle().
G4double BesMdcHit::globalT [private] |
Definition at line 70 of file BesMdcHit.hh.
Referenced by BesMdcHit(), GetGlobalT(), operator=(), Print(), and SetGlobalT().
G4int BesMdcHit::layerNo [private] |
Definition at line 64 of file BesMdcHit.hh.
Referenced by BesMdcHit(), GetLayerNo(), operator=(), Print(), and SetLayerNo().
G4ThreeVector BesMdcHit::pos [private] |
Definition at line 67 of file BesMdcHit.hh.
Referenced by BesMdcHit(), Draw(), GetPos(), operator=(), Print(), and SetPos().
G4int BesMdcHit::posFlag [private] |
Definition at line 73 of file BesMdcHit.hh.
Referenced by BesMdcHit(), operator=(), Print(), and SetPosFlag().
G4double BesMdcHit::theta [private] |
Definition at line 71 of file BesMdcHit.hh.
Referenced by BesMdcHit(), GetTheta(), operator=(), Print(), and SetTheta().
G4int BesMdcHit::trackID [private] |
Definition at line 60 of file BesMdcHit.hh.
Referenced by BesMdcHit(), GetTrackID(), operator=(), Print(), and SetTrackID().