BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
CDEta.cxx
Go to the documentation of this file.
1// -*- C++ -*-
2//
3// Package: <CleoDChain>
4// Module: CDEta
5//
6// Description: <one line class summary>
7//
8// Implementation:
9// <Notes on implementation>
10//
11// petez (2009.2.25): This is a modified copy of BesDChain CDPi0.h
12//
13
14// system include files
15
16// user include files
17#include "BesDChain/CDEta.h"
18#include "BesDChain/CDPhoton.h"
19#include "BesDChain/util/KinematicData.h"
20#include "EvtRecEvent/EvtRecEtaToGG.h"
21
22//
23// constants, enums and typedefs
24//
25using namespace dchain;
27
28//
29// constructors and destructor
30//
31CDEta::CDEta( const EvtRecEtaToGG* aVisible ) : m_eta( aVisible ) {
32 ReferenceHolder<CDPhoton> tmp = new CDPhoton( aVisible->hiEnGamma() );
33 addChild( *tmp );
34 tmp = new CDPhoton( aVisible->loEnGamma() );
35 addChild( *tmp );
36}
37
38// CDEta::CDEta( const CDEta& rhs )
39// {
40// // do actual copying here; if you implemented
41// // operator= correctly, you may be able to use just say
42// *this = rhs;
43// }
44
46
47//------ buildFromCDEta -----
48// return `true' as CDEta is made up from VisibleEvidence
49//
50bool CDEta::builtFromCDEta() const { return true; }
51
52//------ eta -----
53// return NavCDEta for this CDEta
54//
55const EvtRecEtaToGG* CDEta::navEta() const { return ( m_eta ); }
56
58 return new KinematicData( m_eta->hiPfit() + m_eta->loPfit() );
59}
60//
61// assignment operators
62//
63// const CDEta& CDEta::operator=( const CDEta& rhs )
64// {
65// if( this != &rhs ) {
66// // do actual copying here, plus:
67// // "SuperClass"::operator=( rhs );
68// }
69//
70// return *this;
71// }
72
73//
74// member functions
75//
76
77//
78// const member functions
79//
void addChild(const CDCandidate &aAdditionalProduct)
Definition CDDecay.cxx:188
virtual DecayChain::KinematicData * defaultKinematicData() const
Definition CDEta.cxx:57
virtual const EvtRecEtaToGG * navEta() const
Definition CDEta.cxx:55
CDEta(const EvtRecEtaToGG *aVisible)
Definition CDEta.cxx:31
virtual ~CDEta()
Definition CDEta.cxx:45
virtual bool builtFromCDEta() const
Definition CDEta.cxx:50