1 #ifndef HeavyFlavorAnalysis_RecoDecay_BPHAnalyzerTokenWrapper_h 2 #define HeavyFlavorAnalysis_RecoDecay_BPHAnalyzerTokenWrapper_h 58 template <
class Obj,
class Rec>
63 obj = es.get<Rec>().getHandle(
token);
75 tw.
token = this->
template consumes<Obj>(
tag);
80 tw.
token = this->
template consumes<Obj>(
tag);
83 template <
class Obj,
class Rec>
85 tw.
token = this->
template esConsumes<Obj, Rec>();
88 template <
class Obj,
class Rec>
93 template <
class Obj,
class Rec>
95 tw.
token = this->
template esConsumes<Obj>(
tag);
110 twMap->insert(tokenMap.begin(), tokenMap.end());
120 twMap->insert(tokenMap.begin(), tokenMap.end());
124 template <
class Obj,
class Rec>
126 const auto& iter = twMap->find(
type);
132 std::shared_ptr<std::map<BPHRecoCandidate::esType, void*>>
twMap;
void consume(BPHTokenWrapper< Obj > &tw, const edm::InputTag &tag)
edm::one::EDProducer one_producer
edm::EDGetTokenT< Obj > type
void consume(BPHTokenWrapper< Obj > &tw, const std::string &label)
BPHEventSetupWrapper(const BPHEventSetupWrapper *es)
TEMPL(T2) struct Divides void
void esConsume(BPHESTokenWrapper< Obj, Rec > &tw)
BPHEventSetupWrapper(const BPHEventSetupWrapper &es, BPHRecoCandidate::esType type, void *token)
void esConsume(BPHESTokenWrapper< Obj, Rec > &tw, const edm::ESInputTag &tag)
const edm::EventSetup * ep
edm::one::EDAnalyzer one_analyzer
edm::stream::EDProducer stream_producer
edm::stream::EDAnalyzer stream_analyzer
BPHEventSetupWrapper(const edm::EventSetup &es, std::map< BPHRecoCandidate::esType, void *> tokenMap)
BPHEventSetupWrapper(BPHEventSetupWrapper &es, std::map< BPHRecoCandidate::esType, void *> tokenMap)
void esConsume(BPHESTokenWrapper< Obj, Rec > &tw, const std::string &label)
edm::ESGetToken< Obj, Rec > type
std::shared_ptr< std::map< BPHRecoCandidate::esType, void * > > twMap
BPHEventSetupWrapper(const edm::EventSetup &es, BPHRecoCandidate::esType type, void *token)
BPHEventSetupWrapper(const edm::EventSetup &es)