![]() |
Project
|
#include <GenCosmicsParam.h>
Inherits o2::conf::ConfigurableParamHelper< GenCosmicsParam >.
Public Types | |
enum | GenParamType : int { ParamMI , ParamACORDE , ParamTPC } |
enum | AccType : int { ITS0 , ITS1 , ITS2 , ITS3 , ITS4 , ITS5 , ITS6 , TPC , Custom } |
![]() | |
enum | EParamProvenance { kCODE , kCCDB , kRT } |
enum class | EParamUpdateStatus { Changed , Unchanged , Failed } |
Public Member Functions | |
O2ParamDef (GenCosmicsParam, "cosmics") | |
![]() | |
std::string | getName () const final |
EParamProvenance | getMemberProvenance (const std::string &key) const final |
void | printKeyValues (bool showProv=true, bool useLogger=false) const final |
size_t | getHash () const final |
void | output (std::ostream &out) const final |
std::vector< ParamDataMember > * | getDataMembers () const |
void | putKeyValues (boost::property_tree::ptree *tree) final |
void | initFrom (TFile *file) final |
void | syncCCDBandRegistry (void *externalobj) final |
void | serializeTo (TFile *file) const final |
ConfigurableParam () | |
Public Attributes | |
GenParamType | param = ParamTPC |
AccType | accept = TPC |
int | nPart = 1 |
number of particles per event | |
int | maxTrials = 10000000 |
number of failed trials to abandon generation | |
float | maxAngle = 45. |
max angle wrt azimuth to generate (in degrees) | |
float | origin = 550. |
create particle at this radius | |
float | pmin = 0.5 |
min total momentum | |
float | pmax = 100 |
max total momentum | |
float | customAccX = 250 |
require particle to pass within this |X| at Y=0 if AccType=custom is selected | |
float | customAccZ = 250 |
require particle to pass within this |Z| at Y=0 if AccType=custom is selected | |
Additional Inherited Members | |
![]() | |
static const GenCosmicsParam & | Instance () |
![]() | |
static std::string | toString (EParamProvenance p) |
static EParamProvenance | getProvenance (const std::string &key) |
static void | printAllRegisteredParamNames () |
static void | printAllKeyValuePairs (bool useLogger=false) |
static const std::string & | getOutputDir () |
static void | setOutputDir (const std::string &d) |
static bool | configFileExists (std::string const &filepath) |
static void | writeJSON (std::string const &filename, std::string const &keyOnly="") |
static void | writeINI (std::string const &filename, std::string const &keyOnly="") |
template<typename T > | |
static T | getValueAs (std::string key) |
template<typename T > | |
static void | setValue (std::string const &mainkey, std::string const &subkey, T x) |
static void | setProvenance (std::string const &mainkey, std::string const &subkey, EParamProvenance p) |
static void | setValue (std::string const &key, std::string const &valuestring) |
static void | setEnumValue (const std::string &, const std::string &) |
static void | setArrayValue (const std::string &, const std::string &) |
static void | setValues (std::vector< std::pair< std::string, std::string > > const &keyValues) |
static void | initialize () |
static void | toCCDB (std::string filename) |
static void | fromCCDB (std::string filename) |
static void | updateFromString (std::string const &) |
static void | updateFromFile (std::string const &, std::string const ¶msList="", bool unchangedOnly=false) |
![]() | |
ConfigurableParam () | |
virtual | ~ConfigurableParam ()=default |
void | setRegisterMode (bool b) |
bool | isInitialized () const |
![]() | |
static void | initPropertyTree () |
static EParamUpdateStatus | updateThroughStorageMap (std::string, std::string, std::type_info const &, void *) |
static EParamUpdateStatus | updateThroughStorageMapWithConversion (std::string const &, std::string const &) |
![]() | |
static std::map< std::string, std::pair< std::type_info const &, void * > > * | sKeyToStorageMap = nullptr |
static std::map< std::string, ConfigurableParam::EParamProvenance > * | sValueProvenanceMap = nullptr |
static EnumRegistry * | sEnumRegistry = nullptr |
static std::string | sOutputDir = "" |
Definition at line 26 of file GenCosmicsParam.h.
Enumerator | |
---|---|
ITS0 | |
ITS1 | |
ITS2 | |
ITS3 | |
ITS4 | |
ITS5 | |
ITS6 | |
TPC | |
Custom |
Definition at line 30 of file GenCosmicsParam.h.
Enumerator | |
---|---|
ParamMI | |
ParamACORDE | |
ParamTPC |
Definition at line 27 of file GenCosmicsParam.h.
o2::eventgen::GenCosmicsParam::O2ParamDef | ( | GenCosmicsParam | , |
"cosmics" | |||
) |
Definition at line 40 of file GenCosmicsParam.h.
float o2::eventgen::GenCosmicsParam::customAccX = 250 |
require particle to pass within this |X| at Y=0 if AccType=custom is selected
Definition at line 47 of file GenCosmicsParam.h.
float o2::eventgen::GenCosmicsParam::customAccZ = 250 |
require particle to pass within this |Z| at Y=0 if AccType=custom is selected
Definition at line 48 of file GenCosmicsParam.h.
float o2::eventgen::GenCosmicsParam::maxAngle = 45. |
max angle wrt azimuth to generate (in degrees)
Definition at line 43 of file GenCosmicsParam.h.
int o2::eventgen::GenCosmicsParam::maxTrials = 10000000 |
number of failed trials to abandon generation
Definition at line 42 of file GenCosmicsParam.h.
int o2::eventgen::GenCosmicsParam::nPart = 1 |
number of particles per event
Definition at line 41 of file GenCosmicsParam.h.
float o2::eventgen::GenCosmicsParam::origin = 550. |
create particle at this radius
Definition at line 44 of file GenCosmicsParam.h.
GenParamType o2::eventgen::GenCosmicsParam::param = ParamTPC |
Definition at line 39 of file GenCosmicsParam.h.
float o2::eventgen::GenCosmicsParam::pmax = 100 |
max total momentum
Definition at line 46 of file GenCosmicsParam.h.
float o2::eventgen::GenCosmicsParam::pmin = 0.5 |
min total momentum
Definition at line 45 of file GenCosmicsParam.h.