ATLAS Offline Software
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
TrigInDetRoadPredictorTool Class Reference

#include <TrigInDetRoadPredictorTool.h>

Inheritance diagram for TrigInDetRoadPredictorTool:
Collaboration diagram for TrigInDetRoadPredictorTool:

Classes

struct  DetectorElementDescription
 
struct  DetectorElementsCollection
 
struct  LayerBoundary
 
struct  LayerDescription
 
struct  SearchInterval
 
struct  VolumeBoundary
 

Public Member Functions

 TrigInDetRoadPredictorTool (const std::string &, const std::string &, const IInterface *)
 
virtual StatusCode initialize () override
 
virtual int getRoad (const std::vector< const Trk::SpacePoint * > &, std::vector< const InDetDD::SiDetectorElement * > &, const EventContext &) const override
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
 
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

void buildDetectorDescription ()
 
void createHitBoxes ()
 
void addNewElement (unsigned int, short, short, const InDetDD::SiDetectorElement *)
 
void findDetectorElements (unsigned int, const SearchInterval &, std::vector< unsigned int > &, bool) const
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

ToolHandle< ITrigL2LayerNumberToolm_layerNumberTool {this, "LayerNumberTool", "TrigL2LayerNumberToolITk"}
 
Gaudi::Property< float > m_min_rz_rw {this, "MinRzRoadWidth", 3.0, "Minimum rz road width"}
 
Gaudi::Property< float > m_max_rz_rw {this, "MaxRzRoadWidth", 15.0, "Maximum rz road width"}
 
Gaudi::Property< float > m_min_rphi_rw {this, "MinRPhiRoadWidth", 3.0, "Minimum rphi road width"}
 
Gaudi::Property< float > m_max_rphi_rw {this, "MaxRPhiRoadWidth", 15.0, "Maximum rphi road width"}
 
Gaudi::Property< float > m_min_phi_rw {this, "MinPhiRoadWidth", 0.05, "Minimum phi road width"}
 
Gaudi::Property< float > m_max_phi_rw {this, "MaxPhiRoadWidth", 0.1, "Maximum phi road width"}
 
SG::ReadCondHandleKey< AtlasFieldCacheCondObjm_fieldCondObjInputKey
 
std::vector< VolumeBoundarym_vBoundaries
 
std::vector< LayerBoundarym_lBoundaries
 
std::map< unsigned int, LayerDescriptionm_layerMap
 
const InDetDD::PixelDetectorManagerm_pixelManager {nullptr}
 
const InDetDD::SCT_DetectorManagerm_stripManager {nullptr}
 
const PixelIDm_pixelId {nullptr}
 
const SCT_IDm_stripId {nullptr}
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Definition at line 35 of file TrigInDetRoadPredictorTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ TrigInDetRoadPredictorTool()

TrigInDetRoadPredictorTool::TrigInDetRoadPredictorTool ( const std::string &  t,
const std::string &  n,
const IInterface *  p 
)

Definition at line 29 of file TrigInDetRoadPredictorTool.cxx.

31  : AthAlgTool(t,n,p)
32 {
33  declareInterface< ITrigInDetRoadPredictorTool >( this );
34 }

Member Function Documentation

◆ addNewElement()

void TrigInDetRoadPredictorTool::addNewElement ( unsigned int  layerID,
short  phi_idx,
short  eta_idx,
const InDetDD::SiDetectorElement p 
)
private

Definition at line 59 of file TrigInDetRoadPredictorTool.cxx.

59  {
60 
61  unsigned int hash = p->identifyHash();
62 
63  DetectorElementDescription ded(hash);
64 
65  //find corners in the global c.s.
66 
67  float de_len = 0.5*p->design().length();
68  float de_wmax = 0.5*p->design().maxWidth();
69  float de_wmin = 0.5*p->design().minWidth();
70 
71  float dPhi[4] = {de_wmax, de_wmin, -de_wmin, -de_wmax};//locX
72  float dEta[4] = {de_len, -de_len, -de_len, de_len}; //locY
73 
74  const Amg::Vector3D& C = p->center();
75  const Amg::Vector3D& PhiAx = p->phiAxis();
76  const Amg::Vector3D& EtaAx = p->etaAxis();
77 
78  for(int ic=0; ic<4; ic++) {
79  float x = C.x() + PhiAx.x()*dPhi[ic] + EtaAx.x()*dEta[ic];
80  float y = C.y() + PhiAx.y()*dPhi[ic] + EtaAx.y()*dEta[ic];
81  float z = C.z() + PhiAx.z()*dPhi[ic] + EtaAx.z()*dEta[ic];
82  ded.m_c[ic][0] = std::sqrt(x*x+y*y);//r
83  ded.m_c[ic][1] = z;
84  ded.m_c[ic][2] = std::atan2(y,x);//phi
85  }
86 
87  auto& L = (*m_layerMap.find(layerID)).second;
88 
89  short prim_idx = L.m_mappingType != 2 ? phi_idx : eta_idx;
90  short sec_idx = L.m_mappingType != 2 ? eta_idx : phi_idx;
91 
92  if(L.m_mappingType == 0) {//barrel: primary index is phi, eta/z is secondary
93  ded.m_ref = C.z();
94  ded.m_index = sec_idx;
95  ded.m_minBound = ded.m_c[0][1];
96  ded.m_maxBound = ded.m_c[0][1];
97  for(int ic=1;ic<4;ic++) {
98  if(ded.m_minBound > ded.m_c[ic][1]) ded.m_minBound = ded.m_c[ic][1];
99  if(ded.m_maxBound < ded.m_c[ic][1]) ded.m_maxBound = ded.m_c[ic][1];
100  }
101  }
102 
103  if(L.m_mappingType == 1) {//pixel endcap layers : primary index is phi, eta/R is secondary
104  ded.m_ref = C.perp();
105  ded.m_index = sec_idx;
106  ded.m_minBound = ded.m_c[0][0];
107  ded.m_maxBound = ded.m_c[0][0];
108  for(int ic=1;ic<4;ic++) {
109  if(ded.m_minBound > ded.m_c[ic][0]) ded.m_minBound = ded.m_c[ic][0];
110  if(ded.m_maxBound < ded.m_c[ic][0]) ded.m_maxBound = ded.m_c[ic][0];
111  }
112  }
113 
114  if(L.m_mappingType == 2) {//strip endcaps: primary index is R, phi is secondary, layers are double
115  ded.m_ref = std::atan2(C.y(),C.x());
116  ded.m_index = sec_idx;
117  ded.m_minBound = ded.m_c[0][2];
118  ded.m_maxBound = ded.m_c[0][2];
119  for(int ic=1;ic<4;ic++) {
120  if(ded.m_minBound > ded.m_c[ic][2]) ded.m_minBound = ded.m_c[ic][2];
121  if(ded.m_maxBound < ded.m_c[ic][2]) ded.m_maxBound = ded.m_c[ic][2];
122  }
123  }
124 
125  //put DetEl description into the corresponding collection
126 
127  int detColIdx = 0;
128 
129  if(L.m_nSubLayers == 2 && (hash % 2) != 0) {//double layer, odd detector elements
130  detColIdx = 1;
131  }
132 
133  if(L.m_colls[ detColIdx].find(prim_idx) == L.m_colls[ detColIdx].end()) {
134 
135  float primBounds[2] = {0,0};
136  if(L.m_mappingType == 2) {
137  primBounds[0] = p->rMin();
138  primBounds[1] = p->rMax();
139  }
140  else {
141  primBounds[0] = p->phiMin();
142  primBounds[1] = p->phiMax();
143  }
144 
145  DetectorElementsCollection dc(prim_idx, primBounds[0], primBounds[1]);
146  L.m_colls[ detColIdx].insert(std::make_pair(prim_idx, dc));
147  }
148 
149  (*L.m_colls[detColIdx].find(prim_idx)).second.m_vDE.push_back(ded);
150 
151 }

◆ buildDetectorDescription()

void TrigInDetRoadPredictorTool::buildDetectorDescription ( )
private

Definition at line 154 of file TrigInDetRoadPredictorTool.cxx.

154  {
155 
156  const std::vector<short>& vPixelL = *(m_layerNumberTool->pixelLayers());
157  const std::vector<TrigInDetSiLayer>& SiL = *(m_layerNumberTool->layerGeometry());
158 
159  for(int hash = 0; hash<static_cast<int>(m_pixelId->wafer_hash_max()); hash++) {
160 
161  Identifier offlineId = m_pixelId->wafer_id(hash);
162  short barrel_ec = m_pixelId->barrel_ec(offlineId);
163  if(std::abs(barrel_ec)>2) continue;//no DBM needed
164 
165  unsigned int layerID = SiL.at(vPixelL.at(hash)).m_subdet;
166  unsigned int volumeID = layerID / 1000;
167 
168  if(m_layerMap.find(layerID) == m_layerMap.end()) {
169 
170  int nSubLayers = 1;
171  unsigned int mappingType = 1;
172 
173  if(barrel_ec == 0) mappingType = 0;
174  else {
175  if(volumeID == 12 || volumeID == 14) mappingType = 2;
176  }
177  m_layerMap.try_emplace(layerID, layerID, nSubLayers, mappingType);
178  }
179 
180  short phi_index = m_pixelId->phi_module(offlineId);
181  short eta_index = m_pixelId->eta_module(offlineId);
182 
184  }
185 
186  const std::vector<short>& vStripL = *(m_layerNumberTool->sctLayers());
187 
188  for(int hash = 0; hash<static_cast<int>(m_stripId->wafer_hash_max()); hash++) {
189 
190  Identifier offlineId = m_stripId->wafer_id(hash);
191  short barrel_ec = m_stripId->barrel_ec(offlineId);
192  if(std::abs(barrel_ec)>2) continue;
193 
194  unsigned int layerID = SiL.at(vStripL.at(hash)).m_subdet;
195  unsigned int volumeID = layerID / 1000;
196 
197  if(m_layerMap.find(layerID) == m_layerMap.end()) {
198  int nSubLayers = 2;//strip layers are double
199  unsigned int mappingType = 1;
200 
201  if(barrel_ec == 0) mappingType = 0;
202  else {
203  if(volumeID == 12 || volumeID == 14) mappingType = 2;
204  }
205  m_layerMap.try_emplace(layerID, layerID, nSubLayers, mappingType);
206  }
207 
208  short phi_index = m_stripId->phi_module(offlineId);
209  short eta_index = m_stripId->eta_module(offlineId);
210 
212  }
213 
214  //building hit boxes
215 
216  createHitBoxes();
217 
218 }

◆ createHitBoxes()

void TrigInDetRoadPredictorTool::createHitBoxes ( )
private

Definition at line 220 of file TrigInDetRoadPredictorTool.cxx.

220  {
221 
222  const float margin_r = 3.0;
223  const float margin_z = 3.0;
224 
225  for(const auto& l : m_layerMap) {
226 
227  unsigned int layerID = l.first;
228  unsigned int volumeID = layerID / 1000;
229 
230  const auto& L = l.second;
231 
232  float minR = 1e8;// vert0
233  float minZ = 1e8;// vert1
234  float maxR = -1e8;// vert2
235  float maxZ = -1e8;// vert3
236 
237  float vert[4][2]; //z,r
238 
239  memset(&vert[0][0],0,sizeof(vert));
240 
241  for(int iSL = 0; iSL < L.m_nSubLayers;iSL++) {
242  for(const auto& deColl : L.m_colls[iSL]) {
243  for(const auto& de : deColl.second.m_vDE) {
244  for(int ic=0;ic<4;ic++) {
245  float r = de.m_c[ic][0];
246  float z = de.m_c[ic][1];
247  if(r < minR) {
248  minR = r;
249  vert[0][0] = z;
250  vert[0][1] = r;
251  }
252  if(z < minZ) {
253  minZ = z;
254  vert[1][0] = z;
255  vert[1][1] = r;
256  }
257  if(r > maxR) {
258  maxR = r;
259  vert[2][0] = z;
260  vert[2][1] = r;
261  }
262  if(z > maxZ) {
263  maxZ = z;
264  vert[3][0] = z;
265  vert[3][1] = r;
266  }
267  }
268  }
269  }
270  }
271  minR -= margin_r;
272  vert[0][1] -= margin_r;
273  minZ -= margin_z;
274  vert[1][0] -= margin_z;
275  maxR += margin_r;
276  vert[2][1] += margin_r;
277  maxZ += margin_z;
278  vert[3][0] += margin_z;
279 
280  int new_layer_index = -1;
281  LayerBoundary lb;
282  new_layer_index = m_lBoundaries.size();
283  lb.m_index = new_layer_index;
284  lb.m_lay_id = layerID;
285  lb.m_nVertices = 5;
286 
287  if(volumeID == 73 || volumeID == 75 || volumeID == 77) {//negative inclined
288  lb.m_z = {vert[3][0], vert[2][0], vert[1][0], vert[0][0], vert[3][0]};
289  lb.m_r = {vert[3][1], vert[2][1], vert[1][1], vert[0][1], vert[3][1]};
290  }
291  else if(volumeID == 93 || volumeID == 95 || volumeID == 97) {//positive inclined
292  lb.m_z = {vert[2][0], vert[1][0], vert[0][0], vert[3][0], vert[2][0]};
293  lb.m_r = {vert[2][1], vert[1][1], vert[0][1], vert[3][1], vert[2][1]};
294  }
295  else {//all other layers
296  lb.m_z = {maxZ, minZ, minZ, maxZ, maxZ};
297  lb.m_r = {maxR, maxR, minR, minR, maxR};
298  }
299 
300  m_lBoundaries.push_back(lb);
301 
302  bool volExists = false;
303 
304  for(auto& v : m_vBoundaries) {
305  if(v.m_vol_id == (int)volumeID) {
306  volExists = true;//update corners
307  if(v.m_zr[0] > minZ) v.m_zr[0] = minZ;
308  if(v.m_zr[1] < maxZ) v.m_zr[1] = maxZ;
309  if(v.m_zr[2] > minR) v.m_zr[2] = minR;
310  if(v.m_zr[3] < maxR) v.m_zr[3] = maxR;
311  v.m_layers.push_back(new_layer_index);
312  break;
313  }
314  }
315  if(!volExists) {//add a new volume with 4 corners
316  VolumeBoundary vb;
317  vb.m_layers.push_back(new_layer_index);
318  vb.m_index = m_vBoundaries.size();
319  vb.m_vol_id = volumeID;
320  vb.m_zr[0] = minZ;
321  vb.m_zr[1] = maxZ;
322  vb.m_zr[2] = minR;
323  vb.m_zr[3] = maxR;
324  m_vBoundaries.push_back(vb);
325  }
326  }
327 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyArrayType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKeyArray>

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleBase>

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( ) const
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase &  ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ findDetectorElements()

void TrigInDetRoadPredictorTool::findDetectorElements ( unsigned int  layerID,
const SearchInterval searchArea,
std::vector< unsigned int > &  vIDs,
bool  hasHit 
) const
private

Definition at line 329 of file TrigInDetRoadPredictorTool.cxx.

330  {
331 
332  const float road_width_rz = hasHit ? m_min_rz_rw : m_max_rz_rw;
333  const float road_width_rphi = hasHit ? m_min_rphi_rw : m_max_rphi_rw;
334 
335  float phi_test = searchArea.m_phi;
336  float phi_res = road_width_rphi/searchArea.m_r;
337 
338  if(phi_res > m_max_phi_rw) phi_res = m_max_phi_rw;
339  if(phi_res < m_min_phi_rw) phi_res = m_min_phi_rw;
340 
341  float phi_min = phi_test - phi_res;
342  float phi_max = phi_test + phi_res;
343 
344  const auto& L = (*m_layerMap.find(layerID)).second;
345 
346  if(L.m_mappingType != 2) { // primary index is Phi, secondary is Z or R
347 
348  float rz_test_m = searchArea.getMinR();
349  float rz_test_p = searchArea.getMaxR();
350 
351  if(L.m_mappingType == 0) {
352  rz_test_m = searchArea.getMinZ();
353  rz_test_p = searchArea.getMaxZ();
354  }
355 
356  rz_test_m -= road_width_rz;
357  rz_test_p += road_width_rz;
358 
359  for(int iSubL = 0; iSubL < L.m_nSubLayers;iSubL++) {
360 
361  for(const auto& prim : L.m_colls[iSubL]) {
362 
363  const auto& slice = prim.second;
364 
365  float f1 = slice.m_minCoord;
366  float f2 = slice.m_maxCoord;
367 
368  if(std::abs(f2 - f1) < M_PI) {
369  if(phi_max < f1) continue;
370  if(phi_min > f2) continue;
371  }
372  else {// +/- pi boundary
373  std::swap(f2, f1);
374  if(phi_test < 0 && phi_min > f1) continue;
375  if(phi_test > 0 && phi_max < f2) continue;
376  }
377 
378  for(const auto& de : slice.m_vDE) {
379 
380  float p1 = de.m_minBound;
381  float p2 = de.m_maxBound;
382 
383  if(rz_test_p < p1) break;
384  if(rz_test_m > p2) continue;
385 
386  if (! (rz_test_p < p1 || rz_test_m > p2)) vIDs.push_back(de.m_hash);
387  }
388  }
389  }
390  }
391  else { //Strip endcaps: primary R, secondary Phi
392 
393  float r_test_m = searchArea.getMinR() - road_width_rz;
394  float r_test_p = searchArea.getMaxR() + road_width_rz;
395 
396  for(int iSubL = 0; iSubL < L.m_nSubLayers;iSubL++) {
397 
398  for(const auto& prim : L.m_colls[iSubL]) {
399 
400  const auto& slice = prim.second;
401 
402  float r1 = slice.m_minCoord;
403  float r2 = slice.m_maxCoord;
404 
405  if(r_test_p < r1) break;
406  if(r_test_m > r2) continue;
407 
408  if (! (r_test_p < r1 || r_test_m > r2)) {
409 
410  for(const auto& de : slice.m_vDE) {
411 
412  float f1 = de.m_minBound;
413  float f2 = de.m_maxBound;
414 
415  if(f2 - f1 < M_PI) {
416  if(phi_max < f1) continue;
417  if(phi_min > f2) continue;
418  }
419  else {// +/- pi boundary
420  if(phi_test < 0 && phi_min > f1) continue;
421  if(phi_test > 0 && phi_max < f2) continue;
422  }
423  vIDs.push_back(de.m_hash);
424  }
425  }
426  }
427  }
428  }
429 
430 }

◆ getRoad()

int TrigInDetRoadPredictorTool::getRoad ( const std::vector< const Trk::SpacePoint * > &  seed,
std::vector< const InDetDD::SiDetectorElement * > &  road,
const EventContext &  ctx 
) const
overridevirtual

Implements ITrigInDetRoadPredictorTool.

Definition at line 435 of file TrigInDetRoadPredictorTool.cxx.

437  {
438 
439 
440  const float MAX_R = 1030.0;//detector envelope
441  const float MAX_Z = 3000.0;//detector envelope
442  const float maxCornerDist = 15.0;
443 
444  //1. get magnetic field
445 
446  MagField::AtlasFieldCache fieldCache;
447 
449  if (!fieldCondObj.isValid()) {
450  ATH_MSG_ERROR("Failed to retrieve AtlasFieldCacheCondObj with key " << m_fieldCondObjInputKey.key());
451  return -1;
452  }
453 
454  fieldCondObj->getInitializedCache (fieldCache);
455 
456  road.clear();
457 
458  unsigned int nSP = seed.size();
459 
460  if(nSP < 3) return -2;
461 
462  std::vector<unsigned int> seedHashes;
463 
464  for(unsigned int spIdx=0;spIdx<nSP;spIdx++) {
465  const auto& sp = seed.at(spIdx);
466  const Trk::PrepRawData* prd = sp->clusterList().first;
467  const InDet::PixelCluster* pPixelHit = dynamic_cast<const InDet::PixelCluster*>(prd);
468  unsigned int hash = pPixelHit->detectorElement()->identifyHash();
469  seedHashes.push_back(hash);
470  }
471 
472  std::vector<std::array<float,2> > zr;
473  zr.resize(nSP+2);
474 
475  for(unsigned int spIdx=0;spIdx<nSP;spIdx++) {
476  const auto& sp = seed.at(spIdx);
477  zr[spIdx+1][0] = sp->globalPosition().z();
478  zr[spIdx+1][1] = sp->globalPosition().perp();
479  }
480 
481  //adding the first point at beamline
482 
483  zr[0][0] = zr[1][0] - zr[1][1]*(zr[2][0]-zr[1][0])/(zr[2][1]-zr[1][1]);
484  zr[0][1] = 0;
485 
486  //adding the last point at detector exit
487  float zlast = zr[nSP-1][0] + (MAX_R - zr[nSP-1][1])*(zr[nSP][0]-zr[nSP-1][0])/(zr[nSP][1]-zr[nSP-1][1]);
488  float rlast = MAX_R;
489 
490  if (std::fabs(zlast) > MAX_Z) {
491  if(zlast > 0) zlast = MAX_Z;
492  else zlast = -MAX_Z;
493  rlast = zr[nSP-1][1] + (zlast - zr[nSP-1][0])*(zr[nSP][1]-zr[nSP-1][1])/(zr[nSP][0]-zr[nSP-1][0]);
494  }
495  zr[nSP+1][0] = zlast;
496  zr[nSP+1][1] = rlast;
497 
498  std::map<unsigned int, SearchInterval> rzIntervals;
499 
500  for(unsigned int k1 = 0;k1<zr.size()-1;k1++) {//loop over trajectory segments
501 
502  unsigned int k2 = k1+1;
503 
504  float z1 = zr[k1][0];
505  float r1 = zr[k1][1];
506  float z2 = zr[k2][0];
507  float r2 = zr[k2][1];
508  float dz21 = z2-z1;
509  float dr21 = r2-r1;
510  float L = std::sqrt(dz21*dz21 + dr21*dr21);
511  float invL = 1.0/L;
512  float sinF = dr21*invL;
513  float cosF = dz21*invL;
514 
515  for(const auto& vb : m_vBoundaries) {
516 
517  if (z1 < vb.m_zr[0] && z2 < vb.m_zr[0]) continue;
518  if (z1 > vb.m_zr[1] && z2 > vb.m_zr[1]) continue;
519  if (r1 < vb.m_zr[2] && r2 < vb.m_zr[2]) continue;
520  if (r1 > vb.m_zr[3] && r2 > vb.m_zr[3]) continue;
521 
522  //corners:
523 
524  float zc[4] = {vb.m_zr[0], vb.m_zr[1], vb.m_zr[1], vb.m_zr[0]};
525  float rc[4] = {vb.m_zr[2], vb.m_zr[2], vb.m_zr[3], vb.m_zr[3]};
526 
527  int nUp(0), nDn(0);
528 
529  float minDistances[4];
530 
531  for (int ic=0;ic<4;ic++) {
532  minDistances[ic] = (rc[ic] - r1)*cosF - (zc[ic] - z1)*sinF;
533  }
534 
535  float minH = std::abs(minDistances[0]);
536 
537  for (int ic=0;ic<4;ic++) {
538  float h = minDistances[ic];
539  if (h <=0) nDn += 1;
540  else nUp += 1;
541  if(std::abs(h) < minH) minH = std::abs(h);
542  }
543 
544  if (nUp == 4 || nDn == 4) {
545  if(minH > maxCornerDist) {//the closest corner is still too far
546  continue;
547  }
548  }
549 
550  //search through layers inside the volume
551 
552  for(auto lIdx : vb.m_layers) {
553  const auto& lb = m_lBoundaries.at(lIdx);
554  for(int s1=0;s1<lb.m_nVertices-1;s1++) {
555  int s2 = s1 + 1;
556 
557  float h1 = (lb.m_r[s1] - r1)*cosF - (lb.m_z[s1] - z1)*sinF;
558  float h2 = (lb.m_r[s2] - r1)*cosF - (lb.m_z[s2] - z1)*sinF;
559  if (h1*h2 > 0) continue;
560  float l1 = (lb.m_z[s1] - z1)*cosF + (lb.m_r[s1] - r1)*sinF;
561  float l2 = (lb.m_z[s2] - z1)*cosF + (lb.m_r[s2] - r1)*sinF;
562  if (l1 < 0 && l2 < 0) continue;
563  if (l1 > L && l2 > L) continue;
564  float lx = (l1 + (l2-l1)*h1/(h1-h2))*invL;
565 
566  if (lx < 0 || lx > 1) continue;
567  float zx = z2*lx + (1-lx)*z1;
568  float rx = r2*lx + (1-lx)*r1;
569 
570  auto radItr = rzIntervals.find(lb.m_lay_id);
571 
572  if(radItr == rzIntervals.end()) {
573  rzIntervals.insert(std::make_pair(lb.m_lay_id, SearchInterval(zx, rx)));
574  }
575  else {
576  (*radItr).second.addPoint(zx, rx);
577  }
578  }
579  }
580  }
581  }
582 
583  //3. parabolic extrapolation in r-phi
584 
585  unsigned int sp1Idx = 0;
586  unsigned int sp3Idx = nSP-1;
587  unsigned int sp2Idx = (sp3Idx+sp1Idx)/2;
588 
589  //3a. Converting XY coords to UV coords
590 
591  float uv_coords[2][2];
592 
593  float dx = seed.at(sp3Idx)->globalPosition().x() - seed.at(sp2Idx)->globalPosition().x();
594  float dy = seed.at(sp3Idx)->globalPosition().y() - seed.at(sp2Idx)->globalPosition().y();
595 
596  uv_coords[1][0] = -std::sqrt(dx*dx + dy*dy);
597  uv_coords[1][1] = 0.0;
598 
599  float cos_theta = dx/(-uv_coords[1][0]);
600  float sin_theta = dy/(-uv_coords[1][0]);
601 
602  float rot_matrix[2][2];
603  float inv_rot_matrix[2][2];
604 
605  rot_matrix[0][0] = cos_theta;
606  rot_matrix[0][1] = sin_theta;
607  rot_matrix[1][0] = -sin_theta;
608  rot_matrix[1][1] = cos_theta;
609 
610  inv_rot_matrix[0][0] = cos_theta;
611  inv_rot_matrix[0][1] = -sin_theta;
612  inv_rot_matrix[1][0] = sin_theta;
613  inv_rot_matrix[1][1] = cos_theta;
614 
615  float sp3_coords[3];
616  sp3_coords[0] = seed.at(sp3Idx)->globalPosition().x();
617  sp3_coords[1] = seed.at(sp3Idx)->globalPosition().y();
618  sp3_coords[2] = seed.at(sp3Idx)->globalPosition().z();
619 
620  //UV-coordinates of the XY origin (0,0)
621 
622  float u_c = rot_matrix[0][0]*(0-sp3_coords[0]) + rot_matrix[0][1]*(0-sp3_coords[1]);
623  float v_c = rot_matrix[1][0]*(0-sp3_coords[0]) + rot_matrix[1][1]*(0-sp3_coords[1]);
624 
625  int sign_up = u_c < 0 ? 1 : -1;
626 
627  //transforming SP1
628 
629  float dR1[2];
630 
631  dR1[0] = seed.at(sp1Idx)->globalPosition().x() - sp3_coords[0];
632  dR1[1] = seed.at(sp1Idx)->globalPosition().y() - sp3_coords[1];
633 
634  uv_coords[0][0] = rot_matrix[0][0]*dR1[0] + rot_matrix[0][1]*dR1[1];
635  uv_coords[0][1] = rot_matrix[1][0]*dR1[0] + rot_matrix[1][1]*dR1[1];
636 
637  //3b. parameters of the parabola in the u-v c.s.
638 
639  float a = uv_coords[0][1]/(uv_coords[0][0]*(uv_coords[0][0]-uv_coords[1][0]));
640  float b = -a*uv_coords[1][0]; // b = -a*x2
641 
642  //3c. calculate impact point radii
643 
644  std::vector<unsigned int> pixelHashIds;
645  std::vector<unsigned int> stripHashIds;
646 
647  for(auto& ip : rzIntervals) {
648 
649  float R = ip.second.getAverageRadius();
650 
651  float R2 = R*R;
652 
653  float dRv = R2-v_c*v_c;
654 
655  if(dRv < 0) continue;//no intersection with the circle
656 
657  float u_p = u_c + sign_up*std::sqrt(dRv);
658 
659  float v_p = b*u_p + a*u_p*u_p;
660  float dv2 = (v_p-v_c)*(v_p-v_c);
661 
662  if (R2-dv2<0) continue; // check for intersection between v=v_p and the circle
663 
664  float u_star = u_c + sign_up*std::sqrt(R2-dv2);
665  float v_star = b*u_star + a*u_star*u_star;
666 
667  float x_star = inv_rot_matrix[0][0]*u_star + inv_rot_matrix[0][1]*v_star + sp3_coords[0];
668  float y_star = inv_rot_matrix[1][0]*u_star + inv_rot_matrix[1][1]*v_star + sp3_coords[1];
669 
670  ip.second.m_r = std::sqrt(x_star*x_star + y_star*y_star);
671  ip.second.m_phi = std::atan2(y_star, x_star);
672 
673  if(ip.first > 15000) {//assuming Pixel-only seeds
674 
675  bool hasHit = false;
676 
677  for(unsigned int i=1;i<nSP-1;i++) {
678 
679  float dpr = ip.second.m_r - zr[i][1];
680  float dpz = ip.second.m_z - zr[i][0];
681  float dist = std::sqrt(dpr*dpr + dpz*dpz);
682  if(dist < maxCornerDist) {
683  hasHit = true;
684  break;
685  }
686  }
687  findDetectorElements(ip.first, ip.second, pixelHashIds, hasHit);
688  }
689  else {
690  findDetectorElements(ip.first, ip.second, stripHashIds, false);
691  }
692  }
693 
694  std::set<unsigned int> pixelHashSet(pixelHashIds.begin(), pixelHashIds.end());
695 
696  for(auto id : seedHashes) {
697  if(pixelHashSet.find(id) == pixelHashSet.end()) pixelHashIds.push_back(id);
698  }
699 
700  std::vector<std::pair<float, const InDetDD::SiDetectorElement*> > theRoad;
701 
702  for(auto hash_id : pixelHashIds) {
704  if(p == nullptr) continue;
705  const Amg::Vector3D& C = p->center();
706  float dist = std::sqrt(C(0)*C(0) + C(1)*C(1) + C(2)*C(2));
707  theRoad.push_back(std::make_pair(dist,p));
708  }
709 
710  for(auto hash_id : stripHashIds) {
712  if(p == nullptr) continue;
713  const Amg::Vector3D& C = p->center();
714  float dist = std::sqrt(C(0)*C(0) + C(1)*C(1) + C(2)*C(2));
715  theRoad.push_back(std::make_pair(dist,p));
716  }
717 
718  std::sort(theRoad.begin(), theRoad.end());
719 
720  for(const auto & dp : theRoad) {
721  road.push_back(dp.second);
722  }
723 
724  return (int)theRoad.size();
725 }

◆ initialize()

StatusCode TrigInDetRoadPredictorTool::initialize ( )
overridevirtual

Definition at line 36 of file TrigInDetRoadPredictorTool.cxx.

36  {
37 
38  StatusCode sc = m_layerNumberTool.retrieve();
39  if(sc.isFailure()) {
40  ATH_MSG_ERROR("Could not retrieve "<<m_layerNumberTool);
41  return sc;
42  } else {
43  ATH_MSG_INFO("Detector layer structure has "<<m_layerNumberTool->maxNumberOfUniqueLayers()<<" unique layers");
44  }
45 
46 
48  ATH_CHECK( detStore()->retrieve(m_pixelManager, "ITkPixel") );
49  ATH_CHECK( detStore()->retrieve(m_stripManager, "ITkStrip") );
50  ATH_CHECK( detStore()->retrieve(m_pixelId, "PixelID") );
51  ATH_CHECK( detStore()->retrieve(m_stripId, "SCT_ID") );
52 
54 
55 
56  return StatusCode::SUCCESS;
57 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ interfaceID()

static const InterfaceID& ITrigInDetRoadPredictorTool::interfaceID ( )
inlinestaticinherited

Definition at line 25 of file ITrigInDetRoadPredictorTool.h.

25  {
26  return IID_ITrigInDetRoadPredictorTool;
27  }

◆ msg() [1/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ renounce()

std::enable_if_t<std::is_void_v<std::result_of_t<decltype(&T::renounce)(T)> > && !std::is_base_of_v<SG::VarHandleKeyArray, T> && std::is_base_of_v<Gaudi::DataHandle, T>, void> AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_fieldCondObjInputKey

SG::ReadCondHandleKey<AtlasFieldCacheCondObj> TrigInDetRoadPredictorTool::m_fieldCondObjInputKey
private
Initial value:
{
this, "AtlasFieldCacheCondObj", "fieldCondObj",
"Name of the Magnetic Field conditions object key"}

Definition at line 142 of file TrigInDetRoadPredictorTool.h.

◆ m_layerMap

std::map<unsigned int, LayerDescription> TrigInDetRoadPredictorTool::m_layerMap
private

Definition at line 148 of file TrigInDetRoadPredictorTool.h.

◆ m_layerNumberTool

ToolHandle<ITrigL2LayerNumberTool> TrigInDetRoadPredictorTool::m_layerNumberTool {this, "LayerNumberTool", "TrigL2LayerNumberToolITk"}
private

Definition at line 133 of file TrigInDetRoadPredictorTool.h.

◆ m_lBoundaries

std::vector<LayerBoundary> TrigInDetRoadPredictorTool::m_lBoundaries
private

Definition at line 147 of file TrigInDetRoadPredictorTool.h.

◆ m_max_phi_rw

Gaudi::Property<float> TrigInDetRoadPredictorTool::m_max_phi_rw {this, "MaxPhiRoadWidth", 0.1, "Maximum phi road width"}
private

Definition at line 140 of file TrigInDetRoadPredictorTool.h.

◆ m_max_rphi_rw

Gaudi::Property<float> TrigInDetRoadPredictorTool::m_max_rphi_rw {this, "MaxRPhiRoadWidth", 15.0, "Maximum rphi road width"}
private

Definition at line 138 of file TrigInDetRoadPredictorTool.h.

◆ m_max_rz_rw

Gaudi::Property<float> TrigInDetRoadPredictorTool::m_max_rz_rw {this, "MaxRzRoadWidth", 15.0, "Maximum rz road width"}
private

Definition at line 136 of file TrigInDetRoadPredictorTool.h.

◆ m_min_phi_rw

Gaudi::Property<float> TrigInDetRoadPredictorTool::m_min_phi_rw {this, "MinPhiRoadWidth", 0.05, "Minimum phi road width"}
private

Definition at line 139 of file TrigInDetRoadPredictorTool.h.

◆ m_min_rphi_rw

Gaudi::Property<float> TrigInDetRoadPredictorTool::m_min_rphi_rw {this, "MinRPhiRoadWidth", 3.0, "Minimum rphi road width"}
private

Definition at line 137 of file TrigInDetRoadPredictorTool.h.

◆ m_min_rz_rw

Gaudi::Property<float> TrigInDetRoadPredictorTool::m_min_rz_rw {this, "MinRzRoadWidth", 3.0, "Minimum rz road width"}
private

Definition at line 135 of file TrigInDetRoadPredictorTool.h.

◆ m_pixelId

const PixelID* TrigInDetRoadPredictorTool::m_pixelId {nullptr}
private

Definition at line 152 of file TrigInDetRoadPredictorTool.h.

◆ m_pixelManager

const InDetDD::PixelDetectorManager* TrigInDetRoadPredictorTool::m_pixelManager {nullptr}
private

Definition at line 150 of file TrigInDetRoadPredictorTool.h.

◆ m_stripId

const SCT_ID* TrigInDetRoadPredictorTool::m_stripId {nullptr}
private

Definition at line 153 of file TrigInDetRoadPredictorTool.h.

◆ m_stripManager

const InDetDD::SCT_DetectorManager* TrigInDetRoadPredictorTool::m_stripManager {nullptr}
private

Definition at line 151 of file TrigInDetRoadPredictorTool.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vBoundaries

std::vector<VolumeBoundary> TrigInDetRoadPredictorTool::m_vBoundaries
private

Definition at line 146 of file TrigInDetRoadPredictorTool.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
beamspotman.r
def r
Definition: beamspotman.py:676
python.SystemOfUnits.second
int second
Definition: SystemOfUnits.py:120
TileDCSDataPlotter.dp
dp
Definition: TileDCSDataPlotter.py:840
ReadCellNoiseFromCoolCompare.s1
s1
Definition: ReadCellNoiseFromCoolCompare.py:378
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
IDTPM::R
float R(const U &p)
Definition: TrackParametersHelper.h:101
TrigInDetRoadPredictorTool::m_stripManager
const InDetDD::SCT_DetectorManager * m_stripManager
Definition: TrigInDetRoadPredictorTool.h:151
TrigInDetRoadPredictorTool::m_min_rz_rw
Gaudi::Property< float > m_min_rz_rw
Definition: TrigInDetRoadPredictorTool.h:135
PixelID::barrel_ec
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
Definition: PixelID.h:619
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
DMTest::C
C_v1 C
Definition: C.h:26
TrigInDetRoadPredictorTool::createHitBoxes
void createHitBoxes()
Definition: TrigInDetRoadPredictorTool.cxx:220
TrigInDetRoadPredictorTool::m_layerNumberTool
ToolHandle< ITrigL2LayerNumberTool > m_layerNumberTool
Definition: TrigInDetRoadPredictorTool.h:133
M_PI
#define M_PI
Definition: ActiveFraction.h:11
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:158
SCT_ID::barrel_ec
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
Definition: SCT_ID.h:728
SCT_ID::phi_module
int phi_module(const Identifier &id) const
Definition: SCT_ID.h:740
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
MCP::ScaleSmearParam::r2
@ r2
TrigInDetRoadPredictorTool::m_min_phi_rw
Gaudi::Property< float > m_min_phi_rw
Definition: TrigInDetRoadPredictorTool.h:139
read_hist_ntuple.h1
h1
Definition: read_hist_ntuple.py:21
TrigInDetRoadPredictorTool::m_pixelManager
const InDetDD::PixelDetectorManager * m_pixelManager
Definition: TrigInDetRoadPredictorTool.h:150
x
#define x
TrigInDetRoadPredictorTool::m_min_rphi_rw
Gaudi::Property< float > m_min_rphi_rw
Definition: TrigInDetRoadPredictorTool.h:137
InDetDD::SCT_DetectorManager::getDetectorElement
virtual SiDetectorElement * getDetectorElement(const Identifier &id) const override
access to individual elements via Identifier
Definition: SCT_DetectorManager.cxx:64
InDetDD::SolidStateDetectorElementBase::identifyHash
virtual IdentifierHash identifyHash() const override final
identifier hash (inline)
PixelID::wafer_id
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module) const
For a single crystal.
Definition: PixelID.h:364
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:95
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
read_hist_ntuple.f2
f2
Definition: read_hist_ntuple.py:20
TrigInDetRoadPredictorTool::m_vBoundaries
std::vector< VolumeBoundary > m_vBoundaries
Definition: TrigInDetRoadPredictorTool.h:146
TrigInDetRoadPredictorTool::m_max_rphi_rw
Gaudi::Property< float > m_max_rphi_rw
Definition: TrigInDetRoadPredictorTool.h:138
skel.l2
l2
Definition: skel.GENtoEVGEN.py:426
AthCommonDataStore
Definition: AthCommonDataStore.h:52
Generate_dsid_ranseed.seed
seed
Definition: Generate_dsid_ranseed.py:10
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
python.BunchSpacingUtils.lb
lb
Definition: BunchSpacingUtils.py:88
perfmonmt-refit.slice
slice
Definition: perfmonmt-refit.py:52
lumiFormat.i
int i
Definition: lumiFormat.py:92
TrigInDetRoadPredictorTool::m_pixelId
const PixelID * m_pixelId
Definition: TrigInDetRoadPredictorTool.h:152
z
#define z
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TauGNNUtils::Variables::Track::dPhi
bool dPhi(const xAOD::TauJet &tau, const xAOD::TauTrack &track, double &out)
Definition: TauGNNUtils.cxx:530
find_tgc_unfilled_channelids.ip
ip
Definition: find_tgc_unfilled_channelids.py:3
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
createCablingJSON.eta_index
int eta_index
Definition: createCablingJSON.py:9
WriteCalibToCool.swap
swap
Definition: WriteCalibToCool.py:94
InDet::SiCluster::detectorElement
virtual const InDetDD::SiDetectorElement * detectorElement() const override final
return the detector element corresponding to this PRD The pointer will be zero if the det el is not d...
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
TrigInDetRoadPredictorTool::addNewElement
void addNewElement(unsigned int, short, short, const InDetDD::SiDetectorElement *)
Definition: TrigInDetRoadPredictorTool.cxx:59
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
grepfile.ic
int ic
Definition: grepfile.py:33
Trk::PrepRawData
Definition: PrepRawData.h:62
PixelID::eta_module
int eta_module(const Identifier &id) const
Definition: PixelID.h:651
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
SCT_ID::wafer_hash_max
size_type wafer_hash_max(void) const
Definition: SCT_ID.cxx:639
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
TrigInDetRoadPredictorTool::m_layerMap
std::map< unsigned int, LayerDescription > m_layerMap
Definition: TrigInDetRoadPredictorTool.h:148
InDetDD::SiDetectorElement
Definition: SiDetectorElement.h:109
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
PixelID::wafer_hash_max
size_type wafer_hash_max(void) const
Definition: PixelID.cxx:912
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
InDet::PixelCluster
Definition: InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/PixelCluster.h:49
python.PyAthena.v
v
Definition: PyAthena.py:157
makeTRTBarrelCans.dy
tuple dy
Definition: makeTRTBarrelCans.py:21
TrigInDetRoadPredictorTool::m_lBoundaries
std::vector< LayerBoundary > m_lBoundaries
Definition: TrigInDetRoadPredictorTool.h:147
a
TList * a
Definition: liststreamerinfos.cxx:10
y
#define y
h
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:109
std::sort
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.
Definition: DVL_algorithms.h:623
SG::IAuxElement::m_index
size_t m_index
The index of this element within its container.
Definition: IAuxElement.h:128
ReadCellNoiseFromCoolCompare.s2
s2
Definition: ReadCellNoiseFromCoolCompare.py:379
SCT_ID::eta_module
int eta_module(const Identifier &id) const
Definition: SCT_ID.h:746
makeTRTBarrelCans.dx
tuple dx
Definition: makeTRTBarrelCans.py:20
TrigInDetRoadPredictorTool::m_fieldCondObjInputKey
SG::ReadCondHandleKey< AtlasFieldCacheCondObj > m_fieldCondObjInputKey
Definition: TrigInDetRoadPredictorTool.h:142
MagField::AtlasFieldCache
Local cache for magnetic field (based on MagFieldServices/AtlasFieldSvcTLS.h)
Definition: AtlasFieldCache.h:43
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
TrigInDetRoadPredictorTool::m_stripId
const SCT_ID * m_stripId
Definition: TrigInDetRoadPredictorTool.h:153
TrigInDetRoadPredictorTool::m_max_rz_rw
Gaudi::Property< float > m_max_rz_rw
Definition: TrigInDetRoadPredictorTool.h:136
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
TrigInDetRoadPredictorTool::m_max_phi_rw
Gaudi::Property< float > m_max_phi_rw
Definition: TrigInDetRoadPredictorTool.h:140
TrigInDetRoadPredictorTool::findDetectorElements
void findDetectorElements(unsigned int, const SearchInterval &, std::vector< unsigned int > &, bool) const
Definition: TrigInDetRoadPredictorTool.cxx:329
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
skel.l1
l1
Definition: skel.GENtoEVGEN.py:425
SCT_ID::wafer_id
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module, int side) const
For a single side of module.
Definition: SCT_ID.h:464
MCP::ScaleSmearParam::r1
@ r1
PixelID::phi_module
int phi_module(const Identifier &id) const
Definition: PixelID.h:644
TauGNNUtils::Variables::Track::dEta
bool dEta(const xAOD::TauJet &tau, const xAOD::TauTrack &track, double &out)
Definition: TauGNNUtils.cxx:525
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
TrigInDetRoadPredictorTool::buildDetectorDescription
void buildDetectorDescription()
Definition: TrigInDetRoadPredictorTool.cxx:154
python.trfValidateRootFile.rc
rc
Definition: trfValidateRootFile.py:350
fitman.k
k
Definition: fitman.py:528
read_hist_ntuple.f1
f1
Definition: read_hist_ntuple.py:4
InDetDD::PixelDetectorManager::getDetectorElement
virtual SiDetectorElement * getDetectorElement(const Identifier &id) const override
access to individual elements : via Identifier
Definition: PixelDetectorManager.cxx:80