ATLAS Offline Software
RPCsimuData.h
Go to the documentation of this file.
1 /* // -*- C++ -*- */
2 
3 /*
4  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 
8 #ifndef RPCSIMUDATA_H
9 #define RPCSIMUDATA_H
10 
11 #include <iostream>
12 #include <list>
13 
14 #include "TrigT1RPClogic/RPCdata.h"
17 
18 class RPCsimuData : public RPCdata
19 {
20  public:
21  typedef std::list < MuonSimuTrack > MuonList;
22  typedef std::list < RPCsimuDigit > DigitList;
23 
24  private:
28 
29 
30  public:
31  RPCsimuData();
32  RPCsimuData(const RPCsimuData&) = default;
33  ~RPCsimuData();
34 
36 
37  public:
38  void load_data(MuonSimuTrack&);
39  void load_data(RPCsimuDigit&);
40 
41  const MuonList& muon_tracks(void) const {return m_muon_tracks;}
42  const DigitList& eta_digits(void) const {return m_eta_digits;}
43  const DigitList& phi_digits(void) const {return m_phi_digits;}
44 
47 
50  virtual int how_many(int type,
51  int sector,
52  int station,
53  int layer,
54  int chamber,
55  int strip ) const;
56 
57  void PrintElement(std::ostream&,std::string,bool) const;
58 };
59 
60 
61 template <class X> X& operator<<(X& stream,const RPCsimuData& data)
62 {
63  std::ostringstream display;
64  data.PrintElement(display,data.name(),false);
65  stream << display.str();
66  return stream;
67 }
68 
69 #endif
operator<<
X & operator<<(X &stream, const RPCsimuData &data)
Definition: RPCsimuData.h:61
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
SiliconTech::strip
@ strip
MuonSimuTrack.h
RPCsimuData::how_many
virtual int how_many(int type, int sector, int station, int layer, int chamber, int strip) const
Definition: RPCsimuData.cxx:108
RPCsimuData::operator<<
RPCsimuData & operator<<(MuonSimuTrack &)
Definition: RPCsimuData.cxx:68
RPCsimuData::DigitList
std::list< RPCsimuDigit > DigitList
Definition: RPCsimuData.h:22
calibdata.chamber
chamber
Definition: calibdata.py:32
RPCsimuData::eta_digits
const DigitList & eta_digits(void) const
Definition: RPCsimuData.h:42
RPCsimuData::m_eta_digits
DigitList m_eta_digits
Definition: RPCsimuData.h:26
RPCsimuData::PrintElement
void PrintElement(std::ostream &, std::string, bool) const
Definition: RPCsimuData.cxx:151
RPCsimuData::load_data
void load_data(MuonSimuTrack &)
Definition: RPCsimuData.cxx:39
RPCsimuData::eta_digits_list
RPCdata::digitList eta_digits_list(void) const
Definition: RPCsimuData.cxx:82
RPCsimuData::muon_tracks
const MuonList & muon_tracks(void) const
Definition: RPCsimuData.h:41
RPCsimuDigit.h
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
RPCsimuData::m_muon_tracks
MuonList m_muon_tracks
Definition: RPCsimuData.h:25
Monitored::X
@ X
Definition: HistogramFillerUtils.h:24
RPCsimuData::MuonList
std::list< MuonSimuTrack > MuonList
Definition: RPCsimuData.h:21
RPCsimuData::RPCsimuData
RPCsimuData()
Definition: RPCsimuData.cxx:9
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
pyroot.display
display
Definition: pyroot.py:44
RPCdata
Definition: RPCdata.h:19
RPCdata.h
RPCsimuData::m_phi_digits
DigitList m_phi_digits
Definition: RPCsimuData.h:27
RPCsimuData::phi_digits_list
RPCdata::digitList phi_digits_list(void) const
Definition: RPCsimuData.cxx:95
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
RPCsimuData::RPCsimuData
RPCsimuData(const RPCsimuData &)=default
RPCdata::digitList
std::list< const RPCdigit * > digitList
Definition: RPCdata.h:21
RPCsimuData::~RPCsimuData
~RPCsimuData()
Definition: RPCsimuData.cxx:17
RPCsimuData::operator=
RPCsimuData operator=(const RPCsimuData &)
Definition: RPCsimuData.cxx:25
RPCsimuData
Definition: RPCsimuData.h:19
RPCsimuDigit
Definition: RPCsimuDigit.h:16
RPCsimuData::phi_digits
const DigitList & phi_digits(void) const
Definition: RPCsimuData.h:43
MuonSimuTrack
Definition: MuonSimuTrack.h:56