CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
CDPi0.cxx
Go to the documentation of this file.
1// -*- C++ -*-
2//
3// Package: <CleoDChain>
4// Module: CDPi0
5//
6// Description: <one line class summary>
7//
8// Implementation:
9// <Notes on implementation>
10//
11// Author: David Urner
12// Created: Thu Mar 22 16:01:08 EST 2001
13// $Id: CDPi0.cxx,v 1.1.1.1 2009/03/03 06:05:56 maqm Exp $
14//
15// Revision history
16//
17// $Log: CDPi0.cxx,v $
18// Revision 1.1.1.1 2009/03/03 06:05:56 maqm
19// first import of BesDChain
20//
21// Revision 1.7 2006/01/11 20:37:25 cdj
22// work with renaming done in DChain package
23//
24// Revision 1.6 2004/03/05 22:01:44 chengp
25// implemented Monte Carlo matching
26//
27// Revision 1.5 2003/05/15 19:58:09 cdj
28// revamped memory handling so always use a ReferenceHolder to deal with the reference counting
29//
30// Revision 1.4 2001/11/15 14:30:31 ajm36
31// include PhdPi0
32//
33// Revision 1.3 2001/11/06 15:20:46 ajm36
34// override defaultKinematicData for pi0, eta, ks, lambda
35//
36// Revision 1.2 2001/04/25 12:52:13 ajm36
37// plugged memory leak in ctor for pi0's, k shorts, etas
38//
39// Revision 1.1 2001/04/11 13:19:03 urner
40// transition to files with CD prefix. Addition of new files
41//
42// Revision 1.2 2001/03/24 03:07:56 cdj
43// fixed CDPi0 CDKs and CDEta classes so could properly assess info from CDCandidate class
44//
45// Revision 1.1 2001/03/23 23:05:29 urner
46// added pi0 eta and CDKs decay lists
47//
48
49// system include files
50
51// user include files
52#include "EvtRecEvent/EvtRecPi0.h"
53#include "BesDChain/CDPhoton.h"
54#include "BesDChain/util/KinematicData.h"
55#include "BesDChain/CDPi0.h"
56//zoujh: ...
57//#include "AnalEvent/BComposedParticle.h"
58
59//
60// constants, enums and typedefs
61//
62using namespace dchain;
64
65//
66// constructors and destructor
67//
68CDPi0::CDPi0(const EvtRecPi0* aVisible) :
69 m_pi0(aVisible)
70{
71 ReferenceHolder<CDPhoton> tmp = new CDPhoton(aVisible->hiEnGamma());
72 addChild(*tmp);
73 tmp = new CDPhoton(aVisible->loEnGamma());
74 addChild(*tmp);
75}
76
77// CDPi0::CDPi0( const CDPi0& rhs )
78// {
79// // do actual copying here; if you implemented
80// // operator= correctly, you may be able to use just say
81// *this = rhs;
82// }
83
85{
86}
87
88
89
90
91//------ buildFromCDPi0 -----
92// return `true' as CDPi0 is made up from VisibleEvidence
93//
95{
96 return true;
97}
98
99
100//------ pi0 -----
101// return NavCDPi0 for this CDPi0
102//
104{
105 return ( m_pi0 ) ;
106}
107
109{
110 return new KinematicData( m_pi0->hiPfit() + m_pi0->loPfit() );
111}
112//
113// assignment operators
114//
115// const CDPi0& CDPi0::operator=( const CDPi0& rhs )
116// {
117// if( this != &rhs ) {
118// // do actual copying here, plus:
119// // "SuperClass"::operator=( rhs );
120// }
121//
122// return *this;
123// }
124
125//
126// member functions
127//
128
129//
130// const member functions
131//
void addChild(const CDCandidate &aAdditionalProduct)
Definition: CDDecay.cxx:187
CDPi0(const EvtRecPi0 *aVisible)
Definition: CDPi0.cxx:68
virtual DecayChain::KinematicData * defaultKinematicData() const
Definition: CDPi0.cxx:108
virtual const EvtRecPi0 * navPi0() const
Definition: CDPi0.cxx:103
virtual bool builtFromCDPi0() const
Definition: CDPi0.cxx:94
virtual ~CDPi0()
Definition: CDPi0.cxx:84