ATLAS Offline Software
Loading...
Searching...
No Matches
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"
10
11namespace 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
21void 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
29void TGCASDOut::Print() const
30{
31 const char* const strsig[3]= { "N/A", "Wire", "Strip" };
32
33 m_tgcReadoutIndex.Print();
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
TGCSignalType m_signalType
Definition TGCASDOut.h:15
TGCReadoutIndex m_tgcReadoutIndex
Definition TGCASDOut.h:14
void SetParams(TGCSignalType signal_type, int id, double tof)
Definition TGCASDOut.cxx:21