95 std::vector<edm::ParameterSet> selconfigs = iConfig.
getParameter<std::vector<edm::ParameterSet> >(
"selections");
97 for(std::vector<edm::ParameterSet>::const_iterator selconfig=selconfigs.begin();selconfig!=selconfigs.end();++selconfig) {
130 tkhisto_ = std::make_unique<TkHistoMap>(tkDetMapHandle.
product(),
"SelectorTest",
"SelectorTest",-1);
139 const std::vector<uint32_t>& detids = reader->
getAllDetIds();
141 for(std::vector<uint32_t>::const_iterator detid=detids.begin();detid!=detids.end();++detid) {
145 for(std::vector<DetIdSelector>::const_iterator detidsel=
detidsels_.begin();detidsel!=
detidsels_.end();++detidsel) {
146 if(detidsel->isSelected(*detid)) {
148 unsigned int det = *detid;
159 edm::FileInPath fp(
"CalibTracker/SiPixelESProducers/data/PixelSkimmedGeometry.txt");
162 const std::vector<uint32_t>& detids = pxlreader.
getAllDetIds();
164 for(std::vector<uint32_t>::const_iterator detid=detids.begin();detid!=detids.end();++detid) {
168 for(std::vector<DetIdSelector>::const_iterator detidsel=
detidsels_.begin();detidsel!=
detidsels_.end();++detidsel) {
169 if(detidsel->isSelected(*detid)) {
171 unsigned int det = *detid;
223 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)
const std::vector< uint32_t > & getAllDetIds() 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< DetIdSelector > detidsels_
std::string fullPath() const
void fill_current_val(int idmod, float current_val)
T const * product() const