CMS 3D CMS Logo

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

#include <BPHRecoSelect.h>

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

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 35 of file BPHRecoSelect.h.

Constructor & Destructor Documentation

BPHRecoSelect::BPHRecoSelect ( )

Constructor

Definition at line 33 of file BPHRecoSelect.cc.

33  {
34 }
BPHRecoSelect::~BPHRecoSelect ( )
virtual

Destructor

Definition at line 39 of file BPHRecoSelect.cc.

39  {
40 }
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, BPHMuonEtaSelect, BPHMuonPtSelect, BPHParticleChargeSelect, BPHParticleEtaSelect, BPHParticleNeutralVeto, and BPHParticlePtSelect.

Definition at line 45 of file BPHRecoSelect.cc.

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

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

Definition at line 50 of file BPHRecoSelect.cc.

References accept().

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

51  {
52  return accept( cand );
53 }
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 56 of file BPHRecoSelect.cc.

References BPHRecoBuilder::daugMap, and nullptr.

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

57  {
58  if ( build == nullptr ) return nullptr;
59  map<string,const reco::Candidate*>& cMap = build->daugMap;
60  map<string,const reco::Candidate*>::iterator iter = cMap.find( name );
61  return ( iter != cMap.end() ? iter->second : nullptr );
62 }
#define nullptr
std::map< std::string, const reco::Candidate * > daugMap
BPHRecoSelect& BPHRecoSelect::operator= ( const BPHRecoSelect x)
privatedelete