BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
CDPhoton Class Reference

#include <CDPhoton.h>

+ Inheritance diagram for CDPhoton:

Public Types

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

Public Member Functions

 CDPhoton (const VisibleEvidence *aVisible)
 
 CDPhoton (const CDPhoton &aOtherCDPhoton)
 
virtual ~CDPhoton ()
 
virtual bool builtFromCDPhoton () const
 
virtual const EvtRecTrackphoton () const
 
virtual DBCandidate::Hypo hypo () const
 
 CDPhoton (const VisibleEvidence *aVisible)
 
 CDPhoton (const CDPhoton &aOtherCDPhoton)
 
virtual ~CDPhoton ()
 
virtual bool builtFromCDPhoton () const
 
virtual const EvtRecTrackphoton () const
 
virtual DBCandidate::Hypo hypo () 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
 
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
 
 ReferenceCount ()
 
virtual ~ReferenceCount ()
 
void addLink () const
 
void dropLink () const
 

Static Public Member Functions

static bool setIP (double x, double y, double z)
 
static bool setIP (double x, double y, double z)
 

Protected Member Functions

virtual DecayChain::KinematicDatadefaultKinematicData () const
 
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
 
 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
 

Detailed Description

Member Typedef Documentation

◆ CandidateClass [1/2]

◆ CandidateClass [2/2]

◆ VisibleEvidence [1/2]

◆ VisibleEvidence [2/2]

Constructor & Destructor Documentation

◆ CDPhoton() [1/4]

CDPhoton::CDPhoton ( const VisibleEvidence aVisible)

Definition at line 110 of file CDPhoton.cxx.

Referenced by CDPhoton().

◆ CDPhoton() [2/4]

CDPhoton::CDPhoton ( const CDPhoton aOtherCDPhoton)

Definition at line 119 of file CDPhoton.cxx.

119 :
120 CDCandidate( aOtherCDPhoton ) ,
121 m_visibleEvidence( aOtherCDPhoton.m_visibleEvidence )
122{
123}

◆ ~CDPhoton() [1/2]

CDPhoton::~CDPhoton ( )
virtual

Definition at line 128 of file CDPhoton.cxx.

129{
130}

◆ CDPhoton() [3/4]

CDPhoton::CDPhoton ( const VisibleEvidence aVisible)

◆ CDPhoton() [4/4]

CDPhoton::CDPhoton ( const CDPhoton aOtherCDPhoton)

◆ ~CDPhoton() [2/2]

virtual CDPhoton::~CDPhoton ( )
virtual

Member Function Documentation

◆ builtFromCDPhoton() [1/2]

bool CDPhoton::builtFromCDPhoton ( ) const
virtual

Reimplemented from CDCandidate.

Definition at line 136 of file CDPhoton.cxx.

137{
138 return ( 0 != m_visibleEvidence ) ;
139}

◆ builtFromCDPhoton() [2/2]

virtual bool CDPhoton::builtFromCDPhoton ( ) const
virtual

Reimplemented from CDCandidate.

◆ defaultKinematicData() [1/2]

KinematicData * CDPhoton::defaultKinematicData ( ) const
protectedvirtual

Implements CDCandidate.

Definition at line 153 of file CDPhoton.cxx.

154{
155 RecEmcShower* emcShower = (const_cast<VisibleEvidence*>(m_visibleEvidence))->emcShower();
156
157 double eraw = emcShower->energy();
158
159 //double phi = emcShower->phi();
160 //double the = emcShower->theta();
161
162 Hep3Vector EmcV( emcShower->x(), emcShower->y(), emcShower->z() );
163 Hep3Vector PhotonV = EmcV - m_IPV;
164
165 double phi = PhotonV.phi();
166 double the = PhotonV.theta();
167
168 double px = eraw*sin(the)*cos(phi);
169 double py = eraw*sin(the)*sin(phi);
170 double pz = eraw*cos(the);
171
172 KinematicData* tmp = new KinematicData();
173
174 tmp->setP4( HepLorentzVector(px, py, pz, eraw) );
175
176 return tmp;
177}
double sin(const BesAngle a)
double cos(const BesAngle a)
void setP4(const HepLorentzVector &aMomentum)

◆ defaultKinematicData() [2/2]

virtual DecayChain::KinematicData * CDPhoton::defaultKinematicData ( ) const
protectedvirtual

Implements CDCandidate.

◆ hypo() [1/2]

DBCandidate::Hypo CDPhoton::hypo ( ) const
inlinevirtual

◆ hypo() [2/2]

virtual DBCandidate::Hypo CDPhoton::hypo ( ) const
inlinevirtual

Reimplemented from CDCandidate.

◆ photon() [1/2]

const EvtRecTrack * CDPhoton::photon ( ) const
virtual

Reimplemented from CDCandidate.

Definition at line 145 of file CDPhoton.cxx.

146{
147 return m_visibleEvidence ;
148}

Referenced by LocalPhotonSelector::operator()().

◆ photon() [2/2]

virtual const EvtRecTrack * CDPhoton::photon ( ) const
virtual

Reimplemented from CDCandidate.

◆ setIP() [1/2]

static bool CDPhoton::setIP ( double  x,
double  y,
double  z 
)
inlinestatic

Definition at line 99 of file Event/BesDChain/BesDChain-00-00-14/BesDChain/CDPhoton.h.

99 {
100 m_IPV.set(x, y, z);
101 }

◆ setIP() [2/2]

static bool CDPhoton::setIP ( double  x,
double  y,
double  z 
)
inlinestatic

Definition at line 99 of file InstallArea/include/BesDChain/BesDChain/CDPhoton.h.

99 {
100 m_IPV.set(x, y, z);
101 }

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