EIC Software
Reference for
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
RawTowerZDCContainer.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file RawTowerZDCContainer.h
1
#ifndef EICZDCBASE_RAWTOWERZDCCONTAINER_H
2
#define EICZDCBASE_RAWTOWERZDCCONTAINER_H
3
4
#include "
RawTowerZDCDefs.h
"
5
6
#include <
phool/PHObject.h
>
7
8
#include <iostream>
9
#include <map>
10
#include <utility>
11
12
class
RawTowerZDC
;
13
14
class
RawTowerZDCContainer
:
public
PHObject
15
{
16
public
:
17
typedef
std::map<RawTowerZDCDefs::keytype, RawTowerZDC *>
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
RawTowerZDCContainer
(
RawTowerZDCDefs::CalorimeterId
caloid =
RawTowerZDCDefs::NONE
)
24
:
_caloid
(caloid)
25
{
26
}
27
28
~RawTowerZDCContainer
()
override
{}
29
30
void
Reset
()
override
;
31
int
isValid
()
const override
;
32
void
identify
(std::ostream &os = std::cout)
const override
;
33
34
void
setCalorimeterID
(
RawTowerZDCDefs::CalorimeterId
caloid) {
_caloid
= caloid; }
35
RawTowerZDCDefs::CalorimeterId
getCalorimeterID
() {
return
_caloid
; }
36
37
ConstIterator
AddTower
(
const
unsigned
int
ieta,
const
unsigned
int
iphi,
const
unsigned
int
il,
RawTowerZDC
*twr);
38
ConstIterator
AddTower
(
RawTowerZDCDefs::keytype
key,
RawTowerZDC
*twr);
39
40
RawTowerZDC
*
getTower
(
RawTowerZDCDefs::keytype
key);
41
const
RawTowerZDC
*
getTower
(
RawTowerZDCDefs::keytype
key)
const
;
42
43
RawTowerZDC
*
getTower
(
const
unsigned
int
ieta,
const
unsigned
int
iphi,
const
unsigned
int
il );
44
const
RawTowerZDC
*
getTower
(
const
unsigned
int
ieta,
const
unsigned
int
iphi,
const
unsigned
int
il)
const
;
45
47
ConstRange
getTowers
(
void
)
const
;
48
Range
getTowers
(
void
);
49
50
unsigned
int
size
()
const
{
return
_towers
.size(); }
51
void
compress
(
const
double
emin
);
52
double
getTotalEdep
()
const
;
53
54
protected
:
55
RawTowerZDCDefs::CalorimeterId
_caloid
;
56
Map
_towers
;
57
58
ClassDefOverride(
RawTowerZDCContainer
, 1)
59
};
60
61
#endif
fun4all_eicdetectors
blob
master
reconstruction
eiczdcbase
RawTowerZDCContainer.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:51
using
1.8.2 with
EIC GitHub integration