CMS 3D CMS Logo

BPHDecayToTkpTknSymChargeBuilder.h
Go to the documentation of this file.
1 #ifndef HeavyFlavorAnalysis_SpecificDecay_BPHDecayToTkpTknSymChargeBuilder_h
2 #define HeavyFlavorAnalysis_SpecificDecay_BPHDecayToTkpTknSymChargeBuilder_h
3 
14 //----------------------
15 // Base Class Headers --
16 //----------------------
18 
19 //------------------------------------
20 // Collaborating Class Declarations --
21 //------------------------------------
25 
27 
30 class BPHChi2Select;
31 class BPHMassSelect;
32 
33 //---------------
34 // C++ Headers --
35 //---------------
36 #include <string>
37 #include <vector>
38 
39 // ---------------------
40 // -- Class Interface --
41 // ---------------------
42 
44 public:
48  const std::string& daug1Name,
49  double daug1Mass,
50  double daug1Sigma,
51  const std::string& daug2Name,
52  double daug2Mass,
53  double daug2Sigma,
54  const BPHRecoBuilder::BPHGenericCollection* posCollection,
55  const BPHRecoBuilder::BPHGenericCollection* negCollection,
56  double expectedMass);
57 
58  // deleted copy constructor and assignment operator
61 
65 
68  std::vector<BPHPlusMinusConstCandPtr> build();
70 
72  void setTrk1PtMin(double pt);
73  void setTrk2PtMin(double pt);
74  void setTrk1EtaMax(double eta);
75  void setTrk2EtaMax(double eta);
76  void setDzMax(double dz);
77 
79  double getTrk1PtMin() const { return pt1Min; }
80  double getTrk2PtMin() const { return pt2Min; }
81  double getTrk1EtaMax() const { return eta1Max; }
82  double getTrk2EtaMax() const { return eta2Max; }
83  double getDzMax() const { return dzMax; }
84 
85 private:
87  double d1Mass;
88  double d1Sigma;
90  double d2Mass;
91  double d2Sigma;
92  double eMass;
93 
96 
97  double pt1Min;
98  double pt2Min;
99  double eta1Max;
100  double eta2Max;
101  double dzMax;
102 
103  std::vector<BPHPlusMinusConstCandPtr> recList;
104 
105  class Particle {
106  public:
107  Particle(const reco::Candidate* c, const reco::Track* tk, double x, double y, double z, double f, double g)
108  : cand(c), track(tk), px(x), py(y), pz(z), e1(f), e2(g) {}
111  double px;
112  double py;
113  double pz;
114  double e1;
115  double e2;
116  };
117  void addParticle(const BPHRecoBuilder::BPHGenericCollection* collection, int charge, std::vector<Particle*>& list);
118 };
119 
120 #endif
DDAxes::y
BPHDecayToTkpTknSymChargeBuilder::getTrk2EtaMax
double getTrk2EtaMax() const
Definition: BPHDecayToTkpTknSymChargeBuilder.h:82
BPHDecayToTkpTknSymChargeBuilder::Particle::py
double py
Definition: BPHDecayToTkpTknSymChargeBuilder.h:112
BPHDecayToTkpTknSymChargeBuilder::addParticle
void addParticle(const BPHRecoBuilder::BPHGenericCollection *collection, int charge, std::vector< Particle * > &list)
Definition: BPHDecayToTkpTknSymChargeBuilder.cc:206
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
BPHDecayToTkpTknSymChargeBuilder::getTrk1EtaMax
double getTrk1EtaMax() const
Definition: BPHDecayToTkpTknSymChargeBuilder.h:81
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
BPHDecayToTkpTknSymChargeBuilder::getDzMax
double getDzMax() const
Definition: BPHDecayToTkpTknSymChargeBuilder.h:83
BPHDecayToTkpTknSymChargeBuilder::Particle::track
const reco::Track * track
Definition: BPHDecayToTkpTknSymChargeBuilder.h:110
BPHDecayToTkpTknSymChargeBuilder::d1Name
std::string d1Name
Definition: BPHDecayToTkpTknSymChargeBuilder.h:86
BPHDecayToTkpTknSymChargeBuilder::dzMax
double dzMax
Definition: BPHDecayToTkpTknSymChargeBuilder.h:101
BPHDecayToTkpTknSymChargeBuilder::Particle::cand
const reco::Candidate * cand
Definition: BPHDecayToTkpTknSymChargeBuilder.h:109
BPHDecayToTkpTknSymChargeBuilder::Particle::e1
double e1
Definition: BPHDecayToTkpTknSymChargeBuilder.h:114
BPHDecayToTkpTknSymChargeBuilder::nCollection
const BPHRecoBuilder::BPHGenericCollection * nCollection
Definition: BPHDecayToTkpTknSymChargeBuilder.h:95
BPHDecayToTkpTknSymChargeBuilder::pt1Min
double pt1Min
Definition: BPHDecayToTkpTknSymChargeBuilder.h:97
DDAxes::x
BPHDecayToTkpTknSymChargeBuilder::Particle::pz
double pz
Definition: BPHDecayToTkpTknSymChargeBuilder.h:113
BPHDecayToTkpTknSymChargeBuilder::d2Name
std::string d2Name
Definition: BPHDecayToTkpTknSymChargeBuilder.h:89
BPHParticleEtaSelect
Definition: BPHParticleEtaSelect.h:30
BPHDecayToTkpTknSymChargeBuilder::setTrk1EtaMax
void setTrk1EtaMax(double eta)
Definition: BPHDecayToTkpTknSymChargeBuilder.cc:188
BPHDecayToTkpTknSymChargeBuilder::eta2Max
double eta2Max
Definition: BPHDecayToTkpTknSymChargeBuilder.h:100
PVValHelper::eta
Definition: PVValidationHelpers.h:69
BPHDecayToTkpTknSymChargeBuilder::pt2Min
double pt2Min
Definition: BPHDecayToTkpTknSymChargeBuilder.h:98
DDAxes::z
reco::Track
Definition: Track.h:27
BPHDecayToTkpTknSymChargeBuilder::getTrk2PtMin
double getTrk2PtMin() const
Definition: BPHDecayToTkpTknSymChargeBuilder.h:80
BPHMassSelect
Definition: BPHMassSelect.h:31
BPHParticlePtSelect
Definition: BPHParticlePtSelect.h:30
BPHDecayToTkpTknSymChargeBuilder::operator=
BPHDecayToTkpTknSymChargeBuilder & operator=(const BPHDecayToTkpTknSymChargeBuilder &x)=delete
BPHDecayToTkpTknSymChargeBuilder::recList
std::vector< BPHPlusMinusConstCandPtr > recList
Definition: BPHDecayToTkpTknSymChargeBuilder.h:103
BPHDecayToTkpTknSymChargeBuilder::d1Mass
double d1Mass
Definition: BPHDecayToTkpTknSymChargeBuilder.h:87
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
BPHDecayToTkpTknSymChargeBuilder::~BPHDecayToTkpTknSymChargeBuilder
~BPHDecayToTkpTknSymChargeBuilder() override
Definition: BPHDecayToTkpTknSymChargeBuilder.cc:70
ALCARECOTkAlJpsiMuMu_cff.charge
charge
Definition: ALCARECOTkAlJpsiMuMu_cff.py:47
BPHDecayToTkpTknSymChargeBuilder::Particle::e2
double e2
Definition: BPHDecayToTkpTknSymChargeBuilder.h:115
BPHDecayToTkpTknSymChargeBuilder::pCollection
const BPHRecoBuilder::BPHGenericCollection * pCollection
Definition: BPHDecayToTkpTknSymChargeBuilder.h:94
Event.h
BPHDecayToTkpTknSymChargeBuilder::setTrk2EtaMax
void setTrk2EtaMax(double eta)
Definition: BPHDecayToTkpTknSymChargeBuilder.cc:194
cand
Definition: decayParser.h:34
BPHDecayToTkpTknSymChargeBuilder::eMass
double eMass
Definition: BPHDecayToTkpTknSymChargeBuilder.h:92
universalConfigTemplate.collection
collection
Definition: universalConfigTemplate.py:81
edm::EventSetup
Definition: EventSetup.h:57
BPHChi2Select
Definition: BPHChi2Select.h:31
BPHRecoBuilder.h
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
BPHDecayToTkpTknSymChargeBuilder::d1Sigma
double d1Sigma
Definition: BPHDecayToTkpTknSymChargeBuilder.h:88
BPHDecayToTkpTknSymChargeBuilder::Particle::Particle
Particle(const reco::Candidate *c, const reco::Track *tk, double x, double y, double z, double f, double g)
Definition: BPHDecayToTkpTknSymChargeBuilder.h:107
BPHDecayToTkpTknSymChargeBuilder::BPHDecayToTkpTknSymChargeBuilder
BPHDecayToTkpTknSymChargeBuilder(const edm::EventSetup &es, const std::string &daug1Name, double daug1Mass, double daug1Sigma, const std::string &daug2Name, double daug2Mass, double daug2Sigma, const BPHRecoBuilder::BPHGenericCollection *posCollection, const BPHRecoBuilder::BPHGenericCollection *negCollection, double expectedMass)
Definition: BPHDecayToTkpTknSymChargeBuilder.cc:40
reco::Candidate
Definition: Candidate.h:27
BPHRecoBuilder::BPHGenericCollection
Definition: BPHRecoBuilder.h:70
BPHDecayToTkpTknSymChargeBuilder::d2Mass
double d2Mass
Definition: BPHDecayToTkpTknSymChargeBuilder.h:90
BPHDecayToTkpTknSymChargeBuilder::setDzMax
void setDzMax(double dz)
Definition: BPHDecayToTkpTknSymChargeBuilder.cc:200
BPHPlusMinusCandidate.h
PVValHelper::dz
Definition: PVValidationHelpers.h:50
BPHDecayToTkpTknSymChargeBuilder::setTrk2PtMin
void setTrk2PtMin(double pt)
Definition: BPHDecayToTkpTknSymChargeBuilder.cc:182
BPHDecayGenericBuilder
Definition: BPHDecayGenericBuilder.h:36
BPHRecoCandidate.h
BPHDecayToTkpTknSymChargeBuilder::getTrk1PtMin
double getTrk1PtMin() const
get current cuts
Definition: BPHDecayToTkpTknSymChargeBuilder.h:79
Particle
Definition: Particle.py:1
list
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*", "!HLTx*" if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL. It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of "!*" before the partial wildcard feature was incorporated). Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run
BPHDecayToTkpTknSymChargeBuilder::Particle::px
double px
Definition: BPHDecayToTkpTknSymChargeBuilder.h:111
BPHDecayToTkpTknSymChargeBuilder::eta1Max
double eta1Max
Definition: BPHDecayToTkpTknSymChargeBuilder.h:99
BPHDecayToTkpTknSymChargeBuilder::build
std::vector< BPHPlusMinusConstCandPtr > build()
build candidates
Definition: BPHDecayToTkpTknSymChargeBuilder.cc:75
BPHDecayGenericBuilder.h
BPHDecayToTkpTknSymChargeBuilder::setTrk1PtMin
void setTrk1PtMin(double pt)
set cuts
Definition: BPHDecayToTkpTknSymChargeBuilder.cc:176
BPHDecayToTkpTknSymChargeBuilder
Definition: BPHDecayToTkpTknSymChargeBuilder.h:43
g
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4
BPHDecayToTkpTknSymChargeBuilder::d2Sigma
double d2Sigma
Definition: BPHDecayToTkpTknSymChargeBuilder.h:91