BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
CDLambda Class Reference

#include <CleoDChain/CDLambda.h>

+ Inheritance diagram for CDLambda:

Public Member Functions

 CDLambda (const EvtRecVeeVertex *aVisible)
 
virtual ~CDLambda ()
 
virtual bool builtFromCDLambda () const
 
virtual const EvtRecVeeVertexnavLambda () const
 
bool isBar () const
 
- Public Member Functions inherited from CDDecay
 CDDecay (const CDDecay &aOtherCDDecay)
 
 CDDecay (const CDCandidate &aProduct)
 
 CDDecay (const CDDecay &aProducts, const CDCandidate &aAdditionalProduct)
 
virtual ~CDDecay ()
 
void addChild (const CDCandidate &aAdditionalProduct)
 
void setKinematicData (const DecayChain::KinematicData &aKinematicData)
 
virtual bool builtFromCDDecay (void) const
 
virtual const CDDecaydecay (void) const
 
uint32_t numberChildren () const
 
void iterateChildren (void(*analyze)(const CDCandidate &)) const
 
void iterateChildren (DCAnalysisFunction< CDCandidate > &analyze) const
 
const CDCandidatechild (unsigned int aPosition) const
 
const std::vector< dchain::ReferenceHolder< CDCandidate > > & children () const
 
- Public Member Functions inherited from CDCandidate
virtual ~CDCandidate ()
 
const CDCandidateoperator= (const CDCandidate &aOtherCDCandidate)
 
void setUserTag (int tag)
 
CDCandidatesetP4 (const HepLorentzVector &aMomentum)
 
int userTag () const
 
double mass () const
 
int charge () const
 
double energy () const
 
const Hep3Vector & momentum () const
 
const HepLorentzVector & p4 () const
 
const DecayChain::KinematicDatakinematicData () const
 
TracksAndShowers finalChildren () const
 
virtual DBCandidate::Hypo hypo () const
 
virtual bool builtFromTrack () const
 
virtual const EvtRecTracktrack () const
 
virtual bool builtFromCDPhoton () const
 
virtual const EvtRecTrackphoton () const
 
virtual bool builtFromCDPi0 () const
 
virtual const EvtRecPi0navPi0 () const
 
virtual bool builtFromCDEta () const
 
virtual const EvtRecEtaToGGnavEta () const
 
virtual bool builtFromCDKs () const
 
virtual const EvtRecVeeVertexnavKshort () const
 
virtual bool builtFromCDLambda () const
 
virtual const EvtRecVeeVertexnavLambda () const
 
virtual bool builtFromCDDecay () const
 
virtual const DecayEvidencedecay () const
 
bool overlap (const CDCandidate &aOtherCDCandidate) const
 
const CDFootPrintfootPrint () const
 
- Public Member Functions inherited from dchain::ReferenceCount
 ReferenceCount ()
 
virtual ~ReferenceCount ()
 
void addLink () const
 
void dropLink () const
 

Protected Member Functions

virtual DecayChain::KinematicDatadefaultKinematicData () const
 
- Protected Member Functions inherited from CDDecay
 CDDecay ()
 
virtual DecayChain::KinematicDatadefaultKinematicData () const
 
- Protected Member Functions inherited from CDCandidate
 CDCandidate (const CDCandidate &aOtherCDCandidate)
 
 CDCandidate (const CDFootPrint &aCDFootPrint)
 
void setKinematicData (const DecayChain::KinematicData &aKinematicData)
 
void setCDFootPrint (const CDFootPrint &aCDFootPrint)
 
virtual DecayChain::KinematicDatadefaultKinematicData () const =0
 
void recurseNode (TracksAndShowers &final, const CDCandidate &cand) const
 

Additional Inherited Members

- Public Types inherited from CDDecay
typedef CDCandidate CandidateClass
 
- Public Types inherited from CDCandidate
typedef CDDecay DecayEvidence
 
typedef std::pair< vector< const EvtRecTrack * >, vector< const EvtRecTrack * > > TracksAndShowers
 

Detailed Description

Description: <one line class summary>

Usage: <usage>

Definition at line 58 of file CDLambda.h.

Constructor & Destructor Documentation

◆ CDLambda()

CDLambda::CDLambda ( const EvtRecVeeVertex aVisible)

Definition at line 73 of file CDLambda.cxx.

73 :
74// CDDecay(*(new CDChargedPion(aVisible.piPlus()))),
75 m_lambda(aVisible)
76{
77 EvtRecVeeVertex* lambda = const_cast<EvtRecVeeVertex*>(aVisible);
78
79 int index[2] = {0, 1};
80 if (aVisible->vertexId() < 0) {
81 index[0] = 1;
82 index[1] = 0;
83 }
84
85 ReferenceHolder<CDProton> tmp = new CDProton(lambda->daughter(index[0]));
86 addChild(*tmp);
87 ReferenceHolder<CDChargedPion> tmp2 = new CDChargedPion(lambda->daughter(index[1]));
88 addChild(*tmp2);
89}
CDChargedVisible< DBCandidate::kChargedPion > CDChargedPion
Definition: CDChargedPion.h:42
CDChargedVisible< DBCandidate::kProton > CDProton
Definition: CDProton.h:42
void addChild(const CDCandidate &aAdditionalProduct)
Definition: CDDecay.cxx:187
SmartRef< EvtRecTrack > & daughter(int i)
int vertexId() const

◆ ~CDLambda()

CDLambda::~CDLambda ( )
virtual

Definition at line 99 of file CDLambda.cxx.

100{
101}

Member Function Documentation

◆ builtFromCDLambda()

bool CDLambda::builtFromCDLambda ( ) const
virtual

Reimplemented from CDCandidate.

Definition at line 107 of file CDLambda.cxx.

108{
109 return true;
110}

◆ defaultKinematicData()

KinematicData * CDLambda::defaultKinematicData ( ) const
protectedvirtual

Reimplemented from CDDecay.

Definition at line 121 of file CDLambda.cxx.

122{
124
125 const HepVector& w_lambda = m_lambda->w();
126
127 data->setP4( HepLorentzVector(w_lambda[0], w_lambda[1], w_lambda[2], w_lambda[3]) );
128
129 return data;
130}
TTree * data
const HepVector & w() const

◆ isBar()

bool CDLambda::isBar ( ) const
inline

Definition at line 78 of file CDLambda.h.

78{ return (m_lambda->vertexId() < 0); }

◆ navLambda()

const EvtRecVeeVertex * CDLambda::navLambda ( ) const
virtual

Reimplemented from CDCandidate.

Definition at line 116 of file CDLambda.cxx.

117{
118 return m_lambda ;
119}

The documentation for this class was generated from the following files: