ATLAS Offline Software
TGCASDOut.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include <iostream>
6 #include <iomanip>
7 
8 #include "GaudiKernel/SystemOfUnits.h"
9 #include "TrigT1TGC/TGCASDOut.h"
10 
11 namespace LVL1TGCTrigger {
12 
14  TGCSignalType sigtype, int id, double tof)
15  : m_tgcReadoutIndex(tgcrindex),
16  m_signalType(sigtype), m_hitID(id), m_hitToF(tof)
17 {
18 }
19 
20 
21 void TGCASDOut::SetParams(TGCSignalType signal_type, int id, double tof)
22 {
23  m_signalType= signal_type;
24  m_hitID= id;
25  m_hitToF= tof;
26 }
27 
28 
29 void TGCASDOut::Print() const
30 {
31  const char* const strsig[3]= { "N/A", "Wire", "Strip" };
32 
34  std::cout << "::" << std::setw(9) << strsig[m_signalType]
35  << ":: ID=" << std::setw(3) << m_hitID
36  << ", tof=" << std::setw(5) << std::setprecision(1) << m_hitToF/Gaudi::Units::ns << "ns"
37  << std::setprecision(6) << std::endl;
38 }
39 
40 
41 } //end of namespace bracket
TGCASDOut.h
LVL1TGCTrigger::TGCASDOut::m_signalType
TGCSignalType m_signalType
Definition: TGCASDOut.h:15
LVL1TGCTrigger::TGCASDOut::m_hitToF
double m_hitToF
Definition: TGCASDOut.h:18
LVL1TGCTrigger::TGCASDOut::TGCASDOut
TGCASDOut()=default
LVL1TGCTrigger
Definition: LVL1TGCTrigger.cxx:47
LVL1TGCTrigger::TGCASDOut::m_tgcReadoutIndex
TGCReadoutIndex m_tgcReadoutIndex
Definition: TGCASDOut.h:14
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:220
LVL1TGCTrigger::TGCSignalType
TGCSignalType
Definition: TGCNumbering.h:51
LVL1TGCTrigger::TGCASDOut::SetParams
void SetParams(TGCSignalType signal_type, int id, double tof)
Definition: TGCASDOut.cxx:21
LVL1TGCTrigger::TGCReadoutIndex::Print
void Print() const
Definition: TGCReadoutIndex.cxx:28
LVL1TGCTrigger::TGCASDOut::Print
void Print() const
Definition: TGCASDOut.cxx:29
LVL1TGCTrigger::TGCReadoutIndex
Definition: TGCReadoutIndex.h:13
python.SystemOfUnits.ns
int ns
Definition: SystemOfUnits.py:130
LVL1TGCTrigger::TGCASDOut::m_hitID
int m_hitID
Definition: TGCASDOut.h:16