Skip to content
Snippets Groups Projects
Commit 4da2cd66 authored by Pierre Morfouace's avatar Pierre Morfouace
Browse files

Adding GetHitPosition function

parent a37f68ec
No related branches found
No related tags found
1 merge request!27Draft: [Epic] Preparation of the environement for the new GaseousDetectorScorers...
Pipeline #359729 failed
...@@ -671,6 +671,13 @@ void TFPMWPhysics::ReadAnalysisConfig() { ...@@ -671,6 +671,13 @@ void TFPMWPhysics::ReadAnalysisConfig() {
} }
///////////////////////////////////////////////////////////////////////////
TVector3 TFPMWPhysics::GetHitPosition(int Det){
TVector3 Hit = TVector3(PositionX[Det], PositionY[Det], GetDetectorPositionZ(Det));
return Hit;
}
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
void TFPMWPhysics::Clear() { void TFPMWPhysics::Clear() {
DetectorNbr.clear(); DetectorNbr.clear();
......
...@@ -170,6 +170,7 @@ class TFPMWPhysics : public TObject, public NPL::VDetector { ...@@ -170,6 +170,7 @@ class TFPMWPhysics : public TObject, public NPL::VDetector {
double GetDetectorPositionY(int Det) {return DetPosY[Det];} double GetDetectorPositionY(int Det) {return DetPosY[Det];}
double GetDetectorPositionZ(int Det) {return DetPosZ[Det];} double GetDetectorPositionZ(int Det) {return DetPosZ[Det];}
TVector3 GetHitPosition(int Det);
////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////
// specific methods to FPMW array // specific methods to FPMW array
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment