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

Public Member Functions

 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 doConsumes (const edm::ParameterSet &pset, edm::ConsumesCollector &&collector)
 Hook for the CMSSW consumes interface. 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< LorentzVector > & p4 = tree["p4"].write<std::vector<LorentzVector>>()
 
std::vector< float > & y = tree["y"].transient_write<std::vector<float>>()
 
std::vector< int8_t > & charge = tree["charge"].transient_write<std::vector<int8_t>>()
 
std::vector< bool > & matched = tree["has_matched_gen_particle"].write<std::vector<bool>>()
 
std::vector< LorentzVector > & gen_p4 = tree["gen_p4"].write<std::vector<LorentzVector>>()
 
std::vector< float > & gen_y = tree["gen_y"].transient_write<std::vector<float>>()
 
std::vector< int8_t > & gen_charge = tree["gen_charge"].transient_write<std::vector<int8_t>>()
 

Protected Member Functions

template<typename T , typename U >
void fill_candidate (const T &p, const U *gen)
 
bool pass_cut (const ObjectType &p)
 
- Protected Member Functions inherited from Framework::Producer
bool doingSystematics () const
 

Additional Inherited Members

- Protected Attributes inherited from Framework::Producer
std::string m_name
 
ROOT::TreeGroup tree
 Access point to output tree. More...
 

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