/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Geometry/RPCGeometry/interface/RPCGeometry.h
83 строки
2 KB
Shahzad Malik Muzaffar
[GEOMETRY] Drop Geometry/CommonDetUnit package
28 май 2026, 13:09
28 май 2026, 13:09
bcab810
Код
Авторство
О чём код?
#ifndef RPCGeometry_RPCGeometry_h #define RPCGeometry_RPCGeometry_h /** \class RPCGeometry * * The model of the geometry of RPC. * * \author M. Maggi - INFN Bari */ #include "DataFormats/DetId/interface/DetId.h" #include "Geometry/CommonTopologies/interface/TrackingGeometry.h" #include "Geometry/RPCGeometry/interface/RPCRoll.h" #include "Geometry/RPCGeometry/interface/RPCChamber.h" #include <vector> #include <map> class GeomDetType; class RPCGeometry : public TrackingGeometry { public: /// Default constructor RPCGeometry(); /// Destructor ~RPCGeometry() override; // Return a vector of all det types const DetTypeContainer& detTypes() const override; // Return a vector of all GeomDetUnit const DetContainer& detUnits() const override; // Return a vector of all GeomDet const DetContainer& dets() const override; // Return a vector of all GeomDetUnit DetIds const DetIdContainer& detUnitIds() const override; // Return a vector of all GeomDet DetIds const DetIdContainer& detIds() const override; // Return the pointer to the GeomDetUnit corresponding to a given DetId const GeomDet* idToDetUnit(DetId) const override; // Return the pointer to the GeomDet corresponding to a given DetId const GeomDet* idToDet(DetId) const override; //---- Extension of the interface /// Return a vector of all RPC chambers const std::vector<const RPCChamber*>& chambers() const; /// Return a vector of all RPC rolls const std::vector<const RPCRoll*>& rolls() const; // Return a RPCChamber given its id const RPCChamber* chamber(RPCDetId id) const; /// Return a roll given its id const RPCRoll* roll(RPCDetId id) const; /// Add a RPC roll to the Geometry void add(RPCRoll* roll); /// Add a RPC roll to the Geometry void add(RPCChamber* ch); private: DetContainer theRolls; DetContainer theDets; DetTypeContainer theRollTypes; DetIdContainer theRollIds; DetIdContainer theDetIds; // Map for efficient lookup by DetId mapIdToDet theMap; std::vector<const RPCRoll*> allRolls; // Are not owned by this class; are owned by their chamber. std::vector<const RPCChamber*> allChambers; // Are owned by this class. }; #endif