ATLAS Offline Software
Loading...
Searching...
No Matches
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
20namespace 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
Base class for the data coming from one SL board.
virtual SectorLogicWord getWordFormat() const =0
Get data in 32 bit word format:
Lvl1MuSectorLogicData & operator=(const Lvl1MuSectorLogicData &right)
virtual void printOut(std::ostream &out) const
print out data
virtual const Lvl1MuSectorLogicData & convertFromWordFormat(const SectorLogicWord &)=0
Convert SectorLogicData from 32 bit word data.
friend std::ostream & operator<<(std::ostream &, const Lvl1MuSectorLogicData &)
Namespace for the LVL1 muon interface classes.