8 #ifndef Geometry_VeryForwardGeometryBuilder_TotemRPGeometry 9 #define Geometry_VeryForwardGeometryBuilder_TotemRPGeometry 13 #include "CLHEP/Vector/ThreeVector.h" 14 #include "CLHEP/Vector/Rotation.h" 42 typedef std::map<unsigned int, const DetGeomDesc* >
mapType;
44 typedef std::map<unsigned int, std::set<unsigned int> >
mapSetType;
113 RPDeviceMapType::const_iterator
beginRP()
const 119 RPDeviceMapType::const_iterator
endRP()
const 129 std::set<unsigned int>
const&
StationsInArm(
unsigned int)
const;
132 std::set<unsigned int>
const&
RPsInStation(
unsigned int)
const;
136 std::set<unsigned int>
const&
DetsInRP(
unsigned int)
const;
142 CLHEP::Hep3Vector
LocalToGlobal(
unsigned int id,
const CLHEP::Hep3Vector& r)
const;
143 CLHEP::Hep3Vector
GlobalToLocal(
unsigned int id,
const CLHEP::Hep3Vector& r)
const;
Detector ID class for TOTEM Si strip detectors.
TotemRPGeometry(const DetGeomDesc *gd)
build up from DetGeomDesc
const DetGeomDesc * GetDetector(unsigned int) const
returns geometry of a detector performs necessary checks, returns NULL if fails input is raw ID ...
CLHEP::Hep3Vector GetDetEdgePosition(unsigned int id) const
returns the position of the edge of a detector
const DetGeomDesc * GetRPDevice(unsigned int id) const
returns geometry of a RP box
std::map< unsigned int, const DetGeomDesc * > mapType
std::map< int, const DetGeomDesc * > RPDeviceMapType
CLHEP::Hep3Vector GetRPGlobalTranslation(int copy_no) const
position of a RP package (translation z corresponds to the first plane - TODO check it) ...
CLHEP::Hep3Vector GetRPThinFoilPosition(int copy_no) const
returns the (outer) position of the thin foil of a RP box
char Build(const DetGeomDesc *)
build up from DetGeomDesc structure, return 0 = success
unsigned int NumberOfDetsIncluded() const
RPDeviceMapType::const_iterator endRP() const
end iterator over RPs
void BuildSets()
builds maps element ID –> set of subelements (re)builds stationsInArm, rpsInStation, detsInRP out of theMap
CLHEP::Hep3Vector LocalToGlobal(const DetGeomDesc *gd, const CLHEP::Hep3Vector &r) const
char AddRPDevice(unsigned int id, const DetGeomDesc *&det_geom_desc)
adds a RP package (primary vacuum) to a map
void GetReadoutDirection(unsigned int id, double &dx, double &dy) const
std::map< unsigned int, std::set< unsigned int > > mapSetType
CLHEP::Hep3Vector LocalToGlobalDirection(unsigned int id, const CLHEP::Hep3Vector &dir) const
CLHEP::Hep3Vector GlobalToLocalDirection(unsigned int id, const CLHEP::Hep3Vector &dir) const
mapType::const_iterator endDet() const
end iterator over (silicon) detectors
RPDeviceMapType::const_iterator beginRP() const
begin iterator over RPs
CLHEP::Hep3Vector GetDetTranslation(unsigned int id) const
const DetGeomDesc * GetDetector(const TotemRPDetId &id) const
mapSetType stationsInArm
map: parent ID -> set of subelements E.g. stationsInArm is map of arm ID -> set of stations (in that ...
Geometrical description of a detector.
mapType theMap
map: detectorID –> DetGeomDesc
CLHEP::Hep3Vector GetDetEdgeNormalVector(unsigned int id) const
returns a normal vector for the edge of a detector
CLHEP::Hep3Vector GlobalToLocal(const DetGeomDesc *gd, const CLHEP::Hep3Vector &r) const
CLHEP::HepRotation GetRPGlobalRotation(int copy_no) const
returns number of detectors in the geometry (size of theMap)
The manager class for TOTEM RP geometry.
Base class for CTPPS detector IDs.
DetGeomDesc const * operator[](unsigned int id) const
same as GetDetector
mapType::const_iterator beginDet() const
begin iterator over (silicon) detectors
std::set< unsigned int > const & StationsInArm(unsigned int) const
after checks returns set of stations corresponding to the given arm ID
RPDeviceMapType theRomanPotMap
map: RPID –> DetGeomDesc
std::set< unsigned int > const & DetsInRP(unsigned int) const
const DetGeomDesc * GetDetector(const CTPPSDetId &id) const
char AddDetector(unsigned int, const DetGeomDesc *&)
adds an item to the map (detector ID –> DetGeomDesc) performs necessary checks, returns 0 if succesf...
CLHEP::Hep3Vector GetRPThinFoilNormalVector(int copy_no) const
returns a normal vector for the thin foil of a RP box
std::set< unsigned int > const & RPsInStation(unsigned int) const
after checks returns set of RP corresponding to the given station ID