CP3-llbb Framework
Public Member Functions | Public Attributes | List of all members
MuonsProducer Class Reference
Inheritance diagram for MuonsProducer:
Inheritance graph
[legend]
Collaboration diagram for MuonsProducer:
Collaboration graph
[legend]

Public Member Functions

 MuonsProducer (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...
 
virtual void produce (edm::Event &event, const edm::EventSetup &eventSetup) override
 Main method of the producer, called for each event. More...
 
 BRANCH (dxy, std::vector< float >)
 
 BRANCH (dz, std::vector< float >)
 
 BRANCH (dca, std::vector< float >)
 
- Public Member Functions inherited from LeptonsProducer< pat::Muon >
 LeptonsProducer (const std::string &name, const ROOT::TreeGroup &tree, const edm::ParameterSet &config)
 
- Public Member Functions inherited from CandidatesProducer< ObjectType >
 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 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 Member Functions inherited from ScaleFactors
 ScaleFactors (ROOT::TreeGroup &tree)
 
virtual void create_branches (const edm::ParameterSet &) final
 
virtual void create_branch (const std::string &scale_factor, const std::string &branch_name)
 
virtual void store_scale_factors (const Parameters &, bool isData) final
 
virtual float get_scale_factor (const std::string &tag, size_t index, Variation variation=Variation::Nominal) final
 

Public Attributes

std::vector< bool > & isLoose = tree["isLoose"].write<std::vector<bool>>()
 
std::vector< bool > & isSoft = tree["isSoft"].write<std::vector<bool>>()
 
std::vector< bool > & isMedium = tree["isMedium"].write<std::vector<bool>>()
 
std::vector< bool > & isMedium2016 = tree["isMedium2016"].write<std::vector<bool>>()
 
std::vector< bool > & isTight = tree["isTight"].write<std::vector<bool>>()
 
std::vector< bool > & isHighPt = tree["isHighPt"].write<std::vector<bool>>()
 
- Public Attributes inherited from LeptonsProducer< pat::Muon >
std::vector< float > & EA_R03
 
std::vector< float > & EA_R04
 
std::vector< float > & chargedHadronIsoR03
 
std::vector< float > & neutralHadronIsoR03
 
std::vector< float > & photonIsoR03
 
std::vector< float > & puChargedHadronIsoR03
 
std::vector< float > & relativeIsoR03
 
std::vector< float > & relativeIsoR03_deltaBeta
 
std::vector< float > & relativeIsoR03_withEA
 
std::vector< float > & chargedHadronIsoR04
 
std::vector< float > & neutralHadronIsoR04
 
std::vector< float > & photonIsoR04
 
std::vector< float > & puChargedHadronIsoR04
 
std::vector< float > & relativeIsoR04
 
std::vector< float > & relativeIsoR04_deltaBeta
 
std::vector< float > & relativeIsoR04_withEA
 
- Public Attributes inherited from CandidatesProducer< ObjectType >
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>>()
 

Additional Inherited Members

- Protected Member Functions inherited from LeptonsProducer< pat::Muon >
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< ObjectType >
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
 
- Protected Attributes inherited from LeptonsProducer< pat::Muon >
edm::EDGetTokenT< std::vector< pat::Muon > > 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()

virtual void MuonsProducer::doConsumes ( const edm::ParameterSet &  config,
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 LeptonsProducer< pat::Muon >.

◆ produce()

void MuonsProducer::produce ( edm::Event &  event,
const edm::EventSetup &  setup 
)
overridevirtual

Main method of the producer, called for each event.

You have direct access to the event via the CMSSW interface with the event and setup parameters.

Parameters
eventThe CMSSW event
setupThe CMSSW event setup
See also
https://twiki.cern.ch/twiki/bin/view/CMSPublic/WorkBookCMSSWFramework#EdM
CMSSW reference manual: https://cmssdt.cern.ch/SDT/doxygen/

Implements Framework::Producer.


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