CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
Exhume::Event Class Reference

#include <Event.h>

Inheritance diagram for Exhume::Event:
Exhume::Weight

Public Member Functions

double CrossSectionCalculation ()
 
 Event (CrossSection &, CLHEP::HepRandomEngine *)
 
void Generate ()
 
double GetEfficiency ()
 
unsigned int GetLastSeed ()
 
std::vector< std::pair< double, double > > GetVar ()
 
void SetMassRange (const double &Min_, const double &Max_)
 
void SetParameterSpace ()
 
void SetRandomEngine (CLHEP::HepRandomEngine *engine)
 
void Sett1Max (const double &xx_)
 
void Sett1Min (const double &xx_)
 
void Sett2Max (const double &xx_)
 
void Sett2Min (const double &xx_)
 
void Setx1Max (const double &xx_)
 
void Setx2Max (const double &xx_)
 
 ~Event () override
 
- Public Member Functions inherited from Exhume::Weight
std::map< double, double > GetFuncMap ()
 
std::map< double, double > GetLineShape ()
 
double GetTotalIntegral ()
 
 Weight ()
 
virtual ~Weight ()
 

Private Member Functions

void SelectValues ()
 
double WeightFunc (const double &) override
 

Private Attributes

double B
 
double CSi
 
double CSMass
 
double Eta
 
double InvB
 
double InvBlnB
 
double InvRoot_s
 
double MaxMass
 
double MinMass
 
unsigned int NumberOfEvents
 
double Phi1
 
double Phi2
 
CrossSectionProcess
 
CLHEP::HepRandomEngine * randomEngine
 
double Root_s
 
double Sigmai
 
double SqrtsHat
 
double t1
 
double t1Max
 
double t1Min
 
double t2
 
double t2Max
 
double t2Min
 
unsigned int TotalAttempts
 
double tt1max
 
double tt1min
 
double tt2max
 
double tt2min
 
double TwoPI
 
std::vector< std::pair< double, double > > Var
 
double VonNeu
 
double wgt
 
double x1Max
 
double x2Max
 
double ymax
 
double ymin
 
double yRange
 

Additional Inherited Members

- Protected Member Functions inherited from Exhume::Weight
void AddPoint (const double &, const double &)
 
double GetFunc (const double &xx_)
 
double GetValue (const double &xx_)
 
void WeightInit (const double &, const double &)
 
- Protected Attributes inherited from Exhume::Weight
double Max_
 
double TotalIntegral
 

Detailed Description

Definition at line 17 of file Event.h.

Constructor & Destructor Documentation

◆ Event()

Exhume::Event::Event ( CrossSection ,
CLHEP::HepRandomEngine *   
)

◆ ~Event()

Exhume::Event::~Event ( )
override

Member Function Documentation

◆ CrossSectionCalculation()

double Exhume::Event::CrossSectionCalculation ( )

◆ Generate()

void Exhume::Event::Generate ( )

◆ GetEfficiency()

double Exhume::Event::GetEfficiency ( )
inline

Definition at line 66 of file Event.h.

66 { return (100.0 * NumberOfEvents / TotalAttempts); };

References NumberOfEvents, and TotalAttempts.

Referenced by gen::ExhumeHadronizer::statistics().

◆ GetLastSeed()

unsigned int Exhume::Event::GetLastSeed ( )
inline

Definition at line 58 of file Event.h.

58 { return (rand()); };

References rand().

◆ GetVar()

std::vector<std::pair<double, double> > Exhume::Event::GetVar ( )
inline

Definition at line 60 of file Event.h.

60 { return (Var); };

References Var.

◆ SelectValues()

void Exhume::Event::SelectValues ( )
private

◆ SetMassRange()

void Exhume::Event::SetMassRange ( const double &  Min_,
const double &  Max_ 
)
inline

Definition at line 52 of file Event.h.

52  {
53  MinMass = Min_;
54  MaxMass = Max_;
55  return;
56  };

References Exhume::Weight::Max_, MaxMass, and MinMass.

Referenced by gen::ExhumeHadronizer::initializeForInternalPartons().

◆ SetParameterSpace()

void Exhume::Event::SetParameterSpace ( )

◆ SetRandomEngine()

void Exhume::Event::SetRandomEngine ( CLHEP::HepRandomEngine *  engine)
inline

Definition at line 22 of file Event.h.

22  {
23  randomEngine = engine;
24  Process->SetRandomEngine(engine);
25  }

References Process, randomEngine, and Exhume::CrossSection::SetRandomEngine().

Referenced by gen::ExhumeHadronizer::doSetRandomEngine().

◆ Sett1Max()

void Exhume::Event::Sett1Max ( const double &  xx_)
inline

Definition at line 36 of file Event.h.

36  {
37  t1Max = xx_;
38  return;
39  };

References t1Max.

◆ Sett1Min()

void Exhume::Event::Sett1Min ( const double &  xx_)
inline

Definition at line 44 of file Event.h.

44  {
45  t1Min = xx_;
46  return;
47  };

References t1Min.

◆ Sett2Max()

void Exhume::Event::Sett2Max ( const double &  xx_)
inline

Definition at line 40 of file Event.h.

40  {
41  t2Max = xx_;
42  return;
43  };

References t2Max.

◆ Sett2Min()

void Exhume::Event::Sett2Min ( const double &  xx_)
inline

Definition at line 48 of file Event.h.

48  {
49  t2Min = xx_;
50  return;
51  };

References t2Min.

◆ Setx1Max()

void Exhume::Event::Setx1Max ( const double &  xx_)
inline

Definition at line 28 of file Event.h.

28  {
29  x1Max = xx_;
30  return;
31  };

References x1Max.

◆ Setx2Max()

void Exhume::Event::Setx2Max ( const double &  xx_)
inline

Definition at line 32 of file Event.h.

32  {
33  x2Max = xx_;
34  return;
35  };

References x2Max.

◆ WeightFunc()

double Exhume::Event::WeightFunc ( const double &  )
overrideprivatevirtual

Implements Exhume::Weight.

Member Data Documentation

◆ B

double Exhume::Event::B
private

Definition at line 75 of file Event.h.

◆ CSi

double Exhume::Event::CSi
private

Definition at line 74 of file Event.h.

◆ CSMass

double Exhume::Event::CSMass
private

Definition at line 74 of file Event.h.

◆ Eta

double Exhume::Event::Eta
private

Definition at line 76 of file Event.h.

◆ InvB

double Exhume::Event::InvB
private

Definition at line 75 of file Event.h.

◆ InvBlnB

double Exhume::Event::InvBlnB
private

Definition at line 75 of file Event.h.

◆ InvRoot_s

double Exhume::Event::InvRoot_s
private

Definition at line 75 of file Event.h.

◆ MaxMass

double Exhume::Event::MaxMass
private

Definition at line 81 of file Event.h.

Referenced by SetMassRange().

◆ MinMass

double Exhume::Event::MinMass
private

Definition at line 81 of file Event.h.

Referenced by SetMassRange().

◆ NumberOfEvents

unsigned int Exhume::Event::NumberOfEvents
private

Definition at line 79 of file Event.h.

Referenced by GetEfficiency().

◆ Phi1

double Exhume::Event::Phi1
private

Definition at line 76 of file Event.h.

◆ Phi2

double Exhume::Event::Phi2
private

Definition at line 76 of file Event.h.

◆ Process

CrossSection* Exhume::Event::Process
private

Definition at line 78 of file Event.h.

Referenced by SetRandomEngine().

◆ randomEngine

CLHEP::HepRandomEngine* Exhume::Event::randomEngine
private

Definition at line 84 of file Event.h.

Referenced by SetRandomEngine().

◆ Root_s

double Exhume::Event::Root_s
private

Definition at line 75 of file Event.h.

◆ Sigmai

double Exhume::Event::Sigmai
private

Definition at line 74 of file Event.h.

◆ SqrtsHat

double Exhume::Event::SqrtsHat
private

Definition at line 76 of file Event.h.

◆ t1

double Exhume::Event::t1
private

Definition at line 76 of file Event.h.

◆ t1Max

double Exhume::Event::t1Max
private

Definition at line 81 of file Event.h.

Referenced by Sett1Max().

◆ t1Min

double Exhume::Event::t1Min
private

Definition at line 81 of file Event.h.

Referenced by Sett1Min().

◆ t2

double Exhume::Event::t2
private

Definition at line 76 of file Event.h.

◆ t2Max

double Exhume::Event::t2Max
private

Definition at line 81 of file Event.h.

Referenced by Sett2Max().

◆ t2Min

double Exhume::Event::t2Min
private

Definition at line 81 of file Event.h.

Referenced by Sett2Min().

◆ TotalAttempts

unsigned int Exhume::Event::TotalAttempts
private

Definition at line 79 of file Event.h.

Referenced by GetEfficiency().

◆ tt1max

double Exhume::Event::tt1max
private

Definition at line 82 of file Event.h.

◆ tt1min

double Exhume::Event::tt1min
private

Definition at line 82 of file Event.h.

◆ tt2max

double Exhume::Event::tt2max
private

Definition at line 82 of file Event.h.

◆ tt2min

double Exhume::Event::tt2min
private

Definition at line 82 of file Event.h.

◆ TwoPI

double Exhume::Event::TwoPI
private

Definition at line 75 of file Event.h.

◆ Var

std::vector<std::pair<double, double> > Exhume::Event::Var
private

Definition at line 72 of file Event.h.

Referenced by GetVar().

◆ VonNeu

double Exhume::Event::VonNeu
private

Definition at line 76 of file Event.h.

◆ wgt

double Exhume::Event::wgt
private

Definition at line 74 of file Event.h.

◆ x1Max

double Exhume::Event::x1Max
private

Definition at line 81 of file Event.h.

Referenced by Setx1Max().

◆ x2Max

double Exhume::Event::x2Max
private

Definition at line 81 of file Event.h.

Referenced by Setx2Max().

◆ ymax

double Exhume::Event::ymax
private

Definition at line 77 of file Event.h.

Referenced by svgfig.YAxis::__repr__().

◆ ymin

double Exhume::Event::ymin
private

◆ yRange

double Exhume::Event::yRange
private

Definition at line 74 of file Event.h.

Exhume::Weight::Max_
double Max_
Definition: Weight.h:54
Exhume::Event::MaxMass
double MaxMass
Definition: Event.h:81
Exhume::Event::TotalAttempts
unsigned int TotalAttempts
Definition: Event.h:79
Exhume::Event::Process
CrossSection * Process
Definition: Event.h:78
Exhume::CrossSection::SetRandomEngine
void SetRandomEngine(CLHEP::HepRandomEngine *engine)
Definition: CrossSection.h:55
Exhume::Event::NumberOfEvents
unsigned int NumberOfEvents
Definition: Event.h:79
Exhume::Event::x2Max
double x2Max
Definition: Event.h:81
Exhume::Event::Var
std::vector< std::pair< double, double > > Var
Definition: Event.h:72
Exhume::Event::t1Max
double t1Max
Definition: Event.h:81
Exhume::Event::t1Min
double t1Min
Definition: Event.h:81
Exhume::Event::x1Max
double x1Max
Definition: Event.h:81
Exhume::Event::t2Max
double t2Max
Definition: Event.h:81
Exhume::Event::randomEngine
CLHEP::HepRandomEngine * randomEngine
Definition: Event.h:84
Exhume::Event::MinMass
double MinMass
Definition: Event.h:81
rand
Signal rand(Signal arg)
Definition: vlib.cc:379
Exhume::Event::t2Min
double t2Min
Definition: Event.h:81