Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 /*
0002  *  See header file for a description of this class.
0003  *
0004  *  \author Paolo Ronchese INFN Padova
0005  *
0006  */
0007 
0008 //-----------------------
0009 // This Class' Header --
0010 //-----------------------
0011 #include "HeavyFlavorAnalysis/SpecificDecay/interface/BPHDecayGenericBuilder.h"
0012 
0013 //-------------------------------
0014 // Collaborating Class Headers --
0015 //-------------------------------
0016 
0017 //---------------
0018 // C++ Headers --
0019 //---------------
0020 using namespace std;
0021 
0022 //-------------------
0023 // Initializations --
0024 //-------------------
0025 
0026 //----------------
0027 // Constructors --
0028 //----------------
0029 BPHDecayGenericBuilder::BPHDecayGenericBuilder(const edm::EventSetup& es, BPHMassFitSelect* mfs)
0030     : evSetup(&es),
0031       massSel(new BPHMassSelect(-2.0e+06, -1.0e+06)),
0032       chi2Sel(new BPHChi2Select(-1.0)),
0033       mFitSel(mfs),
0034       minPDiff(1.0e-4),
0035       updated(false) {
0036   if (mFitSel == nullptr)
0037     mFitSel = new BPHMassFitSelect(-2.0e+06, -1.0e+06);
0038 }
0039 
0040 //--------------
0041 // Destructor --
0042 //--------------
0043 BPHDecayGenericBuilder::~BPHDecayGenericBuilder() {
0044   delete massSel;
0045   delete chi2Sel;
0046   delete mFitSel;
0047 }
0048 
0049 //--------------
0050 // Operations --
0051 //--------------
0052 /// set cuts
0053 void BPHDecayGenericBuilder::setMassMin(double m) {
0054   updated = false;
0055   massSel->setMassMin(m);
0056   return;
0057 }
0058 
0059 void BPHDecayGenericBuilder::setMassMax(double m) {
0060   updated = false;
0061   massSel->setMassMax(m);
0062   return;
0063 }
0064 
0065 void BPHDecayGenericBuilder::setMassRange(double mMin, double mMax) {
0066   updated = false;
0067   massSel->setMassMin(mMin);
0068   massSel->setMassMax(mMax);
0069   return;
0070 }
0071 
0072 void BPHDecayGenericBuilder::setProbMin(double p) {
0073   updated = false;
0074   chi2Sel->setProbMin(p);
0075   return;
0076 }
0077 
0078 void BPHDecayGenericBuilder::setMassFitMin(double m) {
0079   updated = false;
0080   mFitSel->setMassMin(m);
0081   return;
0082 }
0083 
0084 void BPHDecayGenericBuilder::setMassFitMax(double m) {
0085   updated = false;
0086   mFitSel->setMassMax(m);
0087   return;
0088 }
0089 
0090 void BPHDecayGenericBuilder::setMassFitRange(double mMin, double mMax) {
0091   updated = false;
0092   mFitSel->setMassMin(mMin);
0093   mFitSel->setMassMax(mMax);
0094   return;
0095 }