NAIA  1.0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
Public Types | Public Member Functions | Public Attributes | List of all members
NAIA::MCFileInfo Class Reference

Container class for additional MC File information. More...

#include <Containers/FileInfo.h>

Inheritance diagram for NAIA::MCFileInfo:

Public Types

enum  SimFocus { SimFocus::NONE = 0, SimFocus::L1, SimFocus::L19, SimFocus::TB }
 Enum specifying the type of simulation. More...
 

Public Member Functions

unsigned int GetNGen () const
 Estimates of the total number of requested events at generation level. More...
 
double GetRMin () const
 Get the lower edge of the rigidity generation range. More...
 
double GetRMax () const
 Get the upper edge of the rigidity generation range. More...
 
void Clear ()
 Clear container content. More...
 
void Dump () const
 Dump on screen container content. More...
 
 ClassDef (MCFileInfo, 1)
 

Public Attributes

unsigned int Charge = 0
 Atomic number of the primary particle. More...
 
float Mass = 0
 Mass of the primary particle in GeV/c^2. More...
 
int DatacardPID = 0
 Geant4 PID of the primary particle (from datacard) More...
 
unsigned int DatacardNGen = 0
 Number of generated events from datacard. More...
 
std::pair< unsigned int,
unsigned int > 
EventNo {0, 0}
 First / last event in the file. More...
 
std::pair< float, float > MomentumRange {0, 0}
 Momentum range as estimated from the events. More...
 
std::pair< float, float > DatacardMomentumRange {0, 0}
 Momentum range as estimated from the datacard. More...
 
SimFocus Focus
 Simulation focus. More...
 

Detailed Description

Container class for additional MC File information.

Definition at line 54 of file FileInfo.h.

Member Enumeration Documentation

Enum specifying the type of simulation.

The MC simulation in AMS is often optimized to simulate only particles already passing in a predefined acceptance.

Enumerator
NONE 
L1 

particles shot towards Layer 1

L19 

particles shot towards layer 1 and passing through layer 9

TB 

test beam simulation

Definition at line 62 of file FileInfo.h.

Member Function Documentation

NAIA::MCFileInfo::ClassDef ( MCFileInfo  ,
 
)
void NAIA::MCFileInfo::Clear ( )

Clear container content.

Definition at line 62 of file FileInfo.cpp.

References Charge, DatacardMomentumRange, DatacardNGen, DatacardPID, EventNo, Focus, Mass, MomentumRange, and NONE.

void NAIA::MCFileInfo::Dump ( ) const

Dump on screen container content.

Definition at line 73 of file FileInfo.cpp.

References Charge, DatacardMomentumRange, DatacardPID, Focus, L1, L19, Mass, MomentumRange, and TB.

unsigned int NAIA::MCFileInfo::GetNGen ( ) const

Estimates of the total number of requested events at generation level.

Returns
An estimate of the number of generated events, based on the first and last event number in the file.

Definition at line 28 of file FileInfo.cpp.

References DatacardNGen, and EventNo.

double NAIA::MCFileInfo::GetRMax ( ) const

Get the upper edge of the rigidity generation range.

Returns
Rmax from the gbatch generation datacard

Definition at line 54 of file FileInfo.cpp.

References Charge, and DatacardMomentumRange.

double NAIA::MCFileInfo::GetRMin ( ) const

Get the lower edge of the rigidity generation range.

Returns
Rmin from the gbatch generation datacard

Definition at line 46 of file FileInfo.cpp.

References Charge, and DatacardMomentumRange.

Member Data Documentation

unsigned int NAIA::MCFileInfo::Charge = 0

Atomic number of the primary particle.

Definition at line 103 of file FileInfo.h.

Referenced by Clear(), Dump(), GetRMax(), and GetRMin().

std::pair<float, float> NAIA::MCFileInfo::DatacardMomentumRange {0, 0}

Momentum range as estimated from the datacard.

Definition at line 110 of file FileInfo.h.

Referenced by Clear(), Dump(), GetRMax(), and GetRMin().

unsigned int NAIA::MCFileInfo::DatacardNGen = 0

Number of generated events from datacard.

Definition at line 106 of file FileInfo.h.

Referenced by Clear(), and GetNGen().

int NAIA::MCFileInfo::DatacardPID = 0

Geant4 PID of the primary particle (from datacard)

Definition at line 105 of file FileInfo.h.

Referenced by Clear(), and Dump().

std::pair<unsigned int, unsigned int> NAIA::MCFileInfo::EventNo {0, 0}

First / last event in the file.

Definition at line 108 of file FileInfo.h.

Referenced by Clear(), and GetNGen().

SimFocus NAIA::MCFileInfo::Focus

Simulation focus.

Definition at line 112 of file FileInfo.h.

Referenced by Clear(), and Dump().

float NAIA::MCFileInfo::Mass = 0

Mass of the primary particle in GeV/c^2.

Definition at line 104 of file FileInfo.h.

Referenced by Clear(), and Dump().

std::pair<float, float> NAIA::MCFileInfo::MomentumRange {0, 0}

Momentum range as estimated from the events.

Definition at line 109 of file FileInfo.h.

Referenced by Clear(), and Dump().


The documentation for this class was generated from the following files: