ECCE @ EIC Software
Reference for
ECCE @ 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
PHG4CylinderGeomContainer.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4CylinderGeomContainer.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4DETECTORS_PHG4CYLINDERGEOMCONTAINER_H
4
#define G4DETECTORS_PHG4CYLINDERGEOMCONTAINER_H
5
6
#include <
phool/PHObject.h
>
7
8
#include <iostream>
// for cout, ostream
9
#include <map>
10
#include <utility>
// for make_pair, pair
11
12
class
PHG4CylinderGeom
;
13
14
class
PHG4CylinderGeomContainer
:
public
PHObject
15
{
16
public
:
17
using
Map
= std::map<int,PHG4CylinderGeom *>;
18
using
Iterator
= Map::iterator;
19
using
ConstIterator
= Map::const_iterator;
20
using
Range
= std::pair<Iterator, Iterator>;
21
using
ConstRange
= std::pair<ConstIterator, ConstIterator>;
22
23
PHG4CylinderGeomContainer
();
24
~PHG4CylinderGeomContainer
()
override
;
25
26
// from PHObject
27
void
identify
(std::ostream& os = std::cout)
const override
;
28
29
int
AddLayerGeom
(
const
int
i,
PHG4CylinderGeom
*mygeom);
30
int
AddLayerGeom
(
PHG4CylinderGeom
*mygeom);
31
PHG4CylinderGeom
*
GetLayerGeom
(
const
int
i);
32
PHG4CylinderGeom
*
GetFirstLayerGeom
();
33
int
get_NLayers
()
const
{
return
layergeoms
.size();}
34
ConstRange
get_begin_end
()
const
{
return
std::make_pair(
layergeoms
.begin(),
layergeoms
.end());}
35
36
protected
:
37
Map
layergeoms
;
38
float
magfield
;
39
ClassDefOverride(
PHG4CylinderGeomContainer
,1)
40
};
41
42
#endif
coresoftware
blob
master
simulation
g4simulation
g4detectors
PHG4CylinderGeomContainer.h
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:41
using
1.8.2 with
ECCE GitHub integration