Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
PHG4TpcCylinderGeomContainer.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4TpcCylinderGeomContainer.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4DETECTORS_PHG4TPCCYLINDERGEOMCONTAINER_H
4
#define G4DETECTORS_PHG4TPCCYLINDERGEOMCONTAINER_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
PHG4TpcCylinderGeom
;
13
14
class
PHG4TpcCylinderGeomContainer
:
public
PHObject
15
{
16
public
:
17
typedef
std::map<int, PHG4TpcCylinderGeom *>
Map
;
18
typedef
Map::iterator
Iterator
;
19
typedef
Map::const_iterator
ConstIterator
;
20
typedef
std::pair<Iterator, Iterator>
Range
;
21
typedef
std::pair<ConstIterator, ConstIterator>
ConstRange
;
22
23
PHG4TpcCylinderGeomContainer
() {}
24
~PHG4TpcCylinderGeomContainer
()
override
;
25
26
// from PHObject
27
void
identify
(std::ostream &
os
= std::cout)
const override
;
28
29
int
AddLayerCellGeom
(
const
int
i
,
PHG4TpcCylinderGeom
*mygeom);
30
int
AddLayerCellGeom
(
PHG4TpcCylinderGeom
*mygeom);
31
PHG4TpcCylinderGeom
*
GetLayerCellGeom
(
const
int
i
);
32
PHG4TpcCylinderGeom
*
GetFirstLayerCellGeom
();
33
int
get_NLayers
()
const
{
return
layergeoms
.size(); }
34
ConstRange
get_begin_end
()
const
{
return
{
layergeoms
.begin(),
layergeoms
.end()}; }
35
36
protected
:
37
Map
layergeoms
;
38
ClassDefOverride(
PHG4TpcCylinderGeomContainer
, 1)
39
};
40
41
#endif
coresoftware
blob
master
simulation
g4simulation
g4detectors
PHG4TpcCylinderGeomContainer.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:13
using
1.8.2 with
sPHENIX GitHub integration