Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
17 m_useNewScheme(false),
18 m_MaxSiliconLayerNum(-1),
19 m_OffsetEndcapPixels(-1),
20 m_OffsetBarrelSCT(-1),
23 declareInterface< ITrigL2LayerNumberTool >(
this );
46 if(
sc.isFailure() ) {
47 ATH_MSG_ERROR(
"Could not retrieve Pixel DetectorManager from detStore.");
52 if(
sc.isFailure() ) {
53 ATH_MSG_ERROR(
"Could not retrieve SCT DetectorManager from detStore.");
110 if(offlineId==0)
continue;
113 if(std::abs(barrel_ec)>2)
continue;
119 auto t = std::make_tuple(barrel_ec==0 ? -100 : barrel_ec, subdetid, layer_disk);
121 std::map<std::tuple<short,short,short>,std::vector<PhiEtaHash> >
::iterator it = hashMap.find(
t);
122 if(
it==hashMap.end())
123 hashMap.insert(std::pair<std::tuple<short,short,short>,std::vector<PhiEtaHash> >(
t,std::vector<PhiEtaHash>(1,
PhiEtaHash(phi_index,
eta_index,
hash) )));
131 if(offlineId==0)
continue;
140 auto t = std::make_tuple(barrel_ec==0 ? -100 : barrel_ec, subdetid, layer_disk);
142 std::map<std::tuple<short,short,short>,std::vector<PhiEtaHash> >
::iterator it = hashMap.find(
t);
143 if(
it==hashMap.end())
144 hashMap.insert(std::pair<std::tuple<short,short,short>,std::vector<PhiEtaHash> >(
t,std::vector<PhiEtaHash>(1,
PhiEtaHash(phi_index,
eta_index,
hash))));
157 for(std::map<std::tuple<short,short,short>,std::vector<PhiEtaHash> >::
iterator it = hashMap.begin();
it!=hashMap.end();++
it, layerId++) {
159 short subdetId = std::get<1>((*it).first);
160 short barrel_ec = std::get<0>((*it).first);
161 if(barrel_ec==-100) barrel_ec = 0;
170 float minBound = 100000.0;
171 float maxBound =-100000.0;
188 ATH_MSG_ERROR(
"nullptr SiDetectorElement with idHash " << (*hIt).m_hash);
193 rc += sqrt(
C(0)*
C(0)+
C(1)*
C(1));
194 if(
p->zMin() < minBound) minBound =
p->zMin();
195 if(
p->zMax() > maxBound) maxBound =
p->zMax();
199 if(
p->rMin() < minBound) minBound =
p->rMin();
200 if(
p->rMax() > maxBound) maxBound =
p->rMax();
212 for(
int l=0;
l<layerId;
l++) {
218 oldL = oldL < M ? oldL : oldL - M;
JetConstituentVector::iterator iterator
This is an Identifier helper class for the Pixel subdetector. This class is a factory for creating co...
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
This is an Identifier helper class for the SCT subdetector. This class is a factory for creating comp...
const SiNumerology & numerology() const
Access Numerology.
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
int phi_module(const Identifier &id) const
virtual SiDetectorElement * getDetectorElement(const Identifier &id) const override
access to individual elements via Identifier
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module) const
For a single crystal.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
::StatusCode StatusCode
StatusCode definition for legacy code.
int numDisks() const
Number of disks.
int numLayers() const
Number of layers.
int layer_disk(const Identifier &id) const
int eta_module(const Identifier &id) const
size_type wafer_hash_max(void) const
int layer_disk(const Identifier &id) const
size_type wafer_hash_max(void) const
Eigen::Matrix< double, 3, 1 > Vector3D
int eta_module(const Identifier &id) const
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module, int side) const
For a single side of module.
int phi_module(const Identifier &id) const
virtual SiDetectorElement * getDetectorElement(const Identifier &id) const override
access to individual elements : via Identifier