CMS 3D CMS Logo

BPHPlusMinusCandidate.h
Go to the documentation of this file.
1 #ifndef HeavyFlavorAnalysis_RecoDecay_BPHPlusMinusCandidate_h
2 #define HeavyFlavorAnalysis_RecoDecay_BPHPlusMinusCandidate_h
3 
13 //----------------------
14 // Base Class Headers --
15 //----------------------
18 
19 //------------------------------------
20 // Collaborating Class Declarations --
21 //------------------------------------
22 
23 //---------------
24 // C++ Headers --
25 //---------------
26 #include <string>
27 
28 // ---------------------
29 // -- Class Interface --
30 // ---------------------
31 
33  friend class BPHRecoCandidate;
34 
35 public:
39 
40  // deleted copy constructor and assignment operator
43 
46  ~BPHPlusMinusCandidate() override;
47 
50  void add(const std::string& name, const reco::Candidate* daug, double mass = -1.0, double sigma = -1.0) override;
54  void add(const std::string& name,
55  const reco::Candidate* daug,
56  const std::string& searchList,
57  double mass = -1.0,
58  double sigma = -1.0) override;
59 
64  static std::vector<BPHPlusMinusConstCandPtr> build(const BPHRecoBuilder& builder,
65  const std::string& nPos,
66  const std::string& nNeg,
67  double mass = -1,
68  double msig = -1);
69 
72  BPHRecoCandidate* clone(int level = -1) const override;
73 
75  const pat::CompositeCandidate& composite() const override;
76 
78  bool isCowboy() const;
79  bool isSailor() const;
80 
81 protected:
82  // utility function used to cash reconstruction results
83  void setNotUpdated() const override {
86  }
87 
88 private:
89  // constructor
91 
92  // return true or false for positive or negative phi_pos-phi_neg difference
93  bool phiDiff() const;
94 };
95 
96 #endif
personalPlayback.level
level
Definition: personalPlayback.py:22
BPHPlusMinusCandidate::~BPHPlusMinusCandidate
~BPHPlusMinusCandidate() override
Definition: BPHPlusMinusCandidate.cc:50
BPHPlusMinusVertex::setNotUpdated
void setNotUpdated() const override
Definition: BPHPlusMinusVertex.cc:52
pat::CompositeCandidate
Analysis-level particle class.
Definition: CompositeCandidate.h:31
BPHPlusMinusCandidate
Definition: BPHPlusMinusCandidate.h:32
BPHPlusMinusCandidate::composite
const pat::CompositeCandidate & composite() const override
get a composite by the simple sum of simple particles
Definition: BPHPlusMinusCandidate.cc:114
DDAxes::x
BPHDecayMomentum::compList
std::vector< Component > compList
Definition: BPHDecayMomentum.h:134
BPHPlusMinusVertex
Definition: BPHPlusMinusVertex.h:33
BPHPlusMinusCandidate::BPHPlusMinusCandidate
BPHPlusMinusCandidate(const edm::EventSetup *es)
Definition: BPHPlusMinusCandidate.cc:37
BPHRecoBuilder
Definition: BPHRecoBuilder.h:50
BPHPlusMinusCandidate::operator=
BPHPlusMinusCandidate & operator=(const BPHPlusMinusCandidate &x)=delete
BPHPlusMinusVertex.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
BPHRecoBuilder::ComponentSet
Definition: BPHRecoBuilder.h:127
newFWLiteAna.searchList
searchList
Definition: newFWLiteAna.py:119
edm::EventSetup
Definition: EventSetup.h:58
BPHPlusMinusCandidate::isSailor
bool isSailor() const
Definition: BPHPlusMinusCandidate.cc:127
BPHKinematicFit::mass
virtual ParticleMass mass() const
Definition: BPHKinematicFit.cc:297
reco::Candidate
Definition: Candidate.h:27
BPHPlusMinusCandidate::phiDiff
bool phiDiff() const
Definition: BPHPlusMinusCandidate.cc:132
BPHPlusMinusCandidate::build
static std::vector< BPHPlusMinusConstCandPtr > build(const BPHRecoBuilder &builder, const std::string &nPos, const std::string &nNeg, double mass=-1, double msig=-1)
Definition: BPHPlusMinusCandidate.cc:86
BPHKinematicFit::setNotUpdated
void setNotUpdated() const override
Definition: BPHKinematicFit.cc:354
BPHPlusMinusCandidate::isCowboy
bool isCowboy() const
get cowboy/sailor classification
Definition: BPHPlusMinusCandidate.cc:122
BPHRecoCandidate.h
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
BPHPlusMinusCandidate::add
void add(const std::string &name, const reco::Candidate *daug, double mass=-1.0, double sigma=-1.0) override
BPHRecoCandidate
Definition: BPHRecoCandidate.h:46
BPHPlusMinusCandidate::clone
BPHRecoCandidate * clone(int level=-1) const override
Definition: BPHPlusMinusCandidate.cc:108
BPHPlusMinusCandidate::setNotUpdated
void setNotUpdated() const override
Definition: BPHPlusMinusCandidate.h:83