CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
Analysis-level particle class.
static std::vector< BPHPlusMinusConstCandPtr > build(const BPHRecoBuilder &builder, const std::string &nPos, const std::string &nNeg, double mass=-1, double msig=-1)
BPHPlusMinusCandidate(const edm::EventSetup *es)
void setNotUpdated() const override
void setNotUpdated() const override
virtual ParticleMass mass() const
const pat::CompositeCandidate & composite() const override
get a composite by the simple sum of simple particles
void setNotUpdated() const override
BPHPlusMinusCandidate & operator=(const BPHPlusMinusCandidate &x)=delete
void add(const std::string &name, const reco::Candidate *daug, double mass=-1.0, double sigma=-1.0) override
bool isCowboy() const
get cowboy/sailor classification
std::vector< Component > compList
BPHRecoCandidate * clone(int level=-1) const override
tuple level
Definition: testEve_cfg.py:47