HighLAND
ToyBoxND280.cxx
1 #include "ToyBoxND280.hxx"
2 #include <typeinfo>
3 
4 //********************************************************************
5 ToyBoxND280::ToyBoxND280():ToyBoxB(){
6 //********************************************************************
7 
8  TrueVertex=NULL;
9 }
10 
11 //********************************************************************
13 //********************************************************************
14 
15  if (!_ResetCheckDone){
16  if( typeid(*this) != typeid(ToyBoxND280)){
17  std::cerr << "ERROR in ToyBoxND280::Reset(). Either this mandatory method is not implemented "
18  << "by the derived class '" << typeid(*this).name() << "' "
19  << "or ToyBoxND280::Reset() is called from the Reset method of the derived class. "
20  << "Please correct any of these bugs. " << std::endl;
21 
22  exit(1);
23  }
24  _ResetCheckDone=true;
25  }
26 
27 }
28 
29 //********************************************************************
31 //********************************************************************
32 
33  TrueVertex=NULL;
34  SoftReset();
35 }
36 
virtual void Reset()
This method should be implemented by the derived class. If so it does nothing here.
Definition: ToyBoxND280.cxx:12
virtual void ResetBase()
Reset this base class.
Definition: ToyBoxND280.cxx:30