88 std::vector<edm::ParameterSet> selconfigs = iConfig.
getParameter<std::vector<edm::ParameterSet> >(
"selections");
90 for (std::vector<edm::ParameterSet>::const_iterator selconfig = selconfigs.begin(); selconfig != selconfigs.end();
116 tkhisto_ = std::make_unique<TkHistoMap>(tkDetMapHandle.
product(),
"SelectorTest",
"SelectorTest", -1);
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";
T getParameter(std::string const &) const
const std::vector< uint32_t > & getAllDetIds() const
void addPixel(bool addPixelfl)
std::unique_ptr< TkHistoMap > tkhisto_
void analyze(const edm::Event &, const edm::EventSetup &) override
~DetIdSelectorTest() override
DetIdSelectorTest(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
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_
std::string fullPath() const
void fill_current_val(int idmod, float current_val)
T const * product() const