CMS 3D CMS Logo

BPHRecoSelect.cc
Go to the documentation of this file.
1 /*
2  * See header file for a description of this class.
3  *
4  * \author Paolo Ronchese INFN Padova
5  *
6  */
7 
8 //-----------------------
9 // This Class' Header --
10 //-----------------------
12 
13 //-------------------------------
14 // Collaborating Class Headers --
15 //-------------------------------
17 
18 //---------------
19 // C++ Headers --
20 //---------------
21 #include <map>
22 
23 using namespace std;
24 
25 //-------------------
26 // Initializations --
27 //-------------------
28 
29 //----------------
30 // Constructors --
31 //----------------
33 
34 //--------------
35 // Destructor --
36 //--------------
38 
39 //--------------
40 // Operations --
41 //--------------
42 bool BPHRecoSelect::accept(const reco::Candidate& cand) const { return true; }
43 
44 bool BPHRecoSelect::accept(const reco::Candidate& cand, const BPHRecoBuilder* build) const { return accept(cand); }
45 
46 const reco::Candidate* BPHRecoSelect::get(const string& name, const BPHRecoBuilder* build) const {
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 }
virtual ~BPHRecoSelect()
const reco::Candidate * get(const std::string &name, const BPHRecoBuilder *build) const
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
Definition: TopDQMHelpers.h:30
virtual bool accept(const reco::Candidate &cand) const
std::map< std::string, const reco::Candidate * > daugMap