Go to the documentation of this file. 1 #ifndef SiPixel_GeometryInterface_h
2 #define SiPixel_GeometryInterface_h
46 typedef std::vector<std::pair<Column, Value>>
Values;
77 assert(
col != 0 || !
"Extracting invalid column.");
82 edm::LogError(
"GeometryInterface") <<
"Undefined column used: " <<
unintern(
id) <<
". Check your spelling.\n";
107 auto it =
ids.find(
id);
108 if (it ==
ids.end()) {
173 Value binwidth = 1) {
std::map< ID, Value > max_value
std::string cablingMapLabel_
std::map< std::string, ID > ids
std::map< std::pair< Column, Value >, std::string > format_value
GeometryInterface(const edm::ParameterSet &, edm::ConsumesCollector &&, edm::Transition transition=edm::Transition::BeginRun)
void loadFromTopology(const TrackerGeometry &, const TrackerTopology &, const edm::ParameterSet &)
std::string pretty(Column col)
void load(edm::EventSetup const &iSetup)
void addExtractor(ID id, std::function< Value(InterestingQuantities const &iq)> func, Value min=UNDEFINED, Value max=UNDEFINED, Value binwidth=1)
std::string formatValue(Column, Value)
std::map< ID, Value > bin_width
const std::string names[nVars_]
edm::ESGetToken< SiPixelFedCablingMap, SiPixelFedCablingMapRcd > labeledSiPixelFedCablingMapToken_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopologyToken_
void loadModuleLevel(const edm::ParameterSet &iConfig)
const edm::Event * sourceEvent
std::string unintern(ID id)
void extractColumns(std::vector< Column > const &names, InterestingQuantities const &iq, Values &out)
static const Value UNDEFINED
void loadFromSiPixelCoordinates(const TrackerGeometry &, const TrackerTopology &, const SiPixelFedCablingMap &, const edm::ParameterSet &)
std::vector< std::pair< Column, Value > > Values
const edm::ParameterSet iConfig
Log< level::Error, false > LogError
std::vector< InterestingQuantities > all_modules
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerGeometryToken_
void loadTimebased(const edm::ParameterSet &iConfig)
void loadFEDCabling(const SiPixelFedCablingMap *)
ID intern(std::string const &id)
std::pair< Column, Value > extract(Column const &col, InterestingQuantities const &iq)
std::vector< std::function< Value(InterestingQuantities const &iq)> > extractors
Value extract(ID id, DetId did, edm::Event *ev=nullptr, int16_t col=0, int16_t row=0)
std::map< ID, Value > min_value
edm::ESGetToken< SiPixelFedCablingMap, SiPixelFedCablingMapRcd > siPixelFedCablingMapToken_
std::vector< InterestingQuantities > const & allModules()