9 #ifndef BeamlineGeometry_H 10 #define BeamlineGeometry_H 72 os <<
"DetectorID: System " << detector.
System 104 os <<
"ChannelID: System " << channel.
System <<
", Detector " 147 Component = component;
205 unsigned int NumToFs()
const;
208 unsigned int NumWCs()
const;
211 unsigned int NumCherenkov()
const;
214 unsigned int NumToFCounters(
DetectorID tof)
const;
217 unsigned int NumWCChannels(
DetectorID wc)
const;
221 unsigned int period = 3)
const;
225 unsigned int period = 3)
const;
229 unsigned int period = 3)
const;
238 float MagnetAngle()
const;
241 float MagnetEffectiveLength()
const;
244 float MagnetMidplaneIntercept()
const;
247 unsigned int NumWCPlaneWires()
const;
250 float WCWirePitch()
const;
253 float WCAngle(
unsigned int wc)
const;
256 float ToFPathLength(
unsigned int period)
const;
259 float ToFPathLengthSiPM(
unsigned int period)
const;
263 TVector3 BeamlineToNOvADetectorCoords(TVector3 vec)
const;
267 TVector3 NOvADetectorToBeamlineCoords(TVector3 vec)
const;
273 unsigned int period = 3)
const;
276 std::vector<SystemID> SystemIDs()
const;
279 std::vector<DetectorID> DetectorIDs()
const;
282 std::vector<ChannelID> ChannelIDs()
const;
SystemID GetSystemID() const
system("rm -rf microbeam.root")
std::vector< float > fToFPathLengthSiPM
DetectorID GetDetectorID() const
float fMagnetMidplaneIntercept
std::vector< unsigned int > fNumToFCounters
TVector3 fNOvACoordOrigin
float fMagnetEffectiveLength
bool operator==(const ChannelID &cid) const
#define DECLARE_ART_SERVICE(svc, scope)
bool operator<(const SystemID &sid) const
bool operator<(const ChannelID &cid) const
BeamlineComponent Component
bool operator==(const SystemID &sid) const
DetectorID(SystemID system, unsigned int detector)
std::vector< float > fToFPathLength
SystemID GetSystemID() const
unsigned int fNumWCPlaneWires
SystemID(unsigned int system)
DetectorID(unsigned int system, unsigned int detector)
ChannelID(DetectorID detector, unsigned int channel)
bool operator>(const SystemID &sid) const
unsigned int fNumCherenkov
bool operator<(const DetectorID &did) const
std::vector< float > fWCAngles
bool operator>(const ChannelID &cid) const
std::vector< std::map< BeamlineComponent, BeamlineObject > > fBeamlineObjects
bool operator==(const DetectorID &did) const
ChannelID(unsigned int system, unsigned int detector, unsigned int channel)
BeamlineObject(BeamlineComponent component)
const std::map< ToFChannel, std::string > ToFChannelNames
const std::map< ToFCounter, std::string > ToFCounterNames
std::ostream & operator<<(std::ostream &os, const SystemID &system)
bool operator>(const DetectorID &did) const