ATLAS Offline Software
PadData.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // -*-c++-*-
6 #ifndef PADDATA_H
7 #define PADDATA_H
8 
9 
10 // local includes
11 #include <stdint.h>
12 #include <ostream>
13 
14 
15 // namespace for the NSW LVL1 related classes
16 namespace NSWL1 {
17 
30  class PadData {
31 
32  public:
33  PadData();
34  virtual ~PadData();
35 
37  virtual uint32_t id() const = 0;
38  virtual uint16_t BC_Tag() const = 0;
39 
41  virtual int sideId() const = 0;
42  virtual int moduleId() const = 0;
43  virtual int sectorId() const = 0;
44  virtual int sectorType() const = 0;
45  virtual int multipletId() const = 0;
46  virtual int gasGapId() const = 0;
47  virtual int channelId() const = 0;
48  virtual int padEtaId() const = 0;
49  virtual int padPhiId() const = 0;
50  virtual int padNumber() const = 0;
51  virtual int triggerSectorNumber() const=0;
52  }; // end of PadData class
53 
54  inline PadData::PadData() {}
55 
56  inline PadData::~PadData() {}
57 
58 } // namespace NSWL1
59 
60 std::ostream& operator<<(std::ostream& stream, NSWL1::PadData& data);
61 
62 #endif
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
NSWL1::PadData::id
virtual uint32_t id() const =0
methods for retrieving the bare data
NSWL1::PadData::multipletId
virtual int multipletId() const =0
get the multiplet (ranging from 1 to 2, 1 is at lowest |z|)
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
NSWL1::PadData::padPhiId
virtual int padPhiId() const =0
get the pad phi channel
NSWL1::PadData::sectorId
virtual int sectorId() const =0
get the sector (ranging from 1 to 8)
operator<<
std::ostream & operator<<(std::ostream &stream, NSWL1::PadData &data)
Definition: PadData.cxx:8
NSWL1::PadData
abstract class to interface the data hit fragment output from the Pad TDS
Definition: PadData.h:30
NSWL1::PadData::sideId
virtual int sideId() const =0
helper methods decoding the hit fragment position within the NSW detector
NSWL1::PadData::sectorType
virtual int sectorType() const =0
get the sector type (ranging from 0 to 1, Small and Large)
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
NSWL1::PadData::PadData
PadData()
Definition: PadData.h:54
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
NSWL1::PadData::padEtaId
virtual int padEtaId() const =0
get the pad eta channel
NSWL1::PadData::moduleId
virtual int moduleId() const =0
get the physics module (ranging from 1 at lowest R to 3 at highest R)
NSWL1::PadData::gasGapId
virtual int gasGapId() const =0
get the gas gap (ranging from 1 to 4, 1 is at lowest |z|)
NSWL1::PadData::padNumber
virtual int padNumber() const =0
NSWL1::PadData::channelId
virtual int channelId() const =0
get the channel
NSWL1::PadData::~PadData
virtual ~PadData()
Definition: PadData.h:56
NSWL1::PadData::triggerSectorNumber
virtual int triggerSectorNumber() const =0
NSWL1
A trigger trigger candidate for a stgc sector.
Definition: NSWL1Simulation.cxx:9
NSWL1::PadData::BC_Tag
virtual uint16_t BC_Tag() const =0
get the BC Tag