CMS 3D CMS Logo

BPHBcToJPsiPiBuilder.h
Go to the documentation of this file.
1 #ifndef HeavyFlavorAnalysis_SpecificDecay_BPHBcToJPsiPiBuilder_h
2 #define HeavyFlavorAnalysis_SpecificDecay_BPHBcToJPsiPiBuilder_h
3 
12 //----------------------
13 // Base Class Headers --
14 //----------------------
16 
17 //------------------------------------
18 // Collaborating Class Declarations --
19 //------------------------------------
26 
28 
33 class BPHMassSelect;
34 class BPHChi2Select;
35 class BPHMassFitSelect;
36 
37 //---------------
38 // C++ Headers --
39 //---------------
40 #include <string>
41 #include <vector>
42 
43 // ---------------------
44 // -- Class Interface --
45 // ---------------------
46 
47 class BPHBcToJPsiPiBuilder : public BPHDecayToResTrkBuilder<BPHRecoCandidate, BPHPlusMinusCandidate> {
48 public:
52  const std::vector<BPHPlusMinusConstCandPtr>& jpsiCollection,
53  const BPHRecoBuilder::BPHGenericCollection* pionCollection)
54  : BPHDecayGenericBuilderBase(es, nullptr), //, false ),
57  jpsiCollection, "Pion", BPHParticleMasses::pionMass, BPHParticleMasses::pionMSigma, pionCollection) {
58  setResMassRange(2.80, 3.40);
59  setTrkPtMin(0.7);
60  setTrkEtaMax(10.0);
61  setMassRange(4.00, 9.00);
62  setProbMin(0.02);
63  setMassFitRange(6.00, 7.00);
64  setConstr(true);
65  }
66 
67  // deleted copy constructor and assignment operator
70 
73  ~BPHBcToJPsiPiBuilder() override = default;
74 
77  void setPiPtMin(double pt) { setTrkPtMin(pt); }
79  void setPiEtaMax(double eta) { setTrkEtaMax(eta); }
80  void setJPsiMassMin(double m) { setResMassMin(m); }
81  void setJPsiMassMax(double m) { setResMassMax(m); }
82 
84  double getPiPtMin() const { return getTrkPtMin(); }
85  double getPiEtaMax() const { return getTrkEtaMax(); }
86  double getJPsiMassMin() const { return getResMassMin(); }
87  double getJPsiMassMax() const { return getResMassMax(); }
88 
90  void setup(void* parameters) override {}
91 };
92 
93 #endif
double getJPsiMassMin() const
void setMassFitRange(double mMin, double mMax)
~BPHBcToJPsiPiBuilder() override=default
double getPiPtMin() const
get current cuts
double getResMassMin() const
get current cuts
BPHBcToJPsiPiBuilder(const BPHEventSetupWrapper &es, const std::vector< BPHPlusMinusConstCandPtr > &jpsiCollection, const BPHRecoBuilder::BPHGenericCollection *pionCollection)
void setup(void *parameters) override
setup parameters for BPHRecoBuilder
void setResMassRange(double mMin, double mMax)
double getJPsiMassMax() const
BPHBcToJPsiPiBuilder & operator=(const BPHBcToJPsiPiBuilder &x)=delete
void setPiEtaMax(double eta)
common object to interface with edm collections
void setJPsiMassMin(double m)
double getTrkPtMin() const
get current cuts
void setMassRange(double mMin, double mMax)
void setJPsiMassMax(double m)
void setPiPtMin(double pt)
set cuts