CMS 3D CMS Logo

BPHDecayToChargedXXbarBuilder.h
Go to the documentation of this file.
1 #ifndef HeavyFlavorAnalysis_SpecificDecay_BPHDecayToChargedXXbarBuilder_h
2 #define HeavyFlavorAnalysis_SpecificDecay_BPHDecayToChargedXXbarBuilder_h
3 
13 //----------------------
14 // Base Class Headers --
15 //----------------------
17 
18 //------------------------------------
19 // Collaborating Class Declarations --
20 //------------------------------------
24 
26 
29 class BPHChi2Select;
30 class BPHMassSelect;
31 
32 //---------------
33 // C++ Headers --
34 //---------------
35 #include <string>
36 #include <vector>
37 
38 // ---------------------
39 // -- Class Interface --
40 // ---------------------
41 
43 public:
47  const std::string& dPosName,
48  const std::string& dNegName,
49  double daugMass,
50  double daugSigma,
51  const BPHRecoBuilder::BPHGenericCollection* posCollection,
52  const BPHRecoBuilder::BPHGenericCollection* negCollection);
53 
54  // deleted copy constructor and assignment operator
57 
61 
64  std::vector<BPHPlusMinusConstCandPtr> build();
66 
68  void setPtMin(double pt);
69  void setEtaMax(double eta);
70  void setDzMax(double dz);
71 
73  double getPtMin() const;
74  double getEtaMax() const;
75  double getDzMax() const { return dzMax; }
76 
77 private:
80  double dMass;
81  double dSigma;
82 
85 
86  double ptMin;
87  double etaMax;
88  double dzMax;
89 
90  std::vector<BPHPlusMinusConstCandPtr> recList;
91 
92  class Particle {
93  public:
94  Particle(const reco::Candidate* c, const reco::Track* tk, double x, double y, double z, double e)
95  : cand(c), track(tk), px(x), py(y), pz(z), en(e) {}
98  double px;
99  double py;
100  double pz;
101  double en;
102  };
103  void addParticle(const BPHRecoBuilder::BPHGenericCollection* collection, int charge, std::vector<Particle*>& list);
104 };
105 
106 #endif
DDAxes::y
BPHDecayToChargedXXbarBuilder::Particle::Particle
Particle(const reco::Candidate *c, const reco::Track *tk, double x, double y, double z, double e)
Definition: BPHDecayToChargedXXbarBuilder.h:94
BPHDecayToChargedXXbarBuilder::pName
std::string pName
Definition: BPHDecayToChargedXXbarBuilder.h:78
BPHDecayToChargedXXbarBuilder::Particle::en
double en
Definition: BPHDecayToChargedXXbarBuilder.h:101
BPHDecayToChargedXXbarBuilder::Particle::track
const reco::Track * track
Definition: BPHDecayToChargedXXbarBuilder.h:97
BPHDecayToChargedXXbarBuilder::getPtMin
double getPtMin() const
get current cuts
BPHDecayToChargedXXbarBuilder::Particle::pz
double pz
Definition: BPHDecayToChargedXXbarBuilder.h:100
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
BPHDecayToChargedXXbarBuilder::Particle::cand
const reco::Candidate * cand
Definition: BPHDecayToChargedXXbarBuilder.h:96
BPHDecayToChargedXXbarBuilder::getDzMax
double getDzMax() const
Definition: BPHDecayToChargedXXbarBuilder.h:75
BPHDecayToChargedXXbarBuilder::addParticle
void addParticle(const BPHRecoBuilder::BPHGenericCollection *collection, int charge, std::vector< Particle * > &list)
Definition: BPHDecayToChargedXXbarBuilder.cc:156
DDAxes::x
BPHDecayToChargedXXbarBuilder::operator=
BPHDecayToChargedXXbarBuilder & operator=(const BPHDecayToChargedXXbarBuilder &x)=delete
BPHParticleEtaSelect
Definition: BPHParticleEtaSelect.h:30
BPHDecayToChargedXXbarBuilder::setDzMax
void setDzMax(double dz)
Definition: BPHDecayToChargedXXbarBuilder.cc:150
BPHDecayToChargedXXbarBuilder::etaMax
double etaMax
Definition: BPHDecayToChargedXXbarBuilder.h:87
BPHDecayToChargedXXbarBuilder::dSigma
double dSigma
Definition: BPHDecayToChargedXXbarBuilder.h:81
BPHDecayToChargedXXbarBuilder::Particle::px
double px
Definition: BPHDecayToChargedXXbarBuilder.h:98
BPHDecayToChargedXXbarBuilder::nName
std::string nName
Definition: BPHDecayToChargedXXbarBuilder.h:79
BPHDecayToChargedXXbarBuilder::pCollection
const BPHRecoBuilder::BPHGenericCollection * pCollection
Definition: BPHDecayToChargedXXbarBuilder.h:83
PVValHelper::eta
Definition: PVValidationHelpers.h:69
BPHDecayToChargedXXbarBuilder::dzMax
double dzMax
Definition: BPHDecayToChargedXXbarBuilder.h:88
DDAxes::z
reco::Track
Definition: Track.h:27
BPHMassSelect
Definition: BPHMassSelect.h:31
BPHDecayToChargedXXbarBuilder::BPHDecayToChargedXXbarBuilder
BPHDecayToChargedXXbarBuilder(const edm::EventSetup &es, const std::string &dPosName, const std::string &dNegName, double daugMass, double daugSigma, const BPHRecoBuilder::BPHGenericCollection *posCollection, const BPHRecoBuilder::BPHGenericCollection *negCollection)
Definition: BPHDecayToChargedXXbarBuilder.cc:39
BPHParticlePtSelect
Definition: BPHParticlePtSelect.h:30
BPHDecayToChargedXXbarBuilder::Particle::py
double py
Definition: BPHDecayToChargedXXbarBuilder.h:99
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ALCARECOTkAlJpsiMuMu_cff.charge
charge
Definition: ALCARECOTkAlJpsiMuMu_cff.py:47
Event.h
BPHDecayToChargedXXbarBuilder::build
std::vector< BPHPlusMinusConstCandPtr > build()
build Phi candidates
Definition: BPHDecayToChargedXXbarBuilder.cc:65
cand
Definition: decayParser.h:34
BPHDecayToChargedXXbarBuilder::ptMin
double ptMin
Definition: BPHDecayToChargedXXbarBuilder.h:86
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
reco::Candidate
Definition: Candidate.h:27
BPHRecoBuilder::BPHGenericCollection
Definition: BPHRecoBuilder.h:70
BPHDecayToChargedXXbarBuilder::~BPHDecayToChargedXXbarBuilder
~BPHDecayToChargedXXbarBuilder() override
Definition: BPHDecayToChargedXXbarBuilder.cc:60
BPHPlusMinusCandidate.h
BPHDecayToChargedXXbarBuilder::nCollection
const BPHRecoBuilder::BPHGenericCollection * nCollection
Definition: BPHDecayToChargedXXbarBuilder.h:84
PVValHelper::dz
Definition: PVValidationHelpers.h:50
BPHDecayGenericBuilder
Definition: BPHDecayGenericBuilder.h:36
BPHRecoCandidate.h
BPHDecayToChargedXXbarBuilder::setPtMin
void setPtMin(double pt)
set cuts
Definition: BPHDecayToChargedXXbarBuilder.cc:138
Particle
Definition: Particle.py:1
BPHDecayToChargedXXbarBuilder
Definition: BPHDecayToChargedXXbarBuilder.h:42
BPHDecayToChargedXXbarBuilder::dMass
double dMass
Definition: BPHDecayToChargedXXbarBuilder.h:80
BPHDecayToChargedXXbarBuilder::recList
std::vector< BPHPlusMinusConstCandPtr > recList
Definition: BPHDecayToChargedXXbarBuilder.h:90
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
BPHDecayToChargedXXbarBuilder::getEtaMax
double getEtaMax() const
BPHDecayGenericBuilder.h
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
BPHDecayToChargedXXbarBuilder::setEtaMax
void setEtaMax(double eta)
Definition: BPHDecayToChargedXXbarBuilder.cc:144