Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:49:22

0001 #ifndef HeavyFlavorAnalysis_SpecificDecay_BPHBsToJPsiPhiBuilder_h
0002 #define HeavyFlavorAnalysis_SpecificDecay_BPHBsToJPsiPhiBuilder_h
0003 /** \class BPHBsToJPsiPhiBuilder
0004  *
0005  *  Description: 
0006  *     Class to build Bs to JPsi Phi candidates
0007  *
0008  *  \author Paolo Ronchese INFN Padova
0009  *
0010  */
0011 
0012 //----------------------
0013 // Base Class Headers --
0014 //----------------------
0015 #include "HeavyFlavorAnalysis/SpecificDecay/interface/BPHDecayToResResBuilder.h"
0016 
0017 //------------------------------------
0018 // Collaborating Class Declarations --
0019 //------------------------------------
0020 #include "HeavyFlavorAnalysis/RecoDecay/interface/BPHRecoBuilder.h"
0021 #include "HeavyFlavorAnalysis/RecoDecay/interface/BPHRecoCandidate.h"
0022 #include "HeavyFlavorAnalysis/RecoDecay/interface/BPHPlusMinusCandidate.h"
0023 #include "HeavyFlavorAnalysis/SpecificDecay/interface/BPHParticleMasses.h"
0024 
0025 #include "FWCore/Framework/interface/Event.h"
0026 
0027 //---------------
0028 // C++ Headers --
0029 //---------------
0030 #include <string>
0031 #include <vector>
0032 
0033 //              ---------------------
0034 //              -- Class Interface --
0035 //              ---------------------
0036 
0037 class BPHBsToJPsiPhiBuilder : public BPHDecayToResResBuilder {
0038 public:
0039   /** Constructor
0040    */
0041   BPHBsToJPsiPhiBuilder(const edm::EventSetup& es,
0042                         const std::vector<BPHPlusMinusConstCandPtr>& jpsiCollection,
0043                         const std::vector<BPHPlusMinusConstCandPtr>& phiCollection)
0044       : BPHDecayToResResBuilder(es,
0045                                 "JPsi",
0046                                 BPHParticleMasses::jPsiMass,
0047                                 BPHParticleMasses::jPsiMWidth,
0048                                 jpsiCollection,
0049                                 "Phi",
0050                                 phiCollection) {
0051     setRes1MassRange(2.80, 3.40);
0052     setRes2MassRange(1.005, 1.035);
0053     setMassRange(3.50, 8.00);
0054     setProbMin(0.02);
0055     setMassFitRange(5.00, 6.00);
0056     setConstr(true);
0057   }
0058 
0059   // deleted copy constructor and assignment operator
0060   BPHBsToJPsiPhiBuilder(const BPHBsToJPsiPhiBuilder& x) = delete;
0061   BPHBsToJPsiPhiBuilder& operator=(const BPHBsToJPsiPhiBuilder& x) = delete;
0062 
0063   /** Destructor
0064    */
0065   ~BPHBsToJPsiPhiBuilder() override {}
0066 
0067   /** Operations
0068    */
0069   /// set cuts
0070   void setJPsiMassMin(double m) { setRes1MassMin(m); }
0071   void setJPsiMassMax(double m) { setRes1MassMax(m); }
0072   void setPhiMassMin(double m) { setRes2MassMin(m); }
0073   void setPhiMassMax(double m) { setRes2MassMax(m); }
0074 
0075   /// get current cuts
0076   double getJPsiMassMin() const { return getRes1MassMin(); }
0077   double getJPsiMassMax() const { return getRes1MassMax(); }
0078   double getPhiMassMin() const { return getRes2MassMin(); }
0079   double getPhiMassMax() const { return getRes2MassMax(); }
0080 };
0081 
0082 #endif