HeavyFlavorAnalysis
RecoDecay
interface
BPHRecoSelect.h
Go to the documentation of this file.
1
#ifndef HeavyFlavorAnalysis_RecoDecay_BPHRecoSelect_h
2
#define HeavyFlavorAnalysis_RecoDecay_BPHRecoSelect_h
3
12
//----------------------
13
// Base Class Headers --
14
//----------------------
15
16
//------------------------------------
17
// Collaborating Class Declarations --
18
//------------------------------------
19
#include "
HeavyFlavorAnalysis/RecoDecay/interface/BPHRecoBuilder.h
"
20
21
namespace
reco
{
22
class
Candidate
;
23
}
24
25
//---------------
26
// C++ Headers --
27
//---------------
28
#include <string>
29
#include <map>
30
31
// ---------------------
32
// -- Class Interface --
33
// ---------------------
34
35
class
BPHRecoSelect
{
36
public
:
39
BPHRecoSelect
() {}
40
41
// deleted copy constructor and assignment operator
42
BPHRecoSelect
(
const
BPHRecoSelect
&
x
) =
delete
;
43
BPHRecoSelect
&
operator=
(
const
BPHRecoSelect
&
x
) =
delete
;
44
47
virtual
~BPHRecoSelect
() {}
48
49
using
AcceptArg
=
reco::Candidate
;
50
53
virtual
bool
accept
(
const
reco::Candidate
&
cand
)
const
= 0;
58
virtual
bool
accept
(
const
reco::Candidate
&
cand
,
const
BPHRecoBuilder
*
build
)
const
{
return
accept
(
cand
); }
59
60
protected
:
61
// function to get other particles pointers
62
const
reco::Candidate
*
get
(
const
std::string
&
name
,
const
BPHRecoBuilder
*
build
)
const
{
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
}
69
};
70
71
#endif
BPHRecoSelect
Definition:
BPHRecoSelect.h:35
configurableAnalysis::Candidate
char Candidate[]
Definition:
modules.cc:20
BPHRecoSelect::get
const reco::Candidate * get(const std::string &name, const BPHRecoBuilder *build) const
Definition:
BPHRecoSelect.h:62
DDAxes::x
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:46
BPHRecoSelect::~BPHRecoSelect
virtual ~BPHRecoSelect()
Definition:
BPHRecoSelect.h:47
newFWLiteAna.build
build
Definition:
newFWLiteAna.py:126
BPHRecoBuilder
Definition:
BPHRecoBuilder.h:50
cand
Definition:
decayParser.h:32
BPHRecoBuilder.h
BPHRecoSelect::accept
virtual bool accept(const reco::Candidate &cand, const BPHRecoBuilder *build) const
Definition:
BPHRecoSelect.h:58
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
reco::Candidate
Definition:
Candidate.h:27
BPHRecoSelect::BPHRecoSelect
BPHRecoSelect()
Definition:
BPHRecoSelect.h:39
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
BPHRecoSelect::operator=
BPHRecoSelect & operator=(const BPHRecoSelect &x)=delete
BPHRecoSelect::accept
virtual bool accept(const reco::Candidate &cand) const =0
Generated for CMSSW Reference Manual by
1.8.16