EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
EicFieldMapDetector.cxx
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file EicFieldMapDetector.cxx
1
//
2
// AYK (ayk@bnl.gov), 2015/08/06
3
//
4
// EIC field-map-related fake detector class;
5
//
6
7
#include <
EicFieldMapDetector.h
>
8
9
10
#include <
EicMagneticFieldMap.h
>
11
12
// ---------------------------------------------------------------------------------------
13
14
EicFieldMapDetector::EicFieldMapDetector
(
EicMagneticFieldMap
*fmap, Bool_t Active):
15
EicDetector
(fmap ? fmap->GetDetectorName().Data() : 0, (char*)
"no-geometry.cfg"
,
16
qDUMMY
,
qOneStepOneHit
, Active),
17
mMap(fmap)
18
{
19
20
}
// EicFieldMapDetector::EicFieldMapDetector()
21
22
// ---------------------------------------------------------------------------------------
23
24
void
EicFieldMapDetector::ConstructGeometry
()
25
{
26
if
(
mMap
&&
mMap
->
ConstructGeometry
())
27
fLogger
->
Fatal
(
MESSAGE_ORIGIN
,
"\033[5m\033[31m Failed to construct geometry for '%s' field map! \033[0m"
,
28
mMap
->
GetFileName
().Data());
29
30
// Yes, just add sensitivity flag by hand if needed;
31
if
(
mMap
&&
IsActive
()) {
32
TGeoVolume *yoke =
mMap
->
GetYokeVolume
();
33
34
// Yes, for now (acceptance studies) just want to kill the particle
35
// right away when it enters this volume;
36
if
(yoke)
AddKillerVolume
(yoke);
37
}
//if
38
}
// EicFieldMapDetector::ConstructGeometry()
39
40
// ---------------------------------------------------------------------------------------
41
42
ClassImp
(
EicFieldMapDetector
)
EicRoot
blob
master
eic
base
EicFieldMapDetector.cxx
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:33
using
1.8.2 with
EIC GitHub integration