1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
#ifndef HeavyFlavorAnalysis_SpecificDecay_BPHDecayToChargedXXbarBuilder_h
#define HeavyFlavorAnalysis_SpecificDecay_BPHDecayToChargedXXbarBuilder_h
/** \class BPHDecayToChargedXXbarBuilder
*
* Description:
* Class to build a decay to an oppositely charged
* particle-antiparticle pair
*
* \author Paolo Ronchese INFN Padova
*
*/
//----------------------
// Base Class Headers --
//----------------------
#include "HeavyFlavorAnalysis/SpecificDecay/interface/BPHDecayGenericBuilderBase.h"
#include "HeavyFlavorAnalysis/SpecificDecay/interface/BPHDecayGenericBuilder.h"
//------------------------------------
// Collaborating Class Declarations --
//------------------------------------
#include "HeavyFlavorAnalysis/RecoDecay/interface/BPHRecoBuilder.h"
#include "HeavyFlavorAnalysis/RecoDecay/interface/BPHRecoCandidate.h"
#include "HeavyFlavorAnalysis/RecoDecay/interface/BPHPlusMinusCandidate.h"
class BPHEventSetupWrapper;
class BPHParticlePtSelect;
class BPHParticleEtaSelect;
class BPHChi2Select;
class BPHMassSelect;
//---------------
// C++ Headers --
//---------------
#include <string>
#include <vector>
// ---------------------
// -- Class Interface --
// ---------------------
class BPHDecayToChargedXXbarBuilder : public virtual BPHDecayGenericBuilderBase,
public virtual BPHDecayGenericBuilder<BPHPlusMinusCandidate> {
public:
/** Constructor
*/
BPHDecayToChargedXXbarBuilder(const BPHEventSetupWrapper& es,
const std::string& dPosName,
const std::string& dNegName,
double daugMass,
double daugSigma,
const BPHRecoBuilder::BPHGenericCollection* posCollection,
const BPHRecoBuilder::BPHGenericCollection* negCollection);
// deleted copy constructor and assignment operator
BPHDecayToChargedXXbarBuilder(const BPHDecayToChargedXXbarBuilder& x) = delete;
BPHDecayToChargedXXbarBuilder& operator=(const BPHDecayToChargedXXbarBuilder& x) = delete;
/** Destructor
*/
~BPHDecayToChargedXXbarBuilder() override = default;
/** Operations
*/
/// set cuts
void setPtMin(double pt);
void setEtaMax(double eta);
void setDzMax(double dz);
/// get current cuts
double getPtMin() const { return ptMin; }
double getEtaMax() const { return etaMax; }
double getDzMax() const { return dzMax; }
protected:
double ptMin;
double etaMax;
double dzMax;
/// build candidates
void fillRecList() override;
protected:
std::string pName;
std::string nName;
double dMass;
double dSigma;
const BPHRecoBuilder::BPHGenericCollection* pCollection;
const BPHRecoBuilder::BPHGenericCollection* nCollection;
private:
class Particle {
public:
Particle(const reco::Candidate* c, const reco::Track* tk, double x, double y, double z, double e)
: cand(c), track(tk), px(x), py(y), pz(z), en(e) {}
const reco::Candidate* cand;
const reco::Track* track;
double px;
double py;
double pz;
double en;
};
void addParticle(const BPHRecoBuilder::BPHGenericCollection* collection, int charge, std::vector<Particle*>& list);
};
#endif
|