ATLAS Offline Software
TGCASDOut.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TrigT1TGC_TGCASDOut_H
6 #define TrigT1TGC_TGCASDOut_H
7 
9 
10 namespace LVL1TGCTrigger {
11 
12 class TGCASDOut {
13  protected:
16  int m_hitID{0}; // index in a chamber
17  int m_channel{0}; // index in a ASD board
18  double m_hitToF{0};
19 
20  public:
21  TGCASDOut() = default;
22  TGCASDOut(TGCReadoutIndex tgcrindex,
23  TGCSignalType sigtype=WIRE, int id=-1, double tof=0.);
24 
25  int operator == (const TGCASDOut& right) const { return (this==&right); }
26  int operator != (const TGCASDOut& right) const { return (this!=&right); }
27 
28  // set functons
29  void SetParams(TGCSignalType signal_type, int id, double tof);
30  void SetChannel(int ch);
31 
32  // get functions
35  int GetHitID() const { return m_hitID; }
36  int GetChannel() const { return m_channel; }
37  double GetHitToF() const { return m_hitToF; }
38 
39  // methods
40  void Print() const;
41 
42 };
43 
44 
45 } //end of namespace bracket
46 
47 #endif
sendEI_SPB.ch
ch
Definition: sendEI_SPB.py:35
LVL1TGCTrigger::TGCASDOut::GetTGCReadoutIndex
TGCReadoutIndex GetTGCReadoutIndex() const
Definition: TGCASDOut.h:33
LVL1TGCTrigger::TGCASDOut::m_channel
int m_channel
Definition: TGCASDOut.h:17
LVL1TGCTrigger::TGCASDOut::GetHitToF
double GetHitToF() const
Definition: TGCASDOut.h:37
LVL1TGCTrigger::TGCASDOut::operator==
int operator==(const TGCASDOut &right) const
Definition: TGCASDOut.h:25
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::TGCASDOut::GetSignalType
TGCSignalType GetSignalType() const
Definition: TGCASDOut.h:34
LVL1TGCTrigger::TGCASDOut
Definition: TGCASDOut.h:12
LVL1TGCTrigger::WIRE
@ WIRE
Definition: TGCNumbering.h:52
TGCReadoutIndex.h
LVL1TGCTrigger::TGCASDOut::GetChannel
int GetChannel() const
Definition: TGCASDOut.h:36
LVL1TGCTrigger
Definition: LVL1TGCTrigger.cxx:47
LVL1TGCTrigger::TGCASDOut::m_tgcReadoutIndex
TGCReadoutIndex m_tgcReadoutIndex
Definition: TGCASDOut.h:14
LVL1TGCTrigger::TGCSignalType
TGCSignalType
Definition: TGCNumbering.h:51
LVL1TGCTrigger::TGCASDOut::SetChannel
void SetChannel(int ch)
LVL1TGCTrigger::TGCASDOut::SetParams
void SetParams(TGCSignalType signal_type, int id, double tof)
Definition: TGCASDOut.cxx:21
LVL1TGCTrigger::TGCASDOut::Print
void Print() const
Definition: TGCASDOut.cxx:29
LVL1TGCTrigger::TGCReadoutIndex
Definition: TGCReadoutIndex.h:13
LVL1TGCTrigger::TGCASDOut::operator!=
int operator!=(const TGCASDOut &right) const
Definition: TGCASDOut.h:26
LVL1TGCTrigger::TGCASDOut::GetHitID
int GetHitID() const
Definition: TGCASDOut.h:35
LVL1TGCTrigger::TGCASDOut::m_hitID
int m_hitID
Definition: TGCASDOut.h:16