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 //----------------
31 // Constructors --
32 //----------------
34 }
35 
36 //--------------
37 // Destructor --
38 //--------------
40 }
41 
42 //--------------
43 // Operations --
44 //--------------
46  return true;
47 }
48 
49 
51  const BPHRecoBuilder* build ) const {
52  return accept( cand );
53 }
54 
55 
56 const reco::Candidate* BPHRecoSelect::get( const string& name,
57  const BPHRecoBuilder* build ) const {
58  if ( build == 0 ) return 0;
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 : 0 );
62 }
63 
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