CP3-llbb Framework
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
LeptonsProducer< T > Class Template Reference
Inheritance diagram for LeptonsProducer< T >:
Inheritance graph
[legend]
Collaboration diagram for LeptonsProducer< T >:
Collaboration graph
[legend]

Public Member Functions

 LeptonsProducer (const std::string &name, const ROOT::TreeGroup &tree, const edm::ParameterSet &config)
 
virtual void doConsumes (const edm::ParameterSet &config, edm::ConsumesCollector &&collector) override
 Hook for the CMSSW consumes interface. More...
 
- Public Member Functions inherited from CandidatesProducer< T >
 CandidatesProducer (const std::string &name, const ROOT::TreeGroup &tree, const edm::ParameterSet &config)
 
- Public Member Functions inherited from Framework::Producer
 Producer (const std::string &name, const ROOT::TreeGroup &tree_, const edm::ParameterSet &config)
 Base constructor. More...
 
virtual void produce (edm::Event &event, const edm::EventSetup &setup)=0
 Main method of the producer, called for each event. More...
 
virtual void beginJob (MetadataManager &manager)
 Called once at the beginning of the job. More...
 
virtual void endJob (MetadataManager &manager)
 Called once at the end of the job. More...
 
virtual void beginRun (const edm::Run &run, const edm::EventSetup &setup)
 Called at the beginning of a new run. More...
 
virtual void endRun (const edm::Run &run, const edm::EventSetup &setup)
 Called at the end of a run. More...
 
virtual void beginLuminosityBlock (const edm::LuminosityBlock &lumi, const edm::EventSetup &setup)
 Called at the beginning of a new luminosity section. More...
 
virtual void endLuminosityBlock (const edm::LuminosityBlock &lumi, const edm::EventSetup &setup)
 Called at the end of a luminosity section. More...
 
 Producer (const Producer &)=delete
 
Produceroperator= (const Producer &)=delete
 

Public Attributes

std::vector< float > & EA_R03 = this->tree["EAR03"].template write<std::vector<float>>()
 
std::vector< float > & EA_R04 = this->tree["EAR04"].template write<std::vector<float>>()
 
std::vector< float > & chargedHadronIsoR03 = this->tree["chargedHadronIsoR03"].template write<std::vector<float>>()
 
std::vector< float > & neutralHadronIsoR03 = this->tree["neutralHadronIsoR03"].template write<std::vector<float>>()
 
std::vector< float > & photonIsoR03 = this->tree["photonIsoR03"].template write<std::vector<float>>()
 
std::vector< float > & puChargedHadronIsoR03 = this->tree["puChargedHadronIsoR03"].template write<std::vector<float>>()
 
std::vector< float > & relativeIsoR03 = this->tree["relativeIsoR03"].template write<std::vector<float>>()
 
std::vector< float > & relativeIsoR03_deltaBeta = this->tree["relativeIsoR03_deltaBeta"].template write<std::vector<float>>()
 
std::vector< float > & relativeIsoR03_withEA = this->tree["relativeIsoR03_withEA"].template write<std::vector<float>>()
 
std::vector< float > & chargedHadronIsoR04 = this->tree["chargedHadronIsoR04"].template write<std::vector<float>>()
 
std::vector< float > & neutralHadronIsoR04 = this->tree["neutralHadronIsoR04"].template write<std::vector<float>>()
 
std::vector< float > & photonIsoR04 = this->tree["photonIsoR04"].template write<std::vector<float>>()
 
std::vector< float > & puChargedHadronIsoR04 = this->tree["puChargedHadronIsoR04"].template write<std::vector<float>>()
 
std::vector< float > & relativeIsoR04 = this->tree["relativeIsoR04"].template write<std::vector<float>>()
 
std::vector< float > & relativeIsoR04_deltaBeta = this->tree["relativeIsoR04_deltaBeta"].template write<std::vector<float>>()
 
std::vector< float > & relativeIsoR04_withEA = this->tree["relativeIsoR04_withEA"].template write<std::vector<float>>()
 
- Public Attributes inherited from CandidatesProducer< T >
std::vector< LorentzVector > & p4
 
std::vector< float > & y
 
std::vector< int8_t > & charge
 
std::vector< bool > & matched
 
std::vector< LorentzVector > & gen_p4
 
std::vector< float > & gen_y
 
std::vector< int8_t > & gen_charge
 

Protected Member Functions

void computeIsolations_R03 (float chargedHadronIso, float neutralHadronIso, float photonIso, float puChargedHadronIso, float pt, float eta, float rho)
 
void computeIsolations_R04 (float chargedHadronIso, float neutralHadronIso, float photonIso, float puChargedHadronIso, float pt, float eta, float rho)
 
- Protected Member Functions inherited from CandidatesProducer< T >
void fill_candidate (const T &p, const U *gen)
 
bool pass_cut (const T &p)
 
- Protected Member Functions inherited from Framework::Producer
bool doingSystematics () const
 

Protected Attributes

edm::EDGetTokenT< std::vector< T > > m_leptons_token
 
edm::EDGetTokenT< double > m_rho_token
 
- Protected Attributes inherited from Framework::Producer
std::string m_name
 
ROOT::TreeGroup tree
 Access point to output tree. More...
 

Member Function Documentation

◆ doConsumes()

template<class T >
virtual void LeptonsProducer< T >::doConsumes ( const edm::ParameterSet &  pset,
edm::ConsumesCollector &&  collector 
)
inlineoverridevirtual

Hook for the CMSSW consumes interface.

Override this method to register your tokens into the CMSSW framework via the collector interface

Parameters
psetA link to the python configuration
collectorThe consumes collector. Use it to register your tokens.
See also
https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideEDMGetDataFromEvent

Reimplemented from Framework::Producer.

Reimplemented in MuonsProducer, and ElectronsProducer.


The documentation for this class was generated from the following file: