Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-07-08 01:45:58

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/BPHDecayGenericBuilderBase.h"
0012 
0013 //-------------------------------
0014 // Collaborating Class Headers --
0015 //-------------------------------
0016 #include "HeavyFlavorAnalysis/RecoDecay/interface/BPHAnalyzerTokenWrapper.h"
0017 
0018 //---------------
0019 // C++ Headers --
0020 //---------------
0021 using namespace std;
0022 
0023 //-------------------
0024 // Initializations --
0025 //-------------------
0026 
0027 //----------------
0028 // Constructors --
0029 //----------------
0030 BPHDecayGenericBuilderBase::BPHDecayGenericBuilderBase()
0031     : evSetup(nullptr),
0032       massSel(new BPHMassSelect(-2.0e+06, -1.0e+06)),
0033       chi2Sel(new BPHChi2Select(-1.0)),
0034       mFitSel(nullptr),
0035       minPDiff(1.0e-4),
0036       outdated(true) {}
0037 
0038 BPHDecayGenericBuilderBase::BPHDecayGenericBuilderBase(const BPHEventSetupWrapper& es, BPHMassFitSelect* mfs)
0039     : BPHDecayGenericBuilderBase() {
0040   evSetup = new BPHEventSetupWrapper(es);
0041   mFitSel = mfs;
0042 }
0043 
0044 //--------------
0045 // Destructor --
0046 //--------------
0047 BPHDecayGenericBuilderBase::~BPHDecayGenericBuilderBase() {
0048   delete massSel;
0049   delete chi2Sel;
0050   delete mFitSel;
0051   delete evSetup;
0052 }
0053 
0054 //--------------
0055 // Operations --
0056 //--------------
0057 /// set cuts
0058 void BPHDecayGenericBuilderBase::setMassMin(double m) {
0059   outdated = true;
0060   massSel->setMassMin(m);
0061   return;
0062 }
0063 
0064 void BPHDecayGenericBuilderBase::setMassMax(double m) {
0065   outdated = true;
0066   massSel->setMassMax(m);
0067   return;
0068 }
0069 
0070 void BPHDecayGenericBuilderBase::setMassRange(double mMin, double mMax) {
0071   outdated = true;
0072   massSel->setMassMin(mMin);
0073   massSel->setMassMax(mMax);
0074   return;
0075 }
0076 
0077 void BPHDecayGenericBuilderBase::setProbMin(double p) {
0078   outdated = true;
0079   chi2Sel->setProbMin(p);
0080   return;
0081 }
0082 
0083 void BPHDecayGenericBuilderBase::setMassFitMin(double m) {
0084   outdated = true;
0085   mFitSel->setMassMin(m);
0086   return;
0087 }
0088 
0089 void BPHDecayGenericBuilderBase::setMassFitMax(double m) {
0090   outdated = true;
0091   mFitSel->setMassMax(m);
0092   return;
0093 }
0094 
0095 void BPHDecayGenericBuilderBase::setMassFitRange(double mMin, double mMax) {
0096   outdated = true;
0097   mFitSel->setMassMin(mMin);
0098   mFitSel->setMassMax(mMax);
0099   return;
0100 }