87 electronsMissing_(
false)
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 &)
~L1ElectronRecoTreeProducer()
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
edm::Service< TFileService > fs_
T * make(const Args &...args) const
make new ROOT object
unsigned int maxElectron_
edm::EDGetTokenT< reco::GsfElectronCollection > ElectronToken_
virtual void beginJob(void)
L1Analysis::L1AnalysisRecoElectron * electron
edm::EDGetTokenT< edm::ValueMap< bool > > ElectronMediumIdMapToken_
edm::EDGetTokenT< edm::ValueMap< bool > > ElectronLooseIdMapToken_
virtual void analyze(const edm::Event &, const edm::EventSetup &)
L1Analysis::L1AnalysisRecoElectronDataFormat * electron_data
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)
volatile std::atomic< bool > shutdown_flag false