91 "eleVetoIdMapToken",
edm::InputTag(
"egmGsfElectronIDs:cutBasedElectronID-Spring15-25ns-V1-standalone-veto")));
93 "eleLooseIdMapToken",
edm::InputTag(
"egmGsfElectronIDs:cutBasedElectronID-Spring15-25ns-V1-standalone-loose")));
95 "eleMediumIdMapToken",
edm::InputTag(
"egmGsfElectronIDs:cutBasedElectronID-Spring15-25ns-V1-standalone-medium")));
97 "eleTightIdMapToken",
edm::InputTag(
"egmGsfElectronIDs:cutBasedElectronID-Spring15-25ns-V1-standalone-tight")));
102 tree_ =
fs_->
make<TTree>(
"ElectronRecoTree",
"ElectronRecoTree");
103 tree_->Branch(
"Electron",
"L1Analysis::L1AnalysisRecoElectronDataFormat", &
electron_data, 32000, 3);
123 std::vector<edm::Handle<edm::ValueMap<bool> > > eleVIDDecisionHandles(4);
130 if (recoElectrons.
isValid() && eleVIDDecisionHandles[0].isValid() && eleVIDDecisionHandles[1].isValid() &&
131 eleVIDDecisionHandles[2].isValid() && eleVIDDecisionHandles[3].isValid()) {
135 edm::LogWarning(
"MissingProduct") <<
"CaloJets not found. Branch will not be filled" << std::endl;
T getParameter(std::string const &) const
L1ElectronRecoTreeProducer(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
edm::Service< TFileService > fs_
unsigned int maxElectron_
edm::EDGetTokenT< reco::GsfElectronCollection > ElectronToken_
L1Analysis::L1AnalysisRecoElectron * electron
edm::EDGetTokenT< edm::ValueMap< bool > > ElectronMediumIdMapToken_
edm::EDGetTokenT< edm::ValueMap< bool > > ElectronLooseIdMapToken_
T getUntrackedParameter(std::string const &, T const &) const
~L1ElectronRecoTreeProducer() override
L1Analysis::L1AnalysisRecoElectronDataFormat * electron_data
void beginJob(void) override
L1AnalysisRecoElectronDataFormat * getData()
edm::EDGetTokenT< edm::ValueMap< bool > > ElectronTightIdMapToken_
edm::EDGetTokenT< edm::ValueMap< bool > > ElectronVetoIdMapToken_
T * make(const Args &...args) const
make new ROOT object
void SetElectron(const edm::Event &event, const edm::EventSetup &setup, const edm::Handle< reco::GsfElectronCollection > electrons, const std::vector< edm::Handle< edm::ValueMap< bool > > > eleVIDDecisionHandles, const unsigned &maxElectron)
Log< level::Warning, false > LogWarning
void analyze(const edm::Event &, const edm::EventSetup &) override