/
EicRootDetector.h
42 lines (31 loc) · 1023 Bytes
/
EicRootDetector.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
// Tell emacs that this is a C++ source
// -*- C++ -*-.
#ifndef _EICROOT_DETECTOR_
#define _EICROOT_DETECTOR_
#include <g4main/PHG4Detector.h>
#include <set>
#include <string>
class G4LogicalVolume;
class G4VPhysicalVolume;
class PHCompositeNode;
class PHG4Subsystem;
class PHParameters;
class PHG4HitContainer;
class EicRootDetector : public PHG4Detector
{
public:
// ctor & dtor;
EicRootDetector(PHG4Subsystem *subsys, PHCompositeNode *Node, const std::string &dnam);
virtual ~EicRootDetector() {};
// The actual geometry construction call;
void ConstructMe(G4LogicalVolume *world) override;
void Print(const std::string &what = "ALL") const override;
int IsInDetector(G4VPhysicalVolume *);// const;
PHG4HitContainer *get_hitcontainer( void ) { return m_HitContainer; };
void set_hitcontainer(PHG4HitContainer *container) { m_HitContainer = container; };
private:
// active volumes
//std::set<G4VPhysicalVolume *> m_PhysicalVolumesSet;
PHG4HitContainer *m_HitContainer;
};
#endif