SimG4CMS
Calo
interface
CaloHitID.h
Go to the documentation of this file.
1
#ifndef SimG4CMS_CaloHitID_H
2
#define SimG4CMS_CaloHitID_H
3
// File: CaloHitID.h
5
// HitID class for storing unique identifier of a Calorimetric Hit
7
8
#include <cstdint>
9
#include <iostream>
10
11
class
CaloHitID
{
12
public
:
13
CaloHitID
(
14
uint32_t
unitID
,
double
timeSlice
,
int
trackID
, uint16_t
depth
= 0,
float
tSlice = 1,
bool
ignoreTkID =
false
);
15
CaloHitID
(
float
tSlice = 1,
bool
ignoreTkID =
false
);
16
CaloHitID
(
const
CaloHitID
&);
17
const
CaloHitID
&
operator=
(
const
CaloHitID
&);
18
virtual
~CaloHitID
();
19
20
uint32_t
unitID
()
const
{
return
theUnitID
; }
21
int
timeSliceID
()
const
{
return
theTimeSliceID
; }
22
double
timeSlice
()
const
{
return
theTimeSlice
; }
23
int
trackID
()
const
{
return
theTrackID
; }
24
uint16_t
depth
()
const
{
return
theDepth
; }
25
void
setID
(uint32_t
unitID
,
double
timeSlice
,
int
trackID
, uint16_t
depth
= 0);
26
void
reset
();
27
28
bool
operator==
(
const
CaloHitID
&)
const
;
29
bool
operator<
(
const
CaloHitID
&)
const
;
30
bool
operator>
(
const
CaloHitID
&)
const
;
31
32
private
:
33
uint32_t
theUnitID
;
34
double
theTimeSlice
;
35
int
theTrackID
;
36
int
theTimeSliceID
;
37
uint16_t
theDepth
;
38
float
timeSliceUnit
;
39
bool
ignoreTrackID
;
40
};
41
42
std::ostream&
operator<<
(std::ostream&,
const
CaloHitID
&);
43
#endif
CaloHitID::operator=
const CaloHitID & operator=(const CaloHitID &)
Definition:
CaloHitID.cc:26
CaloHitID::depth
uint16_t depth() const
Definition:
CaloHitID.h:24
CaloHitID::operator>
bool operator>(const CaloHitID &) const
Definition:
CaloHitID.cc:75
CaloHitID::theDepth
uint16_t theDepth
Definition:
CaloHitID.h:37
CaloHitID::operator<
bool operator<(const CaloHitID &) const
Definition:
CaloHitID.cc:63
CaloHitID::trackID
int trackID() const
Definition:
CaloHitID.h:23
operator<<
std::ostream & operator<<(std::ostream &, const CaloHitID &)
Definition:
CaloHitID.cc:87
CaloHitID::unitID
uint32_t unitID() const
Definition:
CaloHitID.h:20
CaloHitID::timeSliceUnit
float timeSliceUnit
Definition:
CaloHitID.h:38
CaloHitID::setID
void setID(uint32_t unitID, double timeSlice, int trackID, uint16_t depth=0)
Definition:
CaloHitID.cc:40
CaloHitID::timeSlice
double timeSlice() const
Definition:
CaloHitID.h:22
CaloHitID::~CaloHitID
virtual ~CaloHitID()
Definition:
CaloHitID.cc:38
CaloHitID::theTimeSlice
double theTimeSlice
Definition:
CaloHitID.h:34
CaloHitID::theTrackID
int theTrackID
Definition:
CaloHitID.h:35
CaloHitID::theTimeSliceID
int theTimeSliceID
Definition:
CaloHitID.h:36
CaloHitID::ignoreTrackID
bool ignoreTrackID
Definition:
CaloHitID.h:39
CaloHitID::operator==
bool operator==(const CaloHitID &) const
Definition:
CaloHitID.cc:56
CaloHitID::timeSliceID
int timeSliceID() const
Definition:
CaloHitID.h:21
CaloHitID::reset
void reset()
Definition:
CaloHitID.cc:48
CaloHitID
Definition:
CaloHitID.h:11
CaloHitID::CaloHitID
CaloHitID(uint32_t unitID, double timeSlice, int trackID, uint16_t depth=0, float tSlice=1, bool ignoreTkID=false)
Definition:
CaloHitID.cc:9
CaloHitID::theUnitID
uint32_t theUnitID
Definition:
CaloHitID.h:33
Generated for CMSSW Reference Manual by
1.8.16