ATLAS Offline Software
PADpatterns.h
Go to the documentation of this file.
1 /* // -*- C++ -*- */
2 
3 /*
4  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 
8 #ifndef PADPATTERNS_H
9 #define PADPATTERNS_H
10 
11 #include <memory>
12 #include <string>
13 #include <utility>
14 #include <list>
15 #include "TrigT1RPClogic/CMAdata.h"
16 #include "TrigT1RPChardware/Pad.h"
18 
20 {
21  //public:
22  // typedef std::list< const CMApatterns* > CMApatternsList;
23 
24  private:
25  int m_sector;
26  int m_pad_id;
27  unsigned long int m_debug;
28 
30 
31 
32  std::unique_ptr<Pad> m_pad;
33 
34  public:
35  PADpatterns(int,int,unsigned long int);
36 
37  PADpatterns(const PADpatterns&);
38 
40 
41  bool operator==(const PADpatterns&) const;
42  bool operator!=(const PADpatterns&) const;
43  bool operator< (const PADpatterns&) const;
44 
47 
48  int sector(void) const {return m_sector;}
49  int pad_id(void) const {return m_pad_id;}
50  unsigned long int debug(void) const {return m_debug;}
51 
52  const CMAdata::PatternsList& cma_patterns(void) const
53  {return m_cma_patterns;}
54 
55  Pad* give_pad(const RpcCablingCondData* readCdo, int NOBXS, int BCZERO);
56 
57  void Print (std::ostream&,bool) const;
58 };
59 
60 template <class X> X& operator<<(X& stream,const PADpatterns& data)
61 {
62  std::ostringstream display;
63  data.Print(display,false);
64  stream << display.str();
65  return stream;
66 }
67 
68 
69 #endif
PADpatterns::operator!=
bool operator!=(const PADpatterns &) const
Definition: PADpatterns.cxx:50
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
PADpatterns::cma_patterns
const CMAdata::PatternsList & cma_patterns(void) const
Definition: PADpatterns.h:52
PADpatterns::m_sector
int m_sector
Definition: PADpatterns.h:25
PADpatterns::pad_id
int pad_id(void) const
Definition: PADpatterns.h:49
PADpatterns::m_cma_patterns
CMAdata::PatternsList m_cma_patterns
Definition: PADpatterns.h:29
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
RpcCablingCondData
Definition: RpcCablingCondData.h:21
Monitored::X
@ X
Definition: HistogramFillerUtils.h:24
PADpatterns
Definition: PADpatterns.h:20
CMAdata::PatternsList
std::list< CMApatterns * > PatternsList
Definition: CMAdata.h:22
PADpatterns::m_debug
unsigned long int m_debug
Definition: PADpatterns.h:27
PADpatterns::PADpatterns
PADpatterns(int, int, unsigned long int)
Definition: PADpatterns.cxx:11
CMAdata.h
PADpatterns::load_cma_patterns
void load_cma_patterns(CMApatterns *)
Definition: PADpatterns.cxx:67
PADpatterns::m_pad
std::unique_ptr< Pad > m_pad
Definition: PADpatterns.h:32
pyroot.display
display
Definition: pyroot.py:44
PADpatterns::operator==
bool operator==(const PADpatterns &) const
Definition: PADpatterns.cxx:40
PADpatterns::give_pad
Pad * give_pad(const RpcCablingCondData *readCdo, int NOBXS, int BCZERO)
Definition: PADpatterns.cxx:81
RPCtrigDataObject
Definition: RPCtrigDataObject.h:15
PADpatterns::Print
void Print(std::ostream &, bool) const
Definition: PADpatterns.cxx:149
Pad.h
PADpatterns::operator<
bool operator<(const PADpatterns &) const
Definition: PADpatterns.cxx:57
RpcCablingCondData.h
PADpatterns::sector
int sector(void) const
Definition: PADpatterns.h:48
Pad
Definition: Pad.h:10
CMApatterns
Definition: CMApatterns.h:21
PADpatterns::operator<<
PADpatterns & operator<<(CMApatterns *)
Definition: PADpatterns.cxx:74
PADpatterns::m_pad_id
int m_pad_id
Definition: PADpatterns.h:26
PADpatterns::debug
unsigned long int debug(void) const
Definition: PADpatterns.h:50
operator<<
X & operator<<(X &stream, const PADpatterns &data)
Definition: PADpatterns.h:60
PADpatterns::operator=
PADpatterns operator=(const PADpatterns &)
Definition: PADpatterns.cxx:27