89 : detidsels_(), tkhisto_(nullptr), tkmap_(), tkDetMapToken_(
esConsumes()), geomDetToken_(
esConsumes()) {
92 std::vector<edm::ParameterSet> selconfigs = iConfig.
getParameter<std::vector<edm::ParameterSet> >(
"selections");
94 for (std::vector<edm::ParameterSet>::const_iterator selconfig = selconfigs.begin(); selconfig != selconfigs.end();
124 for (std::vector<uint32_t>::const_iterator detid = detids.begin(); detid != detids.end(); ++detid) {
127 for (std::vector<DetIdSelector>::const_iterator detidsel =
detidsels_.begin(); detidsel !=
detidsels_.end();
129 if (detidsel->isSelected(*detid)) {
131 unsigned int det = *detid;
141 edm::FileInPath fp(
"CalibTracker/SiPixelESProducers/data/PixelSkimmedGeometry.txt");
144 const std::vector<uint32_t>& detids = pxlreader.
getAllDetIds();
146 for (std::vector<uint32_t>::const_iterator detid = detids.begin(); detid != detids.end(); ++detid) {
149 for (std::vector<DetIdSelector>::const_iterator detidsel =
detidsels_.begin(); detidsel !=
detidsels_.end();
151 if (detidsel->isSelected(*detid)) {
153 unsigned int det = *detid;
196 std::string rootmapname =
"TKMap_Selectortest.root";
edm::ESGetToken< TkDetMap, TrackerTopologyRcd > tkDetMapToken_
edm::ESGetToken< GeometricDet, IdealGeometryRecord > geomDetToken_
const std::vector< uint32_t > & getAllDetIds() const
void addPixel(bool addPixelfl)
#define DEFINE_FWK_MODULE(type)
std::unique_ptr< TkHistoMap > tkhisto_
void analyze(const edm::Event &, const edm::EventSetup &) override
~DetIdSelectorTest() override
DetIdSelectorTest(const edm::ParameterSet &)
bool getData(T &iHolder) const
void setPalette(int numpalette)
void save(bool print_total=true, float minval=0., float maxval=0., std::string s="svgmap.svg", int width=1500, int height=800)
std::vector< uint32_t > getSiStripDetIds(const GeometricDet &geomDet)
std::vector< DetIdSelector > detidsels_
T getParameter(std::string const &) const
std::string fullPath() const
void fill_current_val(int idmod, float current_val)