ATLAS Offline Software
Lvl1MuSectorLogicData.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 /*
3  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
4 */
5 #ifndef TRIGT1INTERFACES_LVL1MUSECTORLOGICDATA_H
6 #define TRIGT1INTERFACES_LVL1MUSECTORLOGICDATA_H
7 
8 // System include(s):
9 #include <iosfwd>
10 
20 namespace LVL1MUONIF {
21 
35 
36  public:
40 
42 
43  // assume int is 4byte:
44  typedef unsigned int SectorLogicWord;
45 
47  int bcid() const { return m_bcid; }
48  int roi( size_t id ) const { return m_roi[ id ]; }
49  int ovl( size_t id ) const { return m_ovl[ id ]; }
50  int pt( size_t id ) const { return m_pt[ id ]; }
51  int charge( size_t id ) const { return m_charge[ id ]; }
52  bool is2candidates( size_t id ) const { return m_2candidates[ id ]; }
53 
56  void bcid( int value ) { m_bcid = value; }
57  void roi( size_t id, int value ) { m_roi[ id ] = value; }
58  void ovl( size_t id, int value ) { m_ovl[ id ] = value; }
59  void pt( size_t id, int value ) { m_pt[ id ] = value; }
60  void charge( size_t id, int value ) { m_charge[ id ] = value; }
61  void set2candidates( size_t id ) { m_2candidates[ id ] = true; }
62  void clear2candidates( size_t id ) { m_2candidates[ id ] = false; }
63 
64  void clear();
65 
66  friend std::ostream& operator<<( std::ostream&, const Lvl1MuSectorLogicData& );
67 
69  virtual SectorLogicWord getWordFormat() const = 0;
72 
73  int getSystemId() const { return m_id_system; }
74 
75  protected:
77  virtual void printOut( std::ostream& out ) const;
78 
80  int m_roi[ 2 ];
81  int m_ovl[ 2 ];
82  int m_pt[ 2 ];
83  bool m_2candidates[ 2 ];
84  int m_bcid;
85  int m_charge[ 2 ];
87 
88  }; // class Lvl1MuSectorLogicData
89 
90 } // namespace LVL1MUONIF
91 
92 #endif // TRIGT1INTERFACES_LVL1MUSECTORLOGICDATA_H
LVL1MUONIF::Lvl1MuSectorLogicData
Base class for the data coming from one SL board.
Definition: Lvl1MuSectorLogicData.h:34
LVL1MUONIF::Lvl1MuSectorLogicData::operator<<
friend std::ostream & operator<<(std::ostream &, const Lvl1MuSectorLogicData &)
Definition: Lvl1MuSectorLogicData.cxx:47
LVL1MUONIF::Lvl1MuSectorLogicData::pt
int pt(size_t id) const
Definition: Lvl1MuSectorLogicData.h:50
LVL1MUONIF::Lvl1MuSectorLogicData::m_2candidatesInSector
bool m_2candidatesInSector
Definition: Lvl1MuSectorLogicData.h:79
LVL1MUONIF::Lvl1MuSectorLogicData::roi
void roi(size_t id, int value)
Definition: Lvl1MuSectorLogicData.h:57
LVL1MUONIF
Namespace for the LVL1 muon interface classes.
Definition: Lvl1MuBarrelSectorLogicData.cxx:9
LVL1MUONIF::Lvl1MuSectorLogicData::bcid
int bcid() const
Definition: Lvl1MuSectorLogicData.h:47
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
LVL1MUONIF::Lvl1MuSectorLogicData::m_2candidates
bool m_2candidates[2]
Definition: Lvl1MuSectorLogicData.h:83
athena.value
value
Definition: athena.py:124
LVL1MUONIF::Lvl1MuSectorLogicData::m_charge
int m_charge[2]
Definition: Lvl1MuSectorLogicData.h:85
LVL1MUONIF::Lvl1MuSectorLogicData::getSystemId
int getSystemId() const
Definition: Lvl1MuSectorLogicData.h:73
LVL1MUONIF::Lvl1MuSectorLogicData::getWordFormat
virtual SectorLogicWord getWordFormat() const =0
Get data in 32 bit word format:
LVL1MUONIF::Lvl1MuSectorLogicData::clear2candidates
void clear2candidates(size_t id)
Definition: Lvl1MuSectorLogicData.h:62
LVL1MUONIF::Lvl1MuSectorLogicData::pt
void pt(size_t id, int value)
Definition: Lvl1MuSectorLogicData.h:59
LVL1MUONIF::Lvl1MuSectorLogicData::m_ovl
int m_ovl[2]
Definition: Lvl1MuSectorLogicData.h:81
LVL1MUONIF::Lvl1MuSectorLogicData::clear2candidatesInSector
void clear2candidatesInSector()
Definition: Lvl1MuSectorLogicData.h:55
LVL1MUONIF::Lvl1MuSectorLogicData::m_pt
int m_pt[2]
Definition: Lvl1MuSectorLogicData.h:82
LVL1MUONIF::Lvl1MuSectorLogicData::Lvl1MuSectorLogicData
Lvl1MuSectorLogicData()
Definition: Lvl1MuSectorLogicData.cxx:13
LVL1MUONIF::Lvl1MuSectorLogicData::printOut
virtual void printOut(std::ostream &out) const
print out data
Definition: Lvl1MuSectorLogicData.cxx:54
LVL1MUONIF::Lvl1MuSectorLogicData::ovl
int ovl(size_t id) const
Definition: Lvl1MuSectorLogicData.h:49
LVL1MUONIF::Lvl1MuSectorLogicData::m_id_system
int m_id_system
Definition: Lvl1MuSectorLogicData.h:86
LVL1MUONIF::Lvl1MuSectorLogicData::clear
void clear()
Definition: Lvl1MuSectorLogicData.cxx:80
LVL1MUONIF::Lvl1MuSectorLogicData::~Lvl1MuSectorLogicData
virtual ~Lvl1MuSectorLogicData()
Definition: Lvl1MuSectorLogicData.h:39
LVL1MUONIF::Lvl1MuSectorLogicData::roi
int roi(size_t id) const
Definition: Lvl1MuSectorLogicData.h:48
LVL1MUONIF::Lvl1MuSectorLogicData::m_roi
int m_roi[2]
Definition: Lvl1MuSectorLogicData.h:80
LVL1MUONIF::Lvl1MuSectorLogicData::set2candidatesInSector
void set2candidatesInSector()
Definition: Lvl1MuSectorLogicData.h:54
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:220
LVL1MUONIF::Lvl1MuSectorLogicData::ovl
void ovl(size_t id, int value)
Definition: Lvl1MuSectorLogicData.h:58
LVL1MUONIF::Lvl1MuSectorLogicData::SectorLogicWord
unsigned int SectorLogicWord
Definition: Lvl1MuSectorLogicData.h:44
LVL1MUONIF::Lvl1MuSectorLogicData::charge
int charge(size_t id) const
Definition: Lvl1MuSectorLogicData.h:51
LVL1MUONIF::Lvl1MuSectorLogicData::charge
void charge(size_t id, int value)
Definition: Lvl1MuSectorLogicData.h:60
LVL1MUONIF::Lvl1MuSectorLogicData::bcid
void bcid(int value)
Definition: Lvl1MuSectorLogicData.h:56
LVL1MUONIF::Lvl1MuSectorLogicData::convertFromWordFormat
virtual const Lvl1MuSectorLogicData & convertFromWordFormat(const SectorLogicWord &)=0
Convert SectorLogicData from 32 bit word data.
LVL1MUONIF::Lvl1MuSectorLogicData::is2candidates
bool is2candidates(size_t id) const
Definition: Lvl1MuSectorLogicData.h:52
LVL1MUONIF::Lvl1MuSectorLogicData::operator=
Lvl1MuSectorLogicData & operator=(const Lvl1MuSectorLogicData &right)
Definition: Lvl1MuSectorLogicData.cxx:31
LVL1MUONIF::Lvl1MuSectorLogicData::is2candidatesInSector
bool is2candidatesInSector() const
Definition: Lvl1MuSectorLogicData.h:46
LVL1MUONIF::Lvl1MuSectorLogicData::set2candidates
void set2candidates(size_t id)
Definition: Lvl1MuSectorLogicData.h:61
LVL1MUONIF::Lvl1MuSectorLogicData::m_bcid
int m_bcid
Definition: Lvl1MuSectorLogicData.h:84