1 #include "ToyBoxTracker.hxx" 9 MainTrack=HMtrack=SHMtrack=HMNtrack=SHMNtrack=HMPtrack=SHMPtrack=NULL;
12 NegativeTPCtracks = NULL;
13 PositiveTPCtracks = NULL;
14 nNegativeTPCtracks = 0;
15 nPositiveTPCtracks = 0;
21 ToyBoxTracker::~ToyBoxTracker(){
24 if (NegativeTPCtracks)
delete [] NegativeTPCtracks;
25 if (PositiveTPCtracks)
delete [] PositiveTPCtracks;
32 if (!_ResetCheckDone){
34 std::cerr <<
"ERROR in ToyBoxTracker::Reset(). Either this mandatory method is not implemented " 35 <<
"by the derived class '" <<
typeid(*this).name() <<
"' " 36 <<
"or ToyBoxTracker::Reset() is called from the Reset method of the derived class. " 37 <<
"Please correct any of these bugs. " << std::endl;
53 if (Vertex)
delete Vertex;
54 if (NegativeTPCtracks)
delete [] NegativeTPCtracks;
55 if (PositiveTPCtracks)
delete [] PositiveTPCtracks;
58 MainTrack=HMtrack=SHMtrack=HMNtrack=SHMNtrack=HMPtrack=SHMPtrack=NULL;
61 NegativeTPCtracks = NULL;
62 PositiveTPCtracks = NULL;
63 nNegativeTPCtracks = 0;
64 nPositiveTPCtracks = 0;
virtual void ResetBase()
Reset this base class.
virtual void Reset()
This method should be implemented by the derived class. If so it does nothing here.
virtual void ResetBase()
Reset this base class.