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 //------------------------------------
21 // Collaborating Class Declarations --
22 //------------------------------------
23 
24 
25 //---------------
26 // C++ Headers --
27 //---------------
28 #include <string>
29 
30 // ---------------------
31 // -- Class Interface --
32 // ---------------------
33 
35  public virtual BPHPlusMinusVertex {
36 
37  friend class BPHRecoCandidate;
38 
39  public:
40 
44 
47  ~BPHPlusMinusCandidate() override;
48 
51  void add( const std::string& name,
55  const reco::Candidate* daug,
56  double mass = -1.0, double sigma = -1.0 ) override;
57  void add( const std::string& name,
58  const reco::Candidate* daug,
59  const std::string& searchList,
60  double mass = -1.0, double sigma = -1.0 ) override;
61 
66  static std::vector<BPHPlusMinusConstCandPtr> build(
67  const BPHRecoBuilder& builder,
68  const std::string& nPos,
69  const std::string& nNeg,
70  double mass = -1,
71  double msig = -1 );
72 
74  const pat::CompositeCandidate& composite() const override;
75 
77  bool isCowboy() const;
78  bool isSailor() const;
79 
80  protected:
81 
82  // utility function used to cash reconstruction results
83  void setNotUpdated() const override {
86  }
87 
88  private:
89 
90  // constructor
93 
94  // return true or false for positive or negative phi_pos-phi_neg difference
95  bool phiDiff() const;
96 
97 };
98 
99 
100 #endif
101 
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)
virtual ParticleMass mass() const
const pat::CompositeCandidate & composite() const override
get a composite by the simple sum of simple particles
void add(const std::string &name, const reco::Candidate *daug, double mass=-1.0, double sigma=-1.0) override
void setNotUpdated() const override
bool isCowboy() const
get cowboy/sailor classification
std::vector< Component > compList
void setNotUpdated() const override
void setNotUpdated() const override