Bayeux
3.4.1
Core Foundation library for SuperNEMO
bayeux
mctools
utils.h
Go to the documentation of this file.
1
/* Author(s) : Francois Mauger <mauger@lpccaen.in2p3.fr>
3
* Creation date: 2013-03-08
4
* Last modified: 2013-03-08
5
*
6
* License:
7
*
8
* Description:
9
*
10
* Utilities
11
*
12
*/
13
14
#ifndef MCTOOLS_UTILS_H
15
#define MCTOOLS_UTILS_H 1
16
17
// Standard library:
18
#include <string>
19
20
namespace
mctools
{
21
22
class
sensitive_utils
23
{
24
public
:
25
static
const
std::string
SENSITIVE_HITS_BUFFER_CAPACITY
;
26
static
const
std::string
SENSITIVE_TRACK_GAMMA
;
27
static
const
std::string
SENSITIVE_TRACK_OPTICAL_PHOTON
;
28
static
const
std::string
SENSITIVE_TRACK_NEUTRON
;
29
static
const
std::string
SENSITIVE_DROP_ZERO_ENERGY_DEPOSIT
;
30
static
const
std::string
SENSITIVE_RECORD_MOMENTUM
;
31
static
const
std::string
SENSITIVE_RECORD_KINETIC_ENERGY
;
32
static
const
std::string
SENSITIVE_RECORD_SENSITIVE_CATEGORY
;
33
static
const
std::string
SENSITIVE_RECORD_MATERIAL
;
34
static
const
std::string
SENSITIVE_RECORD_CREATOR_CATEGORY
;
35
static
const
std::string
SENSITIVE_RECORD_CREATOR_PROCESS
;
36
static
const
std::string
SENSITIVE_RECORD_MAJOR_TRACK
;
37
static
const
std::string
SENSITIVE_MAJOR_TRACK_MINIMUM_ENERGY
;
38
static
const
std::string
SENSITIVE_RECORD_ALPHA_QUENCHING
;
39
static
const
std::string
SENSITIVE_RECORD_TRACK_ID
;
40
static
const
std::string
SENSITIVE_RECORD_PRIMARY_PARTICLE
;
41
static
const
std::string
SENSITIVE_RECORD_G4_VOLUME_INFOS
;
42
static
const
std::string
SENSITIVE_G4_VOLUME_NAME_KEY
;
43
static
const
std::string
SENSITIVE_G4_VOLUME_COPY_NUMBER_KEY
;
44
static
const
std::string
SENSITIVE_RECORD_STEP_LENGTH
;
45
static
const
std::string
SENSITIVE_RECORD_BOUNDARIES
;
46
};
47
48
class
hit_utils
49
{
50
public
:
51
static
const
std::string
HIT_VISU_HIGHLIGHTED_KEY
;
52
static
const
std::string
HIT_MC_STEP_PROCESSOR_KEY
;
53
static
const
std::string
HIT_MC_BUGGY_KEY
;
54
static
const
std::string
HIT_MC_HIT_ID_KEY
;
55
};
56
57
class
track_utils
58
{
59
public
:
60
static
const
int
INVALID_TRACK_ID
= -1;
61
static
const
std::string
TRACK_ID_KEY
;
62
static
const
std::string
PARENT_TRACK_ID_KEY
;
63
static
const
std::string
PRIMARY_PARTICLE_FLAG
;
64
static
const
std::string
MAJOR_TRACK_FLAG
;
65
static
const
std::string
START_KINETIC_ENERGY_KEY
;
66
static
const
std::string
STOP_KINETIC_ENERGY_KEY
;
67
static
const
std::string
CREATOR_PROCESS_KEY
;
68
static
const
std::string
CREATOR_CATEGORY_KEY
;
69
static
const
std::string
DELTA_RAY_FROM_ALPHA_FLAG
;
70
static
const
std::string
STEP_LENGTH
;
71
static
const
std::string
ENTERING_VOLUME_FLAG
;
72
static
const
std::string
LEAVING_VOLUME_FLAG
;
73
static
const
std::string
ENTERING_KINETIC_ENERGY_KEY
;
// Unused
74
static
const
std::string
LEAVING_KINETIC_ENERGY_KEY
;
// Unused
75
};
76
77
class
event_utils
78
{
79
public
:
80
static
const
std::string
EVENT_GENBB_WEIGHT
;
81
static
const
std::string
EVENT_GENBB_LABEL
;
82
static
const
std::string
EVENT_DEFAULT_SIMULATED_DATA_LABEL
;
83
static
const
std::string &
event_default_simulated_data_label
();
84
};
85
86
class
io_utils
87
{
88
public
:
89
static
const
std::string
GENERAL_INFO_STORE
;
90
static
const
std::string
PLAIN_SIMULATED_DATA_STORE
;
91
92
enum
data_format_type
{
93
DATA_FORMAT_INVALID
= 0,
94
DATA_FORMAT_PLAIN
= 1,
95
DATA_FORMAT_BANK
= 2
96
};
97
98
static
data_format_type
label_to_data_format
(
const
std::string &);
99
100
};
101
102
}
// end of namespace mctools
103
104
#endif // MCTOOLS_UTILS_H
105
106
// Local Variables: --
107
// mode: c++ --
108
// c-file-style: "gnu" --
109
// tab-width: 2 --
110
// End: --
mctools::event_utils::EVENT_GENBB_WEIGHT
static const std::string EVENT_GENBB_WEIGHT
Definition:
utils.h:80
mctools::sensitive_utils::SENSITIVE_DROP_ZERO_ENERGY_DEPOSIT
static const std::string SENSITIVE_DROP_ZERO_ENERGY_DEPOSIT
Definition:
utils.h:29
mctools::track_utils::ENTERING_KINETIC_ENERGY_KEY
static const std::string ENTERING_KINETIC_ENERGY_KEY
Definition:
utils.h:73
mctools::track_utils::INVALID_TRACK_ID
static const int INVALID_TRACK_ID
Definition:
utils.h:60
mctools::sensitive_utils::SENSITIVE_RECORD_SENSITIVE_CATEGORY
static const std::string SENSITIVE_RECORD_SENSITIVE_CATEGORY
Definition:
utils.h:32
mctools::track_utils::STEP_LENGTH
static const std::string STEP_LENGTH
Definition:
utils.h:70
mctools::sensitive_utils::SENSITIVE_RECORD_ALPHA_QUENCHING
static const std::string SENSITIVE_RECORD_ALPHA_QUENCHING
Definition:
utils.h:38
mctools
Definition:
base_step_hit.h:32
mctools::track_utils::TRACK_ID_KEY
static const std::string TRACK_ID_KEY
Definition:
utils.h:61
mctools::track_utils::CREATOR_CATEGORY_KEY
static const std::string CREATOR_CATEGORY_KEY
Definition:
utils.h:68
mctools::sensitive_utils::SENSITIVE_RECORD_KINETIC_ENERGY
static const std::string SENSITIVE_RECORD_KINETIC_ENERGY
Definition:
utils.h:31
mctools::event_utils::EVENT_DEFAULT_SIMULATED_DATA_LABEL
static const std::string EVENT_DEFAULT_SIMULATED_DATA_LABEL
Definition:
utils.h:82
mctools::sensitive_utils::SENSITIVE_RECORD_CREATOR_CATEGORY
static const std::string SENSITIVE_RECORD_CREATOR_CATEGORY
Definition:
utils.h:34
mctools::sensitive_utils::SENSITIVE_RECORD_TRACK_ID
static const std::string SENSITIVE_RECORD_TRACK_ID
Definition:
utils.h:39
mctools::sensitive_utils::SENSITIVE_HITS_BUFFER_CAPACITY
static const std::string SENSITIVE_HITS_BUFFER_CAPACITY
Definition:
utils.h:25
mctools::track_utils::MAJOR_TRACK_FLAG
static const std::string MAJOR_TRACK_FLAG
Definition:
utils.h:64
mctools::sensitive_utils::SENSITIVE_RECORD_PRIMARY_PARTICLE
static const std::string SENSITIVE_RECORD_PRIMARY_PARTICLE
Definition:
utils.h:40
mctools::sensitive_utils::SENSITIVE_MAJOR_TRACK_MINIMUM_ENERGY
static const std::string SENSITIVE_MAJOR_TRACK_MINIMUM_ENERGY
Definition:
utils.h:37
mctools::io_utils::data_format_type
data_format_type
Definition:
utils.h:92
mctools::hit_utils::HIT_VISU_HIGHLIGHTED_KEY
static const std::string HIT_VISU_HIGHLIGHTED_KEY
Definition:
utils.h:51
mctools::hit_utils::HIT_MC_HIT_ID_KEY
static const std::string HIT_MC_HIT_ID_KEY
Definition:
utils.h:54
mctools::io_utils::DATA_FORMAT_BANK
Bank output format: archives of "datatools::things" objects.
Definition:
utils.h:95
mctools::hit_utils::HIT_MC_STEP_PROCESSOR_KEY
static const std::string HIT_MC_STEP_PROCESSOR_KEY
Definition:
utils.h:52
mctools::sensitive_utils::SENSITIVE_TRACK_GAMMA
static const std::string SENSITIVE_TRACK_GAMMA
Definition:
utils.h:26
mctools::sensitive_utils::SENSITIVE_G4_VOLUME_NAME_KEY
static const std::string SENSITIVE_G4_VOLUME_NAME_KEY
Definition:
utils.h:42
mctools::track_utils::DELTA_RAY_FROM_ALPHA_FLAG
static const std::string DELTA_RAY_FROM_ALPHA_FLAG
Definition:
utils.h:69
mctools::sensitive_utils::SENSITIVE_RECORD_CREATOR_PROCESS
static const std::string SENSITIVE_RECORD_CREATOR_PROCESS
Definition:
utils.h:35
mctools::sensitive_utils::SENSITIVE_RECORD_MAJOR_TRACK
static const std::string SENSITIVE_RECORD_MAJOR_TRACK
Definition:
utils.h:36
mctools::event_utils
Definition:
utils.h:77
mctools::sensitive_utils::SENSITIVE_RECORD_MATERIAL
static const std::string SENSITIVE_RECORD_MATERIAL
Definition:
utils.h:33
mctools::hit_utils::HIT_MC_BUGGY_KEY
static const std::string HIT_MC_BUGGY_KEY
Definition:
utils.h:53
mctools::io_utils::label_to_data_format
static data_format_type label_to_data_format(const std::string &)
mctools::io_utils::PLAIN_SIMULATED_DATA_STORE
static const std::string PLAIN_SIMULATED_DATA_STORE
Definition:
utils.h:90
mctools::sensitive_utils::SENSITIVE_RECORD_G4_VOLUME_INFOS
static const std::string SENSITIVE_RECORD_G4_VOLUME_INFOS
Definition:
utils.h:41
mctools::track_utils::CREATOR_PROCESS_KEY
static const std::string CREATOR_PROCESS_KEY
Definition:
utils.h:67
mctools::track_utils::LEAVING_VOLUME_FLAG
static const std::string LEAVING_VOLUME_FLAG
Definition:
utils.h:72
mctools::track_utils
Definition:
utils.h:57
mctools::sensitive_utils::SENSITIVE_G4_VOLUME_COPY_NUMBER_KEY
static const std::string SENSITIVE_G4_VOLUME_COPY_NUMBER_KEY
Definition:
utils.h:43
mctools::track_utils::ENTERING_VOLUME_FLAG
static const std::string ENTERING_VOLUME_FLAG
Definition:
utils.h:71
mctools::io_utils::DATA_FORMAT_INVALID
Undefined output format.
Definition:
utils.h:93
mctools::sensitive_utils::SENSITIVE_TRACK_OPTICAL_PHOTON
static const std::string SENSITIVE_TRACK_OPTICAL_PHOTON
Definition:
utils.h:27
mctools::sensitive_utils::SENSITIVE_TRACK_NEUTRON
static const std::string SENSITIVE_TRACK_NEUTRON
Definition:
utils.h:28
mctools::track_utils::PARENT_TRACK_ID_KEY
static const std::string PARENT_TRACK_ID_KEY
Definition:
utils.h:62
mctools::sensitive_utils
Definition:
utils.h:22
mctools::sensitive_utils::SENSITIVE_RECORD_BOUNDARIES
static const std::string SENSITIVE_RECORD_BOUNDARIES
Definition:
utils.h:45
mctools::io_utils::DATA_FORMAT_PLAIN
Plain output format: archives of "mctools::simulated_data" objects.
Definition:
utils.h:94
mctools::track_utils::STOP_KINETIC_ENERGY_KEY
static const std::string STOP_KINETIC_ENERGY_KEY
Definition:
utils.h:66
mctools::io_utils
Definition:
utils.h:86
mctools::track_utils::PRIMARY_PARTICLE_FLAG
static const std::string PRIMARY_PARTICLE_FLAG
Definition:
utils.h:63
mctools::io_utils::GENERAL_INFO_STORE
static const std::string GENERAL_INFO_STORE
Definition:
utils.h:89
mctools::track_utils::LEAVING_KINETIC_ENERGY_KEY
static const std::string LEAVING_KINETIC_ENERGY_KEY
Definition:
utils.h:74
mctools::event_utils::EVENT_GENBB_LABEL
static const std::string EVENT_GENBB_LABEL
Definition:
utils.h:81
mctools::event_utils::event_default_simulated_data_label
static const std::string & event_default_simulated_data_label()
mctools::sensitive_utils::SENSITIVE_RECORD_STEP_LENGTH
static const std::string SENSITIVE_RECORD_STEP_LENGTH
Definition:
utils.h:44
mctools::hit_utils
Definition:
utils.h:48
mctools::track_utils::START_KINETIC_ENERGY_KEY
static const std::string START_KINETIC_ENERGY_KEY
Definition:
utils.h:65
mctools::sensitive_utils::SENSITIVE_RECORD_MOMENTUM
static const std::string SENSITIVE_RECORD_MOMENTUM
Definition:
utils.h:30
Generated by
1.8.15