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
RawTowerZDCGeomContainer.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file RawTowerZDCGeomContainer.h
1
#ifndef EICZDCBASE_RAWTOWERZDCGEOMCONTAINER_H
2
#define EICZDCBASE_RAWTOWERZDCGEOMCONTAINER_H
3
4
#include "
RawTowerZDCDefs.h
"
5
6
#include <
phool/PHObject.h
>
7
8
#include <cmath>
9
#include <cstddef>
10
#include <iostream>
11
#include <map>
12
#include <type_traits>
13
#include <utility>
14
15
16
class
RawTowerZDCGeom
;
17
21
class
RawTowerZDCGeomContainer
:
public
PHObject
22
{
23
public
:
24
typedef
std::map<RawTowerZDCDefs::keytype, RawTowerZDCGeom *>
Map
;
25
typedef
Map::iterator
Iterator
;
26
typedef
Map::const_iterator
ConstIterator
;
27
typedef
std::pair<Iterator, Iterator>
Range
;
28
typedef
std::pair<ConstIterator, ConstIterator>
ConstRange
;
29
31
RawTowerZDCGeomContainer
(
RawTowerZDCDefs::CalorimeterId
caloid =
RawTowerZDCDefs::NONE
);
32
~RawTowerZDCGeomContainer
()
override
;
33
34
void
Reset
()
override
;
35
int
isValid
()
const override
;
36
void
identify
(std::ostream &os = std::cout)
const override
;
37
38
39
void
set_calorimeter_id
(
RawTowerZDCDefs::CalorimeterId
caloid) {
_caloid
= caloid; }
40
RawTowerZDCDefs::CalorimeterId
get_calorimeter_id
() {
return
_caloid
; }
41
43
ConstIterator
add_tower_geometry
(
RawTowerZDCGeom
*geo) ;
44
RawTowerZDCGeom
*
get_tower_geometry
(
RawTowerZDCDefs::keytype
key);
45
47
48
ConstRange
get_tower_geometries
(
void
)
const
;
49
Range
get_tower_geometries
(
void
);
50
51
unsigned
int
size
()
const
{
return
_geoms
.size(); }
52
53
protected
:
54
RawTowerZDCDefs::CalorimeterId
_caloid
;
55
Map
_geoms
;
56
57
ClassDefOverride(
RawTowerZDCGeomContainer
, 1)
58
};
59
60
#endif
fun4all_eicdetectors
blob
master
reconstruction
eiczdcbase
RawTowerZDCGeomContainer.h
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:46
using
1.8.2 with
ECCE GitHub integration