CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Protected Member Functions
BPHRecoSelect Class Referenceabstract

#include <BPHRecoSelect.h>

Inheritance diagram for BPHRecoSelect:
BPHParticleChargeSelect BPHParticleEtaSelect BPHParticleNeutralVeto BPHParticlePtSelect BPHMuonChargeSelect BPHMuonEtaSelect BPHMuonPtSelect

Public Types

using AcceptArg = reco::Candidate
 

Public Member Functions

virtual bool accept (const reco::Candidate &cand) const =0
 
virtual bool accept (const reco::Candidate &cand, const BPHRecoBuilder *build) const
 
 BPHRecoSelect ()
 
 BPHRecoSelect (const BPHRecoSelect &x)=delete
 
BPHRecoSelectoperator= (const BPHRecoSelect &x)=delete
 
virtual ~BPHRecoSelect ()
 

Protected Member Functions

const reco::Candidateget (const std::string &name, const BPHRecoBuilder *build) const
 

Detailed Description

Description: Base class for daughter particle selection

Author
Paolo Ronchese INFN Padova

Definition at line 35 of file BPHRecoSelect.h.

Member Typedef Documentation

◆ AcceptArg

Definition at line 49 of file BPHRecoSelect.h.

Constructor & Destructor Documentation

◆ BPHRecoSelect() [1/2]

BPHRecoSelect::BPHRecoSelect ( )
inline

Constructor

Definition at line 39 of file BPHRecoSelect.h.

39 {}

◆ BPHRecoSelect() [2/2]

BPHRecoSelect::BPHRecoSelect ( const BPHRecoSelect x)
delete

◆ ~BPHRecoSelect()

virtual BPHRecoSelect::~BPHRecoSelect ( )
inlinevirtual

Destructor

Definition at line 47 of file BPHRecoSelect.h.

47 {}

Member Function Documentation

◆ accept() [1/2]

virtual bool BPHRecoSelect::accept ( const reco::Candidate cand) const
pure virtual

Operations accept function pointers to other particles in the decays can be obtained by the function "get" giving the particle name (passing the pointer to the builder)

Implemented in BPHMuonChargeSelect, BPHMuonEtaSelect, BPHMuonPtSelect, BPHParticleChargeSelect, BPHParticleEtaSelect, BPHParticleNeutralVeto, and BPHParticlePtSelect.

Referenced by BPHOniaToMuMuBuilder::getList(), and esMonitoring.FDJsonServer::handle_accept().

◆ accept() [2/2]

virtual bool BPHRecoSelect::accept ( const reco::Candidate cand,
const BPHRecoBuilder build 
) const
inlinevirtual

Definition at line 58 of file BPHRecoSelect.h.

58 { return accept(cand); }

References accept().

Referenced by accept(), and esMonitoring.FDJsonServer::handle_accept().

◆ get()

const reco::Candidate* BPHRecoSelect::get ( const std::string &  name,
const BPHRecoBuilder build 
) const
inlineprotected

Definition at line 62 of file BPHRecoSelect.h.

62  {
63  if (build == nullptr)
64  return nullptr;
65  std::map<std::string, const reco::Candidate*>& cMap = build->daugMap;
66  std::map<std::string, const reco::Candidate*>::iterator iter = cMap.find(name);
67  return (iter != cMap.end() ? iter->second : nullptr);
68  }

References newFWLiteAna::build, and Skims_PA_cff::name.

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), rrapi.RRApi::columns(), rrapi.RRApi::count(), rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), rrapi.RRApi::report(), rrapi.RRApi::reports(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), rrapi.RRApi::templates(), and rrapi.RRApi::workspaces().

◆ operator=()

BPHRecoSelect& BPHRecoSelect::operator= ( const BPHRecoSelect x)
delete
newFWLiteAna.build
build
Definition: newFWLiteAna.py:126
cand
Definition: decayParser.h:34
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
BPHRecoSelect::accept
virtual bool accept(const reco::Candidate &cand) const =0