BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnNdetGeoPar.h
Go to the documentation of this file.
1
/*************************************************************************************
2
*
3
* Class BmnNdetGeoPar
4
*
5
* Adopted for BMN by: Elena Litvinenko
6
* e-mail: litvin@nf.jinr.ru
7
* Version: 06-11-2015
8
* Modified by M.Golubeva July 2022
9
*
10
************************************************************************************/
11
12
#ifndef BMNGEONDETPAR_H
13
#define BMNGEONDETPAR_H
14
15
#include "FairParGenericSet.h"
16
#include "
TObjArray.h
"
17
#include "regex"
18
19
class
BmnNdetGeoPar
:
public
FairParGenericSet
20
{
21
public
:
22
TObjArray
*
fGeoSensNodes
;
/** List of FairGeoNodes for sensitive volumes */
23
TObjArray
*
fGeoPassNodes
;
/** List of FairGeoNodes for passive volumes */
24
25
BmnNdetGeoPar
(
const
char
* name =
"BmnNdetGeoPar"
,
26
const
char
* title =
"Ndet Geometry Parameters"
,
27
const
char
* context =
"NdetDefaultContext"
);
28
~BmnNdetGeoPar
(
void
);
29
void
clear
(
void
);
30
void
putParams
(FairParamList*);
31
Bool_t
getParams
(FairParamList*);
32
TObjArray
*
GetGeoSensitiveNodes
() {
return
fGeoSensNodes
; }
33
TObjArray
*
GetGeoPassiveNodes
() {
return
fGeoPassNodes
; }
34
35
static
bool
CheckIfSensitive
(std::string name);
36
37
static
inline
const
TString
fTopVolumeName
=
"TOP"
;
38
static
inline
const
TString
fCommonVolumeName
=
"NDET_common"
;
39
static
inline
const
TString
fEnvelopeVolumeName
=
"ndet01"
;
40
static
inline
const
TString
fDetectorVolumeName
=
"interior"
;
41
static
inline
const
TString
fModuleVolumeName
=
"ndet01m_NICA"
;
42
static
inline
const
TString
Pb_name_NICA_5mm
=
"ndet01a_NICA_5mm"
;
43
static
inline
const
TString
Pb_name_NICA_10mm
=
"ndet01a_NICA_10mm"
;
44
static
inline
const
TString
Air_name_NICA
=
"ndet01air_NICA"
;
45
static
inline
const
TString
Air_name_NICA_2mm
=
"ndet01air_NICA_2mm"
;
46
static
inline
const
TString
G10_name_NICA
=
"ndet01g10_NICA"
;
47
static
inline
const
TString
PLA_name_NICA
=
"ndet01pla_NICA"
;
48
static
inline
const
TString
SensitiveVolume_name_NICA
=
"ndet01s_NICA"
;
49
static
inline
const
TString
SensitiveVolume_name_VETO
=
"ndet01s_VETO"
;
50
51
static
inline
const
TString
Cu_name_NICA
=
"ndet01a_NICA"
;
// Cu
52
static
inline
const
TString
Al_name_NICA
=
"ndet01Al_NICA"
;
// Al
53
static
inline
const
TString
Pb_name_NICA
=
"ndet01Pb_NICA"
;
// Pb
54
55
static
inline
const
TString
Al_edge_vert
=
"ndet01Al_edge_vert"
;
56
static
inline
const
TString
Al_edge_hor_front
=
"ndet01Al_edge_hor_front"
;
57
static
inline
const
TString
Al_edge_hor_side
=
"ndet01Al_edge_hor_side"
;
58
59
static
inline
const
TString
fPathBeforeLocalSystem
=
"/NDET_common_0/"
;
60
// pattern to retrieve information about element indexes from its node path in geo file
61
static
inline
const
std::regex
fElementPattern
{R
"(.*\/ndet01_(\d+)(?:\/[^/]*)*\/ndet01m_NICA_(\d+)_(\d+)_(\d+))"};
62
static
inline
const
std::regex
fArmPattern
{R
"(.*\/ndet01_(\d+))"};
63
64
ClassDef
(
BmnNdetGeoPar
, 4)
65
};
66
67
#endif
/* !BMNGEONDETPAR_H */
Bool_t
bool Bool_t
ClassDef
#define ClassDef(name, id)
TObjArray.h
BmnNdetGeoPar
Definition
BmnNdetGeoPar.h:20
BmnNdetGeoPar::Cu_name_NICA
static const TString Cu_name_NICA
Definition
BmnNdetGeoPar.h:51
BmnNdetGeoPar::G10_name_NICA
static const TString G10_name_NICA
Definition
BmnNdetGeoPar.h:46
BmnNdetGeoPar::fGeoPassNodes
TObjArray * fGeoPassNodes
List of FairGeoNodes for sensitive volumes.
Definition
BmnNdetGeoPar.h:23
BmnNdetGeoPar::fDetectorVolumeName
static const TString fDetectorVolumeName
Definition
BmnNdetGeoPar.h:40
BmnNdetGeoPar::fEnvelopeVolumeName
static const TString fEnvelopeVolumeName
Definition
BmnNdetGeoPar.h:39
BmnNdetGeoPar::PLA_name_NICA
static const TString PLA_name_NICA
Definition
BmnNdetGeoPar.h:47
BmnNdetGeoPar::fPathBeforeLocalSystem
static const TString fPathBeforeLocalSystem
Definition
BmnNdetGeoPar.h:59
BmnNdetGeoPar::GetGeoSensitiveNodes
TObjArray * GetGeoSensitiveNodes()
Definition
BmnNdetGeoPar.h:32
BmnNdetGeoPar::Pb_name_NICA_10mm
static const TString Pb_name_NICA_10mm
Definition
BmnNdetGeoPar.h:43
BmnNdetGeoPar::fArmPattern
static const std::regex fArmPattern
Definition
BmnNdetGeoPar.h:62
BmnNdetGeoPar::~BmnNdetGeoPar
~BmnNdetGeoPar(void)
Definition
BmnNdetGeoPar.cxx:29
BmnNdetGeoPar::GetGeoPassiveNodes
TObjArray * GetGeoPassiveNodes()
Definition
BmnNdetGeoPar.h:33
BmnNdetGeoPar::Al_name_NICA
static const TString Al_name_NICA
Definition
BmnNdetGeoPar.h:52
BmnNdetGeoPar::Al_edge_vert
static const TString Al_edge_vert
Definition
BmnNdetGeoPar.h:55
BmnNdetGeoPar::clear
void clear(void)
Definition
BmnNdetGeoPar.cxx:33
BmnNdetGeoPar::Air_name_NICA
static const TString Air_name_NICA
Definition
BmnNdetGeoPar.h:44
BmnNdetGeoPar::Al_edge_hor_side
static const TString Al_edge_hor_side
Definition
BmnNdetGeoPar.h:57
BmnNdetGeoPar::fModuleVolumeName
static const TString fModuleVolumeName
Definition
BmnNdetGeoPar.h:41
BmnNdetGeoPar::getParams
Bool_t getParams(FairParamList *)
Definition
BmnNdetGeoPar.cxx:49
BmnNdetGeoPar::BmnNdetGeoPar
BmnNdetGeoPar(const char *name="BmnNdetGeoPar", const char *title="Ndet Geometry Parameters", const char *context="NdetDefaultContext")
List of FairGeoNodes for passive volumes.
Definition
BmnNdetGeoPar.cxx:21
BmnNdetGeoPar::Pb_name_NICA_5mm
static const TString Pb_name_NICA_5mm
Definition
BmnNdetGeoPar.h:42
BmnNdetGeoPar::Pb_name_NICA
static const TString Pb_name_NICA
Definition
BmnNdetGeoPar.h:53
BmnNdetGeoPar::Al_edge_hor_front
static const TString Al_edge_hor_front
Definition
BmnNdetGeoPar.h:56
BmnNdetGeoPar::Air_name_NICA_2mm
static const TString Air_name_NICA_2mm
Definition
BmnNdetGeoPar.h:45
BmnNdetGeoPar::CheckIfSensitive
static bool CheckIfSensitive(std::string name)
Definition
BmnNdetGeoPar.cxx:62
BmnNdetGeoPar::SensitiveVolume_name_VETO
static const TString SensitiveVolume_name_VETO
Definition
BmnNdetGeoPar.h:49
BmnNdetGeoPar::putParams
void putParams(FairParamList *)
Definition
BmnNdetGeoPar.cxx:41
BmnNdetGeoPar::fElementPattern
static const std::regex fElementPattern
Definition
BmnNdetGeoPar.h:61
BmnNdetGeoPar::fTopVolumeName
static const TString fTopVolumeName
Definition
BmnNdetGeoPar.h:37
BmnNdetGeoPar::fGeoSensNodes
TObjArray * fGeoSensNodes
Definition
BmnNdetGeoPar.h:22
BmnNdetGeoPar::SensitiveVolume_name_NICA
static const TString SensitiveVolume_name_NICA
Definition
BmnNdetGeoPar.h:48
BmnNdetGeoPar::fCommonVolumeName
static const TString fCommonVolumeName
Definition
BmnNdetGeoPar.h:38
FairParGenericSet
TObjArray
TString
detectors
ndet
BmnNdetGeoPar.h
Generated on
for BmnRoot by
1.17.0