ATLAS Offline Software
MuonVolumeHandle.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONVOLUMEHANDLE_H
6 #define MUONVOLUMEHANDLE_H
7 
9 
10 
12 #include <QString>
13 
14 /*
15  * MuonVolumeHandle.h
16  *
17  *
18  * Created by Edward Moyse on 6/11/10.
19  *
20  */
21 
22 
24 public:
26  const MuonChamberState& mcs, const SbMatrix& accumTrans,const MuonGM::MuonStation * station,
27  const QList<const std::map<GeoPVConstLink, float>*>& t0s )
28  : VolumeHandle(shared, parent, pv, childNumber, mcs, accumTrans), m_station(station), m_chamberT0s(t0s)
29  {}
30 
31  virtual ~MuonVolumeHandle(){};
32  virtual const MuonGM::MuonStation * station() const {return m_station;};
33  virtual QString getDescriptiveName() const {
34  if (!m_station) return QString("Unknown");
35  QString name = QString(m_station->getStationName().c_str());
37 
38  return name;
39  }
40 
41  virtual QString muonChamberT0(unsigned int i) const {
42  if (static_cast<int>(i)>=m_chamberT0s.size())
43  return "ERROR bad T0 source";
44  const std::map<GeoPVConstLink, float>* t0map = m_chamberT0s.at(i);
45  const QString no_info("?");
46  if (!t0map)
47  return no_info;
48  const std::map<GeoPVConstLink, float>::const_iterator it = t0map->find(geoPVConstLink());
49  return it==t0map->end() ? no_info : QString::number(it->second);
50  }
51 
52 private:
54  const QList<const std::map<GeoPVConstLink, float>*>& m_chamberT0s;
55 };
56 
57 #endif
MuonVolumeHandle::~MuonVolumeHandle
virtual ~MuonVolumeHandle()
Definition: MuonVolumeHandle.h:31
MuonVolumeHandle::getDescriptiveName
virtual QString getDescriptiveName() const
Definition: MuonVolumeHandle.h:33
TRTCalib_cfilter.t0s
list t0s
Definition: TRTCalib_cfilter.py:110
VolumeHandle::MuonChamberState
MuonChamberState
Definition: VolumeHandle.h:24
skel.it
it
Definition: skel.GENtoEVGEN.py:396
VolumeHandle::geoPVConstLink
GeoPVConstLink geoPVConstLink() const
Definition: VolumeHandle.cxx:163
VolumeHandle::parent
VolumeHandle * parent()
Definition: VolumeHandle.h:144
MuonGM::MuonStation::getStationName
const std::string & getStationName() const
like BMS5, T1F1, CSL1
Definition: MuonStation.h:165
MuonVolumeHandle::m_station
const MuonGM::MuonStation * m_station
Definition: MuonVolumeHandle.h:53
MuonVolumeHandle::station
virtual const MuonGM::MuonStation * station() const
Definition: MuonVolumeHandle.h:32
MuonVolumeHandle::MuonVolumeHandle
MuonVolumeHandle(VolumeHandleSharedData *shared, VolumeHandle *parent, const GeoPVConstLink &pv, int childNumber, const MuonChamberState &mcs, const SbMatrix &accumTrans, const MuonGM::MuonStation *station, const QList< const std::map< GeoPVConstLink, float > * > &t0s)
Definition: MuonVolumeHandle.h:25
MuonGM::MuonStation::getPhiIndex
int getPhiIndex() const
a la AMDB
Definition: MuonStation.h:162
lumiFormat.i
int i
Definition: lumiFormat.py:85
MuonGM::MuonStation
Definition: MuonStation.h:51
VolumeHandleSharedData
Definition: VolumeHandleSharedData.h:25
VolumeHandle
Definition: VolumeHandle.h:21
python.selection.number
number
Definition: selection.py:20
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
VolumeHandle::childNumber
int childNumber() const
Definition: VolumeHandle.h:151
MuonVolumeHandle::m_chamberT0s
const QList< const std::map< GeoPVConstLink, float > * > & m_chamberT0s
Definition: MuonVolumeHandle.h:54
MuonVolumeHandle
Definition: MuonVolumeHandle.h:23
MuonVolumeHandle::muonChamberT0
virtual QString muonChamberT0(unsigned int i) const
Definition: MuonVolumeHandle.h:41
MuonGM::MuonStation::getEtaIndex
int getEtaIndex() const
a la AMDB
Definition: MuonStation.h:163
python.changerun.pv
pv
Definition: changerun.py:81
MuonStation.h
VolumeHandle.h