42 #include "G4String.hh" 43 #include "G4UImessenger.hh" 44 #include "G4UIcommand.hh" 45 #include "G4UIdirectory.hh" 46 #include "G4UIcmdWithABool.hh" 47 #include "G4UIcmdWith3Vector.hh" 48 #include "G4ThreeVector.hh" 49 #include "G4SystemOfUnits.hh" 93 inline const G4ThreeVector&
GetTolerance()
const {
return fTolerance; }
94 inline const G4ThreeVector&
GetPosition()
const {
return fPosition; }
95 void SetPositionByTolerance(
bool t);
99 void defineMessenger();
129 inline size_t size()
const {
return fData.size();}
134 if (aName == it->GetName())
return it;
140 if (it->GetName().find(vName) != std::string::npos) {
141 G4ThreeVector pp = it->GetPosition();
142 if (
std::abs(pp[0]) > 1.0e-6*CLHEP::mm)
return true;
143 if (
std::abs(pp[1]) > 1.0e-6*CLHEP::mm)
return true;
150 if (aName == it->GetName()) it->SetPosition(position);
155 if (aName == it->GetName()) it->SetTolerance(tolerance);
158 void setPointPositionWithinTolerance(
const std::string &aName);
190 void defineAllCommds();
G4UIcmdWith3Vector * fSurvPosUpstreamRightPinTargetHeTube
G4UIcmdWith3Vector * fToleranceCmd
G4UIcmdWith3Vector * fSurvPosDownstreamLeftPinTargetHeTube
std::vector< LBNESurveyedPt >::const_iterator end() const
G4UIcmdWith3Vector * fSurvPosUpstreamRightDecayPipe
G4UIcmdWith3Vector * fSurvPosDownstreamLeftPinTargetCanister
LBNEAllSurveyorMessenger * fAllMessenger
G4UIcmdWith3Vector * fSurvPosUpstreamLeftBallHorn1
std::vector< LBNESurveyedPt >::const_iterator GetPoint(const std::string &aName) const
void SetNewValue(G4UIcommand *cmd, G4String val)
void AddPoint(const std::string &aName)
G4UIcmdWith3Vector * fSurvPosDownstreamRightBallHorn3
G4UIcmdWith3Vector * fSurvPosUpstreamLeftBallHorn3
void SetPosition(const G4ThreeVector &pos)
G4UIcmdWith3Vector * fSurvPosUpstreamRightBallHorn1
G4UIcmdWith3Vector * fSurvPosDownstreamRightBallHorn1
G4UIcmdWith3Vector * fSurvPosDownstreamLeftDecayPipe
G4UIcmdWith3Vector * fSurvPosUpstreamRightPinTargetCanister
const std::string & GetName() const
G4UIcmdWith3Vector * fSurvPosUpstreamLeftDecayPipe
bool IsVolumeMisaligned(const std::string &vName) const
bool IsPositionSetByTolerance() const
G4UIcmdWith3Vector * fSurvPosUpstreamLeftPinTargetHeTube
G4UIcmdWith3Vector * fSurvPosDownstreamRightPinTargetCanister
void AddPoint(const std::string &aName, const G4ThreeVector tolerance)
G4UIcmdWith3Vector * fSurvPosDownstreamLeftBallHorn1
G4UIcmdWith3Vector * fSurvPosDownstreamLeftBallHorn3
G4UIcmdWith3Vector * fSurvPosUpstreamRightBallHorn3
bool fPositionSetByTolerance
G4UIcmdWith3Vector * fPositionCmd
G4UIcmdWith3Vector * fSurvPosUpstreamRightBallHorn2
G4UIcmdWith3Vector * fSurvPosUpstreamLeftBallHorn2
void setPointPosition(const std::string &aName, const G4ThreeVector &position)
G4UIcmdWith3Vector * fSurvPosDownstreamRightBallHorn2
std::vector< LBNESurveyedPt > fData
const G4ThreeVector & GetPosition() const
const G4ThreeVector & GetTolerance() const
LBNESurveyorMessenger & operator=(LBNESurveyorMessenger const &other)
void setPointTolerance(const std::string &aName, const G4ThreeVector &tolerance)
static LBNESurveyor * fInstance
G4UIcmdWith3Vector * fSurvPosDownstreamRightPinTargetHeTube
std::vector< LBNESurveyedPt >::const_iterator begin() const
void SetTolerance(const G4ThreeVector &tolerance)
G4UIcmdWith3Vector * fSurvPosUpstreamLeftPinTargetCanister
G4UIcmdWithABool * fSetPositionFromToleranceCmd
G4UIcmdWith3Vector * fSurvPosDownstreamRightDecayPipe
G4UIcmdWith3Vector * fSurvPosDownstreamLeftBallHorn2