Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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