Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef HeavyFlavorAnalysis_SpecificDecay_BPHLambda0ToPPiBuilder_h
0002 #define HeavyFlavorAnalysis_SpecificDecay_BPHLambda0ToPPiBuilder_h
0003 /** \class BPHLambda0ToPPiBuilder
0004  *
0005  *  Description: 
0006  *     Class to build Lambda0 to p pi candidates
0007  *
0008  *  \author Paolo Ronchese INFN Padova
0009  *
0010  */
0011 
0012 //----------------------
0013 // Base Class Headers --
0014 //----------------------
0015 #include "HeavyFlavorAnalysis/SpecificDecay/interface/BPHDecayToV0DiffMassBuilder.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 BPHLambda0ToPPiBuilder : public BPHDecayToV0DiffMassBuilder {
0038 public:
0039   /** Constructor
0040    */
0041   BPHLambda0ToPPiBuilder(const edm::EventSetup& es,
0042                          const BPHRecoBuilder::BPHGenericCollection* protonCollection,
0043                          const BPHRecoBuilder::BPHGenericCollection* pionCollection)
0044       : BPHDecayToV0DiffMassBuilder(es,
0045                                     "Proton",
0046                                     BPHParticleMasses::protonMass,
0047                                     BPHParticleMasses::protonMSigma,
0048                                     "Pion",
0049                                     BPHParticleMasses::pionMass,
0050                                     BPHParticleMasses::pionMSigma,
0051                                     protonCollection,
0052                                     pionCollection,
0053                                     BPHParticleMasses::lambda0Mass) {
0054     setPtMin(0.7);
0055     setEtaMax(10.0);
0056     setMassRange(0.80, 1.40);
0057   }
0058   BPHLambda0ToPPiBuilder(const edm::EventSetup& es,
0059                          const std::vector<reco::VertexCompositeCandidate>* v0Collection,
0060                          const std::string& searchList = "cfp")
0061       : BPHDecayToV0DiffMassBuilder(es,
0062                                     "Proton",
0063                                     BPHParticleMasses::protonMass,
0064                                     BPHParticleMasses::protonMSigma,
0065                                     "Pion",
0066                                     BPHParticleMasses::pionMass,
0067                                     BPHParticleMasses::pionMSigma,
0068                                     v0Collection,
0069                                     BPHParticleMasses::lambda0Mass) {
0070     setPtMin(0.0);
0071     setEtaMax(10.0);
0072     setMassRange(0.00, 3.00);
0073   }
0074   BPHLambda0ToPPiBuilder(const edm::EventSetup& es,
0075                          const std::vector<reco::VertexCompositePtrCandidate>* vpCollection,
0076                          const std::string& searchList = "cfp")
0077       : BPHDecayToV0DiffMassBuilder(es,
0078                                     "Proton",
0079                                     BPHParticleMasses::protonMass,
0080                                     BPHParticleMasses::protonMSigma,
0081                                     "Pion",
0082                                     BPHParticleMasses::pionMass,
0083                                     BPHParticleMasses::pionMSigma,
0084                                     vpCollection,
0085                                     BPHParticleMasses::lambda0Mass) {
0086     setPtMin(0.0);
0087     setEtaMax(10.0);
0088     setMassRange(0.00, 3.00);
0089   }
0090 
0091   // deleted copy constructor and assignment operator
0092   BPHLambda0ToPPiBuilder(const BPHLambda0ToPPiBuilder& x) = delete;
0093   BPHLambda0ToPPiBuilder& operator=(const BPHLambda0ToPPiBuilder& x) = delete;
0094 
0095   /** Destructor
0096    */
0097   ~BPHLambda0ToPPiBuilder() override {}
0098 };
0099 
0100 #endif