CMS 3D CMS Logo

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

#include <BPHRecoSelect.h>

Inheritance diagram for BPHRecoSelect:
BPHMultiSelectBase< BPHRecoSelect > BPHParticleChargeSelect BPHParticleEtaSelect BPHParticleNeutralVeto BPHParticlePtSelect BPHMultiSelect< BPHRecoSelect > BPHMuonChargeSelect BPHMuonEtaSelect BPHMuonPtSelect

Public Types

using AcceptArg = reco::Candidate
 

Public Member Functions

virtual bool accept (const reco::Candidate &cand) const
 
virtual bool accept (const reco::Candidate &cand, const BPHRecoBuilder *build) const
 
 BPHRecoSelect ()
 
virtual ~BPHRecoSelect ()
 

Protected Member Functions

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

Private Member Functions

 BPHRecoSelect (const BPHRecoSelect &x)=delete
 
BPHRecoSelectoperator= (const BPHRecoSelect &x)=delete
 

Detailed Description

Description: Base class for daughter particle selection

Author
Paolo Ronchese INFN Padova

Definition at line 34 of file BPHRecoSelect.h.

Member Typedef Documentation

Definition at line 44 of file BPHRecoSelect.h.

Constructor & Destructor Documentation

BPHRecoSelect::BPHRecoSelect ( )

Constructor

Definition at line 32 of file BPHRecoSelect.cc.

32 {}
BPHRecoSelect::~BPHRecoSelect ( )
virtual

Destructor

Definition at line 37 of file BPHRecoSelect.cc.

37 {}
BPHRecoSelect::BPHRecoSelect ( const BPHRecoSelect x)
privatedelete

Member Function Documentation

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

Operationsaccept 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)

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

Definition at line 42 of file BPHRecoSelect.cc.

Referenced by Vispa.Gui.BoxContentDialog.BoxContentDialog::apply(), Vispa.Plugins.ConfigEditor.ToolDialog.ToolDialog::apply(), BPHOniaToMuMuBuilder::getList(), and esMonitoring.FDJsonServer::handle_accept().

42 { return true; }
bool BPHRecoSelect::accept ( const reco::Candidate cand,
const BPHRecoBuilder build 
) const
virtual

Reimplemented in BPHMultiSelect< BPHRecoSelect >.

Definition at line 44 of file BPHRecoSelect.cc.

References accept().

Referenced by Vispa.Gui.BoxContentDialog.BoxContentDialog::apply(), Vispa.Plugins.ConfigEditor.ToolDialog.ToolDialog::apply(), and esMonitoring.FDJsonServer::handle_accept().

44 { return accept(cand); }
virtual bool accept(const reco::Candidate &cand) const
const reco::Candidate * BPHRecoSelect::get ( const std::string &  name,
const BPHRecoBuilder build 
) const
protected

Definition at line 46 of file BPHRecoSelect.cc.

References BPHRecoBuilder::daugMap.

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().

46  {
47  if (build == nullptr)
48  return nullptr;
49  map<string, const reco::Candidate*>& cMap = build->daugMap;
50  map<string, const reco::Candidate*>::iterator iter = cMap.find(name);
51  return (iter != cMap.end() ? iter->second : nullptr);
52 }
std::map< std::string, const reco::Candidate * > daugMap
BPHRecoSelect& BPHRecoSelect::operator= ( const BPHRecoSelect x)
privatedelete