CMS 3D CMS Logo

InitialState.h
Go to the documentation of this file.
1 /*
2  Ludmila Malinina malinina@lav01.sinp.msu.ru, SINP MSU/Moscow and JINR/Dubna
3  Ionut Arsene i.c.arsene@fys.uio.no, Oslo University and ISS-Bucharest
4  Date : 2007/05/30
5 */
6 
7 #ifndef INITIALSTATE
8 #define INITIALSTATE
9 // Virtual class for the initial state classes
10 // Include here common methods, but always declare them as virtual
11 #include "Particle.h"
12 #include "DatabasePDG.h"
13 
14 class InitialState {
15 protected:
17 
18 public:
20  fDatabase = new DatabasePDG();
22  fDatabase->SetMassRange(0.0, 200.);
23  fDatabase->SetWidthRange(0., 10.);
24  };
25  virtual ~InitialState() noexcept(false) { delete fDatabase; };
26 
27  virtual bool RunDecays() = 0;
28  virtual double GetWeakDecayLimit() = 0;
29 
30  virtual void Evolve(List_t &secondaries, ParticleAllocator &allocator, double weakDecayLimit);
31 };
32 
33 #endif
funct::false
false
Definition: Factorize.h:29
ParticleAllocator
Definition: Particle.h:177
DatabasePDG::SetMassRange
void SetMassRange(double min, double max)
Definition: DatabasePDG.cc:527
InitialState::InitialState
InitialState()
Definition: InitialState.h:19
Particle.h
List_t
std::list< Particle > List_t
Definition: Particle.h:174
InitialState
Definition: InitialState.h:14
DatabasePDG::SetWidthRange
void SetWidthRange(double min, double max)
Definition: DatabasePDG.cc:480
InitialState::~InitialState
virtual ~InitialState() noexcept(false)
Definition: InitialState.h:25
InitialState::fDatabase
DatabasePDG * fDatabase
Definition: InitialState.h:16
DatabasePDG::LoadData
bool LoadData()
Definition: DatabasePDG.cc:61
InitialState::GetWeakDecayLimit
virtual double GetWeakDecayLimit()=0
InitialState::Evolve
virtual void Evolve(List_t &secondaries, ParticleAllocator &allocator, double weakDecayLimit)
Definition: InitialState.cc:13
InitialState::RunDecays
virtual bool RunDecays()=0
DatabasePDG
Definition: DatabasePDG.h:34
DatabasePDG.h