ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetDigitization
SiDigitization
src
SiChargedDiode.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// SiChargedDiode.cxx
7
// Implementation file for class SiChargedDiode
9
// (c) ATLAS Detector software
11
// Version 2.1 09/06/2001 David Calvet
12
// Davide Costanzo. Revisited version. 04-03-03
14
15
#include "
SiDigitization/SiChargedDiode.h
"
16
17
18
// Constructor with parameters:
19
SiChargedDiode::SiChargedDiode
(
const
InDetDD::SiCellId
&
diode
,
const
InDetDD::SiReadoutCellId
& roCell,
int
flagword,
SiChargedDiode
*
nextInCluster
)
20
:
m_diode
(
diode
),
21
m_readoutCell
(roCell),
22
m_word
(flagword),
23
m_nextInCluster
(
nextInCluster
)
24
{}
25
26
// add another charge
27
// If the current charge is large than max, update
28
// If we update, replace the track parameters
29
void
SiChargedDiode::add
(
const
SiCharge
&
charge
) {
30
// add the charge
31
m_totalCharge
.add(
charge
);
32
}
33
35
// Input/Output stream functions:
37
std::ostream &
operator<<
(std::ostream &out,
const
SiChargedDiode
&chargedDiode)
38
{
39
out <<
"Diode="
<< chargedDiode.
diode
()
40
<<
" "
<< chargedDiode.
totalCharge
();
41
return
out;
42
}
43
operator<<
std::ostream & operator<<(std::ostream &out, const SiChargedDiode &chargedDiode)
Definition
SiChargedDiode.cxx:37
SiChargedDiode.h
InDetDD::SiCellId
Identifier for the strip or pixel cell.
Definition
SiCellId.h:29
InDetDD::SiReadoutCellId
Identifier for the strip or pixel readout cell.
Definition
SiReadoutCellId.h:42
SiCharge
Definition
SiCharge.h:25
SiChargedDiode
Definition
SiChargedDiode.h:30
SiChargedDiode::diode
const InDetDD::SiCellId & diode() const
Definition
SiChargedDiode.h:97
SiChargedDiode::SiChargedDiode
SiChargedDiode()
SiChargedDiode::SiChargedDiode
SiChargedDiode(const InDetDD::SiCellId &diode, const InDetDD::SiReadoutCellId &roCell, int flagword=0, SiChargedDiode *nextInCluster=nullptr)
Definition
SiChargedDiode.cxx:19
SiChargedDiode::m_diode
InDetDD::SiCellId m_diode
Definition
SiChargedDiode.h:86
SiChargedDiode::m_readoutCell
InDetDD::SiReadoutCellId m_readoutCell
Definition
SiChargedDiode.h:89
SiChargedDiode::m_word
int m_word
Definition
SiChargedDiode.h:90
SiChargedDiode::m_totalCharge
SiTotalCharge m_totalCharge
Definition
SiChargedDiode.h:88
SiChargedDiode::charge
double charge() const
Definition
SiChargedDiode.h:115
SiChargedDiode::m_nextInCluster
SiChargedDiode * m_nextInCluster
Definition
SiChargedDiode.h:91
SiChargedDiode::totalCharge
const SiTotalCharge & totalCharge() const
Definition
SiChargedDiode.h:107
SiChargedDiode::add
void add(const SiCharge &charge)
Definition
SiChargedDiode.cxx:29
SiChargedDiode::nextInCluster
SiChargedDiode * nextInCluster()
Definition
SiChargedDiode.h:120
Generated on
for ATLAS Offline Software by
1.17.0