Bayeux  3.4.1
Core Foundation library for SuperNEMO
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 
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 
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 
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 
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: --
static const std::string EVENT_GENBB_WEIGHT
Definition: utils.h:80
static const std::string SENSITIVE_DROP_ZERO_ENERGY_DEPOSIT
Definition: utils.h:29
static const std::string ENTERING_KINETIC_ENERGY_KEY
Definition: utils.h:73
static const int INVALID_TRACK_ID
Definition: utils.h:60
static const std::string SENSITIVE_RECORD_SENSITIVE_CATEGORY
Definition: utils.h:32
static const std::string STEP_LENGTH
Definition: utils.h:70
static const std::string SENSITIVE_RECORD_ALPHA_QUENCHING
Definition: utils.h:38
Definition: base_step_hit.h:32
static const std::string TRACK_ID_KEY
Definition: utils.h:61
static const std::string CREATOR_CATEGORY_KEY
Definition: utils.h:68
static const std::string SENSITIVE_RECORD_KINETIC_ENERGY
Definition: utils.h:31
static const std::string EVENT_DEFAULT_SIMULATED_DATA_LABEL
Definition: utils.h:82
static const std::string SENSITIVE_RECORD_CREATOR_CATEGORY
Definition: utils.h:34
static const std::string SENSITIVE_RECORD_TRACK_ID
Definition: utils.h:39
static const std::string SENSITIVE_HITS_BUFFER_CAPACITY
Definition: utils.h:25
static const std::string MAJOR_TRACK_FLAG
Definition: utils.h:64
static const std::string SENSITIVE_RECORD_PRIMARY_PARTICLE
Definition: utils.h:40
static const std::string SENSITIVE_MAJOR_TRACK_MINIMUM_ENERGY
Definition: utils.h:37
data_format_type
Definition: utils.h:92
static const std::string HIT_VISU_HIGHLIGHTED_KEY
Definition: utils.h:51
static const std::string HIT_MC_HIT_ID_KEY
Definition: utils.h:54
Bank output format: archives of "datatools::things" objects.
Definition: utils.h:95
static const std::string HIT_MC_STEP_PROCESSOR_KEY
Definition: utils.h:52
static const std::string SENSITIVE_TRACK_GAMMA
Definition: utils.h:26
static const std::string SENSITIVE_G4_VOLUME_NAME_KEY
Definition: utils.h:42
static const std::string DELTA_RAY_FROM_ALPHA_FLAG
Definition: utils.h:69
static const std::string SENSITIVE_RECORD_CREATOR_PROCESS
Definition: utils.h:35
static const std::string SENSITIVE_RECORD_MAJOR_TRACK
Definition: utils.h:36
Definition: utils.h:77
static const std::string SENSITIVE_RECORD_MATERIAL
Definition: utils.h:33
static const std::string HIT_MC_BUGGY_KEY
Definition: utils.h:53
static data_format_type label_to_data_format(const std::string &)
static const std::string PLAIN_SIMULATED_DATA_STORE
Definition: utils.h:90
static const std::string SENSITIVE_RECORD_G4_VOLUME_INFOS
Definition: utils.h:41
static const std::string CREATOR_PROCESS_KEY
Definition: utils.h:67
static const std::string LEAVING_VOLUME_FLAG
Definition: utils.h:72
Definition: utils.h:57
static const std::string SENSITIVE_G4_VOLUME_COPY_NUMBER_KEY
Definition: utils.h:43
static const std::string ENTERING_VOLUME_FLAG
Definition: utils.h:71
Undefined output format.
Definition: utils.h:93
static const std::string SENSITIVE_TRACK_OPTICAL_PHOTON
Definition: utils.h:27
static const std::string SENSITIVE_TRACK_NEUTRON
Definition: utils.h:28
static const std::string PARENT_TRACK_ID_KEY
Definition: utils.h:62
Definition: utils.h:22
static const std::string SENSITIVE_RECORD_BOUNDARIES
Definition: utils.h:45
Plain output format: archives of "mctools::simulated_data" objects.
Definition: utils.h:94
static const std::string STOP_KINETIC_ENERGY_KEY
Definition: utils.h:66
Definition: utils.h:86
static const std::string PRIMARY_PARTICLE_FLAG
Definition: utils.h:63
static const std::string GENERAL_INFO_STORE
Definition: utils.h:89
static const std::string LEAVING_KINETIC_ENERGY_KEY
Definition: utils.h:74
static const std::string EVENT_GENBB_LABEL
Definition: utils.h:81
static const std::string & event_default_simulated_data_label()
static const std::string SENSITIVE_RECORD_STEP_LENGTH
Definition: utils.h:44
Definition: utils.h:48
static const std::string START_KINETIC_ENERGY_KEY
Definition: utils.h:65
static const std::string SENSITIVE_RECORD_MOMENTUM
Definition: utils.h:30