CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Member Functions | Private Attributes
BPHPlusMinusVertex Class Reference

#include <BPHPlusMinusVertex.h>

Inheritance diagram for BPHPlusMinusVertex:
BPHDecayVertex BPHDecayMomentum BPHPlusMinusCandidate

Public Member Functions

 BPHPlusMinusVertex (const BPHPlusMinusVertex &x)=delete
 
virtual const
ClosestApproachInRPhi
cAppInRPhi () const
 compute distance of closest approach More...
 
BPHPlusMinusVertexoperator= (const BPHPlusMinusVertex &x)=delete
 
 ~BPHPlusMinusVertex () override
 
- Public Member Functions inherited from BPHDecayVertex
 BPHDecayVertex (const BPHDecayVertex &x)=delete
 
const edm::EventSetupgetEventSetup () const
 retrieve EventSetup More...
 
const reco::TrackgetTrack (const reco::Candidate *cand) const
 get Track for a daughter More...
 
const std::string & getTrackSearchList (const reco::Candidate *cand) const
 retrieve track search list More...
 
reco::TransientTrackgetTransientTrack (const reco::Candidate *cand) const
 get TransientTrack for a daughter More...
 
BPHDecayVertexoperator= (const BPHDecayVertex &x)=delete
 
const std::vector< const
reco::Track * > & 
tracks () const
 get list of Tracks More...
 
const std::vector
< reco::TransientTrack > & 
transientTracks () const
 get list of TransientTracks More...
 
virtual bool validTracks () const
 check for valid reconstructed vertex More...
 
virtual bool validVertex () const
 
virtual const reco::Vertexvertex (VertexFitter< 5 > *fitter=nullptr, const reco::BeamSpot *bs=nullptr, const GlobalPoint *priorPos=nullptr, const GlobalError *priorError=nullptr) const
 get reconstructed vertex More...
 
 ~BPHDecayVertex () override
 
- Public Member Functions inherited from BPHDecayMomentum
 BPHDecayMomentum (const BPHDecayMomentum &x)=delete
 
virtual const std::vector
< std::string > & 
compNames () const
 
virtual const
pat::CompositeCandidate
composite () const
 get a composite by the simple sum of simple particles More...
 
virtual const std::vector
< BPHRecoConstCandPtr > & 
daughComp () const
 
virtual const std::vector
< const reco::Candidate * > & 
daughFull () const
 
virtual const std::vector
< const reco::Candidate * > & 
daughters () const
 
virtual const std::vector
< std::string > & 
daugNames () const
 
virtual BPHRecoConstCandPtr getComp (const std::string &name) const
 
virtual const reco::CandidategetDaug (const std::string &name) const
 
BPHDecayMomentumoperator= (const BPHDecayMomentum &x)=delete
 
virtual const reco::CandidateoriginalReco (const reco::Candidate *daug) const
 get the original particle from the clone More...
 
virtual ~BPHDecayMomentum ()
 

Protected Member Functions

 BPHPlusMinusVertex (const edm::EventSetup *es)
 
bool chkSize (const std::string &msg) const
 
void setNotUpdated () const override
 
- Protected Member Functions inherited from BPHDecayVertex
virtual void addV (const std::string &name, const reco::Candidate *daug, const std::string &searchList, double mass)
 
virtual void addV (const std::string &name, const BPHRecoConstCandPtr &comp)
 add a previously reconstructed particle giving it a name More...
 
 BPHDecayVertex (const edm::EventSetup *es)
 
 BPHDecayVertex (const BPHDecayVertex *ptr, const edm::EventSetup *es)
 
- Protected Member Functions inherited from BPHDecayMomentum
virtual void addP (const std::string &name, const reco::Candidate *daug, double mass=-1.0)
 
virtual void addP (const std::string &name, const BPHRecoConstCandPtr &comp)
 add a previously reconstructed particle giving it a name More...
 
 BPHDecayMomentum ()
 
 BPHDecayMomentum (const std::map< std::string, Component > &daugMap)
 
 BPHDecayMomentum (const std::map< std::string, Component > &daugMap, const std::map< std::string, BPHRecoConstCandPtr > compMap)
 
const std::vector< Component > & componentList () const
 
virtual void fill (BPHRecoCandidate *ptr, int level) const =0
 

Static Protected Member Functions

template<class T >
static bool chkName (const T &cont, const std::string &name, const std::string &msg)
 
template<class T >
static bool chkSize (const T &cont, const std::string &msg)
 

Private Member Functions

virtual void computeApp () const
 

Private Attributes

ClosestApproachInRPhiinRPhi
 
bool oldA
 

Detailed Description

Description: class for reconstructed decay vertices to opposite charge particle pairs

Author
Paolo Ronchese INFN Padova

Definition at line 33 of file BPHPlusMinusVertex.h.

Constructor & Destructor Documentation

BPHPlusMinusVertex::BPHPlusMinusVertex ( const BPHPlusMinusVertex x)
delete

Constructor is protected this object can exist only as part of a derived class

BPHPlusMinusVertex::~BPHPlusMinusVertex ( )
override

Destructor

Definition at line 35 of file BPHPlusMinusVertex.cc.

References inRPhi.

35 { delete inRPhi; }
ClosestApproachInRPhi * inRPhi
BPHPlusMinusVertex::BPHPlusMinusVertex ( const edm::EventSetup es)
protected

Definition at line 30 of file BPHPlusMinusVertex.cc.

30 : BPHDecayVertex(es), oldA(true), inRPhi(nullptr) {}
BPHDecayVertex(const BPHDecayVertex &x)=delete
ClosestApproachInRPhi * inRPhi

Member Function Documentation

const ClosestApproachInRPhi & BPHPlusMinusVertex::cAppInRPhi ( ) const
virtual

compute distance of closest approach

Operations

Definition at line 40 of file BPHPlusMinusVertex.cc.

References computeApp(), inRPhi, and oldA.

40  {
41  if (oldA)
42  computeApp();
43  if (inRPhi == nullptr) {
44  static const ClosestApproachInRPhi ca;
45  return ca;
46  }
47  return *inRPhi;
48 }
virtual void computeApp() const
ClosestApproachInRPhi * inRPhi
template<class T >
bool BPHPlusMinusVertex::chkName ( const T cont,
const std::string &  name,
const std::string &  msg 
)
staticprotected

Definition at line 75 of file BPHPlusMinusVertex.h.

75  {
76  if (cont.find(name) != cont.end())
77  return true;
78  edm::LogPrint("ParticleNotFound") << msg << ", " << name << " not found";
79  return false;
80 }
tuple cont
load Luminosity info ##
Definition: generateEDF.py:628
Log< level::Warning, true > LogPrint
tuple msg
Definition: mps_check.py:285
template<class T >
bool BPHPlusMinusVertex::chkSize ( const T cont,
const std::string &  msg 
)
staticprotected

Definition at line 83 of file BPHPlusMinusVertex.h.

References dqmiodumpmetadata::n.

Referenced by BPHPlusMinusCandidate::composite(), computeApp(), BPHPlusMinusCandidate::isCowboy(), and BPHPlusMinusCandidate::isSailor().

83  {
84  int n = cont.size();
85  if (n == 2)
86  return true;
87  edm::LogPrint("WrongDataSize") << msg << ", size = " << n;
88  return false;
89 }
tuple cont
load Luminosity info ##
Definition: generateEDF.py:628
Log< level::Warning, true > LogPrint
tuple msg
Definition: mps_check.py:285
bool BPHPlusMinusVertex::chkSize ( const std::string &  msg) const
protected
void BPHPlusMinusVertex::computeApp ( ) const
privatevirtual

Definition at line 58 of file BPHPlusMinusVertex.cc.

References ClosestApproachInRPhi::calculate(), chkSize(), reco::TransientTrack::impactPointTSCP(), inRPhi, oldA, TrajectoryStateClosestToPoint::theState(), and BPHDecayVertex::transientTracks().

Referenced by cAppInRPhi().

58  {
59  static const string msg = "BPHPlusMinusVertex::computeApp: incomplete, no closest approach available";
60  delete inRPhi;
61  if (!chkSize(msg)) {
62  inRPhi = nullptr;
63  return;
64  }
66  const vector<reco::TransientTrack>& ttk = transientTracks();
67  const reco::TransientTrack& ttp = ttk[0];
68  const reco::TransientTrack& ttn = ttk[1];
70  oldA = false;
71  return;
72 }
TrajectoryStateClosestToPoint impactPointTSCP() const
const FreeTrajectoryState & theState() const
static bool chkSize(const T &cont, const std::string &msg)
bool calculate(const TrajectoryStateOnSurface &sta, const TrajectoryStateOnSurface &stb) override
tuple msg
Definition: mps_check.py:285
const std::vector< reco::TransientTrack > & transientTracks() const
get list of TransientTracks
ClosestApproachInRPhi * inRPhi
BPHPlusMinusVertex& BPHPlusMinusVertex::operator= ( const BPHPlusMinusVertex x)
delete
void BPHPlusMinusVertex::setNotUpdated ( ) const
overrideprotectedvirtual

Reimplemented from BPHDecayVertex.

Definition at line 52 of file BPHPlusMinusVertex.cc.

References oldA, and BPHDecayVertex::setNotUpdated().

Referenced by BPHPlusMinusCandidate::setNotUpdated().

52  {
54  oldA = true;
55  return;
56 }
void setNotUpdated() const override

Member Data Documentation

ClosestApproachInRPhi* BPHPlusMinusVertex::inRPhi
mutableprivate

Definition at line 68 of file BPHPlusMinusVertex.h.

Referenced by cAppInRPhi(), computeApp(), and ~BPHPlusMinusVertex().

bool BPHPlusMinusVertex::oldA
mutableprivate

Definition at line 67 of file BPHPlusMinusVertex.h.

Referenced by cAppInRPhi(), computeApp(), and setNotUpdated().