/
G4JLeicVTXDetector.h
49 lines (37 loc) · 1.19 KB
/
G4JLeicVTXDetector.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Tell emacs that this is a C++ source
// -*- C++ -*-.
#ifndef G4JLEIC_G4JLEICVTXDETECTOR_H
#define G4JLEIC_G4JLEICVTXDETECTOR_H
#include <g4main/PHG4Detector.h>
#include <map>
#include <string> // for string
class G4LogicalVolume;
class G4VPhysicalVolume;
class PHCompositeNode;
class PHG4Subsystem;
class PHParametersContainer;
class G4JLeicVTXDetector : public PHG4Detector
{
public:
//! constructor
G4JLeicVTXDetector(PHG4Subsystem *subsys, PHCompositeNode *Node, PHParametersContainer *params_array, const std::string &dnam);
//! destructor
virtual ~G4JLeicVTXDetector() {}
//! construct
virtual void ConstructMe(G4LogicalVolume *world);
virtual void Print(const std::string &what = "ALL") const;
//!@name volume accessors
//@{
int IsInVTX(G4VPhysicalVolume *) const;
//@}
void SuperDetector(const std::string &name) { m_SuperDetector = name; }
const std::string SuperDetector() const { return m_SuperDetector; }
protected:
int m_IsActiveFlag;
int m_IsAbsorberActiveFlag;
int m_Layers;
PHParametersContainer *m_ParamsContainer;
std::map<G4VPhysicalVolume *, int> m_PhysicalVolumesMap;
std::string m_SuperDetector;
};
#endif // G4JLEIC_G4JLEICVTXDETECTOR_H