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/BPHDecayToResFlyingBuilderBase.h"
0012 
0013 //-------------------------------
0014 // Collaborating Class Headers --
0015 //-------------------------------
0016 #include "HeavyFlavorAnalysis/SpecificDecay/interface/BPHDecayGenericBuilderBase.h"
0017 #include "HeavyFlavorAnalysis/RecoDecay/interface/BPHRecoBuilder.h"
0018 #include "HeavyFlavorAnalysis/RecoDecay/interface/BPHPlusMinusCandidate.h"
0019 #include "HeavyFlavorAnalysis/RecoDecay/interface/BPHRecoCandidate.h"
0020 
0021 //---------------
0022 // C++ Headers --
0023 //---------------
0024 using namespace std;
0025 
0026 //-------------------
0027 // Initializations --
0028 //-------------------
0029 
0030 //----------------
0031 // Constructors --
0032 //----------------
0033 BPHDecayToResFlyingBuilderBase::BPHDecayToResFlyingBuilderBase(const BPHEventSetupWrapper& es,
0034                                                                const string& resName,
0035                                                                double resMass,
0036                                                                double resWidth,
0037                                                                const string& flyName,
0038                                                                double flyMass,
0039                                                                double flyMSigma)
0040     : BPHDecayGenericBuilderBase(es, nullptr),
0041       BPHDecayConstrainedBuilderBase(resName, resMass, resWidth),
0042       BPHDecayToFlyingCascadeBuilderBase(flyName, flyMass, flyMSigma) {}
0043 
0044 BPHDecayToResFlyingBuilderBase::BPHDecayToResFlyingBuilderBase() {}
0045 
0046 //--------------
0047 // Operations --
0048 //--------------
0049 /// build candidates
0050 void BPHDecayToResFlyingBuilderBase::fill(BPHRecoBuilder& brb, void* parameters) {
0051   brb.setMinPDiffererence(minPDiff);
0052   addResCollection(brb);
0053   addFlyCollection(brb);
0054 
0055   if (massSel->getMassMax() >= 0.0)
0056     brb.filter(*massSel);
0057 
0058   setup(parameters);
0059 
0060   return;
0061 }