67 virtual void endJob()
override ;
91 detidsels_(), tkhisto_(new
TkHistoMap(
"SelectorTest",
"SelectorTest",-1)),tkmap_()
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) {
133 const std::vector<uint32_t>& detids = reader->
getAllDetIds();
135 for(std::vector<uint32_t>::const_iterator
detid=detids.begin();
detid!=detids.end();++
detid) {
139 for(std::vector<DetIdSelector>::const_iterator detidsel=
detidsels_.begin();detidsel!=
detidsels_.end();++detidsel) {
140 if(detidsel->isSelected(*
detid)) {
142 unsigned int det = *
detid;
153 edm::FileInPath fp(
"CalibTracker/SiPixelESProducers/data/PixelSkimmedGeometry.txt");
156 const std::vector<uint32_t>& detids = pxlreader.
getAllDetIds();
158 for(std::vector<uint32_t>::const_iterator
detid=detids.begin();
detid!=detids.end();++
detid) {
162 for(std::vector<DetIdSelector>::const_iterator detidsel=
detidsels_.begin();detidsel!=
detidsels_.end();++detidsel) {
163 if(detidsel->isSelected(*
detid)) {
165 unsigned int det = *
detid;
217 std::string rootmapname =
"TKMap_Selectortest.root";
T getParameter(std::string const &) const
const std::vector< uint32_t > & getAllDetIds() const
void addPixel(bool addPixelfl)
#define DEFINE_FWK_MODULE(type)
virtual void endJob() override
virtual void beginJob() override
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
DetIdSelectorTest(const edm::ParameterSet &)
void save(std::string filename)
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_
void fill_current_val(int idmod, float current_val)
std::string fullPath() const
void add(uint32_t &detid, float value)