107 tree_=
fs_->
make<TTree>(
"ElectronRecoTree",
"ElectronRecoTree");
108 tree_->Branch(
"Electron",
"L1Analysis::L1AnalysisRecoElectronDataFormat", &
electron_data, 32000, 3);
136 std::vector<edm::Handle<edm::ValueMap<bool> > > eleVIDDecisionHandles(4) ;
143 if (recoElectrons.
isValid() && eleVIDDecisionHandles[0].isValid() && eleVIDDecisionHandles[1].isValid() && eleVIDDecisionHandles[2].isValid() && eleVIDDecisionHandles[3].isValid() ) {
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
L1ElectronRecoTreeProducer(const edm::ParameterSet &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::Service< TFileService > fs_
T * make(const Args &...args) const
make new ROOT object
unsigned int maxElectron_
edm::EDGetTokenT< reco::GsfElectronCollection > ElectronToken_
L1Analysis::L1AnalysisRecoElectron * electron
edm::EDGetTokenT< edm::ValueMap< bool > > ElectronMediumIdMapToken_
edm::EDGetTokenT< edm::ValueMap< bool > > ElectronLooseIdMapToken_
~L1ElectronRecoTreeProducer() override
#define DEFINE_FWK_MODULE(type)
L1Analysis::L1AnalysisRecoElectronDataFormat * electron_data
void beginJob(void) override
edm::EDGetTokenT< edm::ValueMap< bool > > ElectronTightIdMapToken_
edm::EDGetTokenT< edm::ValueMap< bool > > ElectronVetoIdMapToken_
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 analyze(const edm::Event &, const edm::EventSetup &) override