ATLAS Offline Software
L1CaloRdo.h
Go to the documentation of this file.
1 
2 #ifndef L1CALO_RDO_H
3 #define L1CALO_RDO_H
4 
5 #include <vector>
6 #include <list>
7 #include <string>
8 #include <cstdint>
9 
10 
12 
13 
14 class L1CaloRdoRodInfo;
15 
16 class L1CaloRdo
17 {
18 public:
19  virtual ~L1CaloRdo();
20 
21  int getCrate( ) const;
22  int getModule( ) const;
23  int getEta( ) const;
24  int getPhi( ) const;
25  int getLayer( ) const;
26  int getValue( size_t slice ) const;
27  int getValue( ) const;
28  int getFlag( size_t slice ) const;
29  int getFlag( ) const;
30  int getL1aPos( ) const;
31 
33 #ifdef OFFLINE_DECODER
34  void setWord0( uint32_t val, size_t slice ){ if(slice < m_word0s.size()) m_word0s[slice] = val; };
35  void setWord1( uint32_t val, size_t slice ){ if(slice < m_word1s.size()) m_word1s[slice] = val; };
36  uint32_t getWord0( size_t slice ) const { return (slice < m_word0s.size()) ? m_word0s[slice] : 0; };
37  uint32_t getWord1( size_t slice ) const { return (slice < m_word1s.size()) ? m_word1s[slice] : 0; };
38 #endif
39  const std::list<L1CaloRdoRodInfo>::const_iterator& getRodInfo( ) const;
40  int getModuleStatus( ) const;
41 
42  bool getModuleErrorGlinkParity( ) const;
43  bool getModuleErrorGlinkProtocol( ) const;
44  bool getModuleErrorBcnMismatch( ) const;
45  bool getModuleErrorFifoOverflow( ) const;
46  bool getModuleErrorSpecific( ) const;
47  bool getModuleErrorUnused( ) const;
48  bool getModuleErrorGlinkTimeout( ) const;
49  bool getModuleErrorGlinkDown( ) const;
50 
51  size_t numSlices( ) const;
52  bool sameDatum( const L1CaloRdo& rhs ) const;
53 
54  void setValue( int val, size_t slice );
55  void setValue( int val );
56  void setFlag( int flag, size_t slice );
57  void setFlag( int flag );
58  void setRodInfo( std::list<L1CaloRdoRodInfo>::const_iterator& rodInfo );
59 
60  void info( ) const;
61  virtual void infoSpecific( ) const;
62  virtual std::string getType( ) const = 0;
63 
64 protected:
65  L1CaloRdo( int crate, int module, int eta, int phi,
66  int layer, int numSlices );
67 
68  void setRegion( const L1CaloDetectorRegion& region );
69 
70 private:
72 
73  int m_crate;
74  int m_module;
75  int m_eta;
76  int m_phi;
77  int m_layer;
78  std::vector<int> m_vals;
79  std::vector<int> m_flags;
80  int m_l1aPos;
81 
83 #ifdef OFFLINE_DECODER
84  std::vector<uint32_t> m_word0s,m_word1s;
85 #endif
86  std::list<L1CaloRdoRodInfo>::const_iterator m_rodInfo;
87 };
88 
89 bool operator<(const L1CaloRdo& lhs, const L1CaloRdo& rhs);
90 
91 #endif
L1CaloRdo::m_rodInfo
std::list< L1CaloRdoRodInfo >::const_iterator m_rodInfo
Definition: L1CaloRdo.h:86
L1CaloRdo::m_crate
int m_crate
Definition: L1CaloRdo.h:73
L1CaloRdo::getModuleErrorGlinkParity
bool getModuleErrorGlinkParity() const
Definition: L1CaloRdo.cxx:156
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
L1CaloRdo::getModule
int getModule() const
Definition: L1CaloRdo.cxx:79
L1CaloRdo::infoSpecific
virtual void infoSpecific() const
Definition: L1CaloRdo.cxx:277
L1CaloRdo::setRodInfo
void setRodInfo(std::list< L1CaloRdoRodInfo >::const_iterator &rodInfo)
Definition: L1CaloRdo.cxx:252
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
L1CaloRdo::getRegion
L1CaloDetectorRegion getRegion() const
Definition: L1CaloRdo.cxx:137
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
L1CaloRdo::getPhi
int getPhi() const
Definition: L1CaloRdo.cxx:91
L1CaloRdo::m_vals
std::vector< int > m_vals
Definition: L1CaloRdo.h:78
L1CaloRdo::getL1aPos
int getL1aPos() const
Definition: L1CaloRdo.cxx:131
L1CaloRdo::m_region
L1CaloDetectorRegion m_region
Definition: L1CaloRdo.h:82
L1CaloRdo::setValue
void setValue(int val, size_t slice)
Definition: L1CaloRdo.cxx:226
L1CaloRdo::getModuleErrorUnused
bool getModuleErrorUnused() const
Definition: L1CaloRdo.cxx:186
L1CaloRdo::m_phi
int m_phi
Definition: L1CaloRdo.h:76
L1CaloRdoRodInfo
Definition: L1CaloRdoRodInfo.h:11
L1CaloRdo::getType
virtual std::string getType() const =0
python.PyAthena.module
module
Definition: PyAthena.py:131
perfmonmt-refit.slice
slice
Definition: perfmonmt-refit.py:52
L1CaloRdo::L1CaloRdo
L1CaloRdo()
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
L1CaloRdo::m_eta
int m_eta
Definition: L1CaloRdo.h:75
master.flag
bool flag
Definition: master.py:29
L1CaloRdo::getModuleErrorFifoOverflow
bool getModuleErrorFifoOverflow() const
Definition: L1CaloRdo.cxx:174
L1CaloRdo::numSlices
size_t numSlices() const
Definition: L1CaloRdo.cxx:204
L1CaloRdo::getModuleErrorGlinkProtocol
bool getModuleErrorGlinkProtocol() const
Definition: L1CaloRdo.cxx:162
L1CaloRdo::m_module
int m_module
Definition: L1CaloRdo.h:74
L1CaloRdo::info
void info() const
Definition: L1CaloRdo.cxx:258
L1CaloDetectorRegion.h
L1CaloRdo::m_flags
std::vector< int > m_flags
Definition: L1CaloRdo.h:79
L1CaloRdo::getModuleErrorBcnMismatch
bool getModuleErrorBcnMismatch() const
Definition: L1CaloRdo.cxx:168
L1CaloRdo::m_l1aPos
int m_l1aPos
Definition: L1CaloRdo.h:80
L1CaloRdo::m_layer
int m_layer
Definition: L1CaloRdo.h:77
L1CaloRdo::getModuleErrorGlinkTimeout
bool getModuleErrorGlinkTimeout() const
Definition: L1CaloRdo.cxx:192
operator<
bool operator<(const L1CaloRdo &lhs, const L1CaloRdo &rhs)
Definition: L1CaloRdo.cxx:49
L1CaloDetectorRegion
Definition: L1CaloDetectorRegion.h:8
L1CaloRdo::~L1CaloRdo
virtual ~L1CaloRdo()
Definition: L1CaloRdo.cxx:43
L1CaloRdo::getModuleStatus
int getModuleStatus() const
Definition: L1CaloRdo.cxx:150
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
L1CaloRdo::setFlag
void setFlag(int flag, size_t slice)
Definition: L1CaloRdo.cxx:239
L1CaloRdo::getLayer
int getLayer() const
Definition: L1CaloRdo.cxx:97
L1CaloRdo::setRegion
void setRegion(const L1CaloDetectorRegion &region)
Definition: L1CaloRdo.cxx:283
L1CaloRdo::getModuleErrorGlinkDown
bool getModuleErrorGlinkDown() const
Definition: L1CaloRdo.cxx:198
L1CaloRdo::getFlag
int getFlag() const
Definition: L1CaloRdo.cxx:125
L1CaloRdo::getEta
int getEta() const
Definition: L1CaloRdo.cxx:85
L1CaloRdo::sameDatum
bool sameDatum(const L1CaloRdo &rhs) const
Definition: L1CaloRdo.cxx:210
L1CaloRdo::getCrate
int getCrate() const
Definition: L1CaloRdo.cxx:73
L1CaloRdo::getValue
int getValue() const
Definition: L1CaloRdo.cxx:111
L1CaloRdo::getModuleErrorSpecific
bool getModuleErrorSpecific() const
Definition: L1CaloRdo.cxx:180
L1CaloRdo
Definition: L1CaloRdo.h:17
L1CaloRdo::getRodInfo
const std::list< L1CaloRdoRodInfo >::const_iterator & getRodInfo() const
Definition: L1CaloRdo.cxx:144