63 token = consumes<T>(
tag);
77 hasGainSwitchFlag_(
"hasGainSwitchFlag")
96 auto ebRecHits = *getHandle(iEvent, ebRecHitsToken_);
97 auto objects = getHandle(iEvent, objectsToken_);
99 std::vector<int> objectFlags;
101 for(
auto&
object : *objects){
104 objectFlags.emplace_back(1);
106 objectFlags.emplace_back(0);
111 std::unique_ptr<intMap> bRefMap(
new intMap);
113 intMapFiller.
insert(objects, objectFlags.begin(), objectFlags.end());
124 topology_ = caloTopo.
product();
T getParameter(std::string const &) const
std::string hasGainSwitchFlag_
static PFTauRenderPlugin instance
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
const CaloTopology * topology_
void insert(const H &h, I begin, I end)
edm::EDGetTokenT< C > objectsToken_
~EGGainSwitchFlagProducer()
void getToken(edm::EDGetTokenT< T > &token, const edm::ParameterSet &pset, const std::string &label, const std::string &instance="")
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
T const * product() const
edm::ValueMap< int > intMap
edm::EDGetTokenT< EcalRecHitCollection > ebRecHitsToken_
EGGainSwitchFlagProducer(const edm::ParameterSet &)
void produce(edm::Event &, const edm::EventSetup &) override
void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override