ATLAS Offline Software
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 
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
30  // add the 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 
SiChargedDiode
Definition: SiChargedDiode.h:30
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
SiCharge
Definition: SiCharge.h:25
SiChargedDiode.h
SiChargedDiode::add
void add(const SiCharge &charge)
Definition: SiChargedDiode.cxx:29
SiChargedDiode::charge
double charge() const
Definition: SiChargedDiode.h:115
SiChargedDiode::m_totalCharge
SiTotalCharge m_totalCharge
Definition: SiChargedDiode.h:88
SiChargedDiode::diode
const InDetDD::SiCellId & diode() const
Definition: SiChargedDiode.h:97
SiChargedDiode::totalCharge
const SiTotalCharge & totalCharge() const
Definition: SiChargedDiode.h:107
SiTotalCharge::add
void add(const SiCharge &charge)
Definition: SiTotalCharge.cxx:62
SiChargedDiode::SiChargedDiode
SiChargedDiode()
charge
double charge(const T &p)
Definition: AtlasPID.h:756
InDetDD::SiCellId
Definition: SiCellId.h:29
operator<<
std::ostream & operator<<(std::ostream &out, const SiChargedDiode &chargedDiode)
Definition: SiChargedDiode.cxx:37
InDetDD::SiReadoutCellId
Definition: SiReadoutCellId.h:42