File indexing completed on 2024-04-06 12:15:35
0001 #ifndef HeavyFlavorAnalysis_SpecificDecay_BPHK0sToPiPiBuilder_h
0002 #define HeavyFlavorAnalysis_SpecificDecay_BPHK0sToPiPiBuilder_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #include "HeavyFlavorAnalysis/SpecificDecay/interface/BPHDecayToV0SameMassBuilder.h"
0016
0017
0018
0019
0020 #include "HeavyFlavorAnalysis/SpecificDecay/interface/BPHDecayGenericBuilderBase.h"
0021 #include "HeavyFlavorAnalysis/SpecificDecay/interface/BPHParticleMasses.h"
0022 #include "HeavyFlavorAnalysis/RecoDecay/interface/BPHRecoBuilder.h"
0023 #include "HeavyFlavorAnalysis/RecoDecay/interface/BPHRecoCandidate.h"
0024 #include "HeavyFlavorAnalysis/RecoDecay/interface/BPHPlusMinusCandidate.h"
0025
0026 #include "FWCore/Framework/interface/EventSetup.h"
0027
0028 class BPHEventSetupWrapper;
0029
0030
0031
0032
0033 #include <string>
0034 #include <vector>
0035
0036
0037
0038
0039
0040 class BPHK0sToPiPiBuilder : public BPHDecayToV0SameMassBuilder {
0041 public:
0042
0043
0044 BPHK0sToPiPiBuilder(const BPHEventSetupWrapper& es,
0045 const BPHRecoBuilder::BPHGenericCollection* posCollection,
0046 const BPHRecoBuilder::BPHGenericCollection* negCollection)
0047 : BPHDecayGenericBuilderBase(es),
0048 BPHDecayToV0SameMassBuilder(es,
0049 "PionPos",
0050 "PionNeg",
0051 BPHParticleMasses::pionMass,
0052 BPHParticleMasses::pionMSigma,
0053 posCollection,
0054 negCollection) {
0055 setPtMin(0.7);
0056 setEtaMax(10.0);
0057 setMassRange(0.40, 0.60);
0058 }
0059
0060 template <class V0VertexType>
0061 BPHK0sToPiPiBuilder(const BPHEventSetupWrapper& es,
0062 const std::vector<V0VertexType>* v0Collection,
0063 const std::string& searchList = "cfp")
0064 : BPHDecayGenericBuilderBase(es),
0065 BPHDecayToV0SameMassBuilder(es,
0066 "PionPos",
0067 "PionNeg",
0068 BPHParticleMasses::pionMass,
0069 BPHParticleMasses::pionMSigma,
0070 v0Collection,
0071 searchList) {
0072 setPtMin(0.0);
0073 setEtaMax(10.0);
0074 setMassRange(0.00, 2.00);
0075 }
0076
0077
0078 BPHK0sToPiPiBuilder(const BPHK0sToPiPiBuilder& x) = delete;
0079 BPHK0sToPiPiBuilder& operator=(const BPHK0sToPiPiBuilder& x) = delete;
0080
0081
0082
0083 ~BPHK0sToPiPiBuilder() override = default;
0084 };
0085
0086 #endif