CMS 3D CMS Logo

BPHDecayToV0Builder.h
Go to the documentation of this file.
1 #ifndef HeavyFlavorAnalysis_SpecificDecay_BPHDecayToV0Builder_h
2 #define HeavyFlavorAnalysis_SpecificDecay_BPHDecayToV0Builder_h
3 
13 //----------------------
14 // Base Class Headers --
15 //----------------------
17 
18 //------------------------------------
19 // Collaborating Class Declarations --
20 //------------------------------------
24 
27 
29 
30 //---------------
31 // C++ Headers --
32 //---------------
33 #include <string>
34 #include <vector>
35 #include <map>
36 
37 // ---------------------
38 // -- Class Interface --
39 // ---------------------
40 
42 public:
44  struct V0Info {
46  const void* v0;
47  };
48 
52  const std::string& d1Name,
53  const std::string& d2Name,
54  const BPHRecoBuilder::BPHGenericCollection* d1Collection,
55  const BPHRecoBuilder::BPHGenericCollection* d2Collection);
57  const std::string& d1Name,
58  const std::string& d2Name,
59  const std::vector<reco::VertexCompositeCandidate>* v0Collection,
60  const std::string& searchList = "cfp");
62  const std::string& d1Name,
63  const std::string& d2Name,
64  const std::vector<reco::VertexCompositePtrCandidate>* vpCollection,
65  const std::string& searchList = "cfp");
66 
67  // deleted copy constructor and assignment operator
68  BPHDecayToV0Builder(const BPHDecayToV0Builder& x) = delete;
70 
73  ~BPHDecayToV0Builder() override;
74 
77  std::vector<BPHPlusMinusConstCandPtr> build();
79 
81  void setPtMin(double pt);
82  void setEtaMax(double eta);
83 
85  double getPtMin() const;
86  double getEtaMax() const;
87 
88 protected:
89  std::vector<BPHPlusMinusConstCandPtr> cList;
90 
93 
96  const std::vector<reco::VertexCompositeCandidate>* vCollection;
97  const std::vector<reco::VertexCompositePtrCandidate>* rCollection;
99 
100  double ptMin;
101  double etaMax;
102 
103  std::map<const BPHRecoCandidate*, const V0Info*> v0Map;
104 
106  virtual void buildFromBPHGenericCollection() = 0;
107  template <class T>
108  void buildFromV0(const T* v0Collection, v0Type type);
110  const reco::Candidate* c2,
111  const void* v0,
112  v0Type type) = 0;
113  void v0Clear();
114 };
115 
116 #endif
BPHDecayToV0Builder::VertexCompositePtrCandidate
Definition: BPHDecayToV0Builder.h:43
V0Monitor_cff.v0
v0
Definition: V0Monitor_cff.py:7
BPHDecayToV0Builder::V0Info
Definition: BPHDecayToV0Builder.h:44
BPHDecayToV0Builder::VertexCompositeCandidate
Definition: BPHDecayToV0Builder.h:43
BPHDecayToV0Builder::p2Name
std::string p2Name
Definition: BPHDecayToV0Builder.h:92
BPHDecayToV0Builder::BPHDecayToV0Builder
BPHDecayToV0Builder(const edm::EventSetup &es, const std::string &d1Name, const std::string &d2Name, const BPHRecoBuilder::BPHGenericCollection *d1Collection, const BPHRecoBuilder::BPHGenericCollection *d2Collection)
Definition: BPHDecayToV0Builder.cc:35
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
BPHDecayToV0Builder::v0Type
v0Type
Definition: BPHDecayToV0Builder.h:43
BPHPlusMinusCandidatePtr
BPHGenericPtr< BPHPlusMinusCandidate >::type BPHPlusMinusCandidatePtr
Definition: BPHPlusMinusCandidatePtr.h:7
BPHDecayToV0Builder::v0Map
std::map< const BPHRecoCandidate *, const V0Info * > v0Map
Definition: BPHDecayToV0Builder.h:103
BPHDecayToV0Builder
Definition: BPHDecayToV0Builder.h:41
BPHDecayToV0Builder::v0Clear
void v0Clear()
Definition: BPHDecayToV0Builder.cc:171
BPHDecayToV0Builder::getPtMin
double getPtMin() const
get current cuts
Definition: BPHDecayToV0Builder.cc:122
BPHDecayToV0Builder::~BPHDecayToV0Builder
~BPHDecayToV0Builder() override
Definition: BPHDecayToV0Builder.cc:86
DDAxes::x
BPHDecayToV0Builder::p1Name
std::string p1Name
Definition: BPHDecayToV0Builder.h:91
BPHDecayToV0Builder::rCollection
const std::vector< reco::VertexCompositePtrCandidate > * rCollection
Definition: BPHDecayToV0Builder.h:97
BPHDecayToV0Builder::operator=
BPHDecayToV0Builder & operator=(const BPHDecayToV0Builder &x)=delete
BPHDecayToV0Builder::ptMin
double ptMin
Definition: BPHDecayToV0Builder.h:100
BPHDecayToV0Builder::buildFromBPHGenericCollection
virtual void buildFromBPHGenericCollection()=0
build candidates and link to V0
BPHDecayToV0Builder::build
std::vector< BPHPlusMinusConstCandPtr > build()
build candidates
Definition: BPHDecayToV0Builder.cc:91
VertexCompositeCandidate.h
BPHDecayToV0Builder::V0Info::type
v0Type type
Definition: BPHDecayToV0Builder.h:45
PVValHelper::eta
Definition: PVValidationHelpers.h:69
BPHDecayToV0Builder::V0Info::v0
const void * v0
Definition: BPHDecayToV0Builder.h:46
BPHDecayToV0Builder::sList
std::string sList
Definition: BPHDecayToV0Builder.h:98
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
BPHDecayToV0Builder::buildCandidate
virtual BPHPlusMinusCandidatePtr buildCandidate(const reco::Candidate *c1, const reco::Candidate *c2, const void *v0, v0Type type)=0
BPHDecayToV0Builder::p1Collection
const BPHRecoBuilder::BPHGenericCollection * p1Collection
Definition: BPHDecayToV0Builder.h:94
Event.h
BPHDecayToV0Builder::buildFromV0
void buildFromV0(const T *v0Collection, v0Type type)
Definition: BPHDecayToV0Builder.cc:127
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
BPHVertexCompositePtrCandidate.h
alignmentValidation.c1
c1
do drawing
Definition: alignmentValidation.py:1025
newFWLiteAna.searchList
searchList
Definition: newFWLiteAna.py:119
BPHDecayToV0Builder::p2Collection
const BPHRecoBuilder::BPHGenericCollection * p2Collection
Definition: BPHDecayToV0Builder.h:95
BPHDecayToV0Builder::etaMax
double etaMax
Definition: BPHDecayToV0Builder.h:101
edm::EventSetup
Definition: EventSetup.h:57
BPHRecoBuilder.h
BPHDecayToV0Builder::vCollection
const std::vector< reco::VertexCompositeCandidate > * vCollection
Definition: BPHDecayToV0Builder.h:96
reco::Candidate
Definition: Candidate.h:27
BPHRecoBuilder::BPHGenericCollection
Definition: BPHRecoBuilder.h:70
BPHPlusMinusCandidate.h
T
long double T
Definition: Basic3DVectorLD.h:48
BPHDecayToV0Builder::cList
std::vector< BPHPlusMinusConstCandPtr > cList
Definition: BPHDecayToV0Builder.h:89
BPHDecayToV0Builder::setEtaMax
void setEtaMax(double eta)
Definition: BPHDecayToV0Builder.cc:115
BPHDecayGenericBuilder
Definition: BPHDecayGenericBuilder.h:36
BPHRecoCandidate.h
BPHDecayToV0Builder::setPtMin
void setPtMin(double pt)
set cuts
Definition: BPHDecayToV0Builder.cc:109
BPHDecayGenericBuilder.h
BPHDecayToV0Builder::getEtaMax
double getEtaMax() const
Definition: BPHDecayToV0Builder.cc:124