|
|
Go to the documentation of this file.
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;
L1AnalysisRecoElectronDataFormat * getData()
edm::EDGetTokenT< edm::ValueMap< bool > > ElectronLooseIdMapToken_
T getUntrackedParameter(std::string const &, T const &) const
L1Analysis::L1AnalysisRecoElectronDataFormat * electron_data
edm::EDGetTokenT< edm::ValueMap< bool > > ElectronMediumIdMapToken_
Log< level::Warning, false > LogWarning
#define DEFINE_FWK_MODULE(type)
edm::Service< TFileService > fs_
~L1ElectronRecoTreeProducer() override
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)
void beginJob(void) override
void analyze(const edm::Event &, const edm::EventSetup &) override
unsigned int maxElectron_
T getParameter(std::string const &) const
L1ElectronRecoTreeProducer(const edm::ParameterSet &)
edm::EDGetTokenT< edm::ValueMap< bool > > ElectronVetoIdMapToken_
L1Analysis::L1AnalysisRecoElectron * electron
edm::EDGetTokenT< edm::ValueMap< bool > > ElectronTightIdMapToken_
edm::EDGetTokenT< reco::GsfElectronCollection > ElectronToken_
T * make(const Args &... args) const
make new ROOT object