#include <InDetAlignFillSiCluster.h>
Definition at line 35 of file InDetAlignFillSiCluster.h.
◆ PixelClusterContainer
◆ SCT_ClusterContainer
◆ StoreGateSvc_t
◆ InDetAlignFillSiCluster()
| InDetAlignFillSiCluster::InDetAlignFillSiCluster |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
Definition at line 37 of file InDetAlignFillSiCluster.cxx.
45{
46 declareInterface<IInDetAlignFillSiCluster>(this);
49
50
52}
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
std::string m_Sct_SiClustersName
const InDet::PixelClusterContainer * m_Pixel_clcontainer
const InDet::SCT_ClusterContainer * m_Sct_clcontainer
std::string m_Pixel_SiClustersName
std::string m_ntupleName
ntuple name
const PixelID * m_pixelid
Pixel ID helper.
const SCT_ID * m_sctID
SCT ID helper.
◆ ~InDetAlignFillSiCluster()
| virtual InDetAlignFillSiCluster::~InDetAlignFillSiCluster |
( |
| ) |
|
|
virtualdefault |
◆ bookNtuple()
| void InDetAlignFillSiCluster::bookNtuple |
( |
| ) |
|
|
private |
Definition at line 125 of file InDetAlignFillSiCluster.cxx.
125 {
126
128
131 std::string
comments =
"Silicon Cluster Information";
132
134
137 else {
139 nt0 =
m_ntupleSvc->book(nt0id,CLID_ColumnWiseTuple,comments);
140
141 if (nt0) {
142
143
144
157
158
159
160
171
172
173 if (
msgLvl(MSG::DEBUG))
msg(MSG::DEBUG) <<
"Ntuple " << nt0id <<
" has been booked successfully! " <<
endmsg;
174 }
175 else
177 }
178
179}
static const int maxclusters
static const int maxclsize
bool msgLvl(const MSG::Level lvl) const
NTuple::Item< long > m_sct_nclusters
number of SCT Clusters
NTuple::Array< float > m_sct_clx
SCT Cluster X.
NTuple::Array< float > m_pixel_clx
Pixel Cluster X.
NTuple::Matrix< long > m_pixel_clrow
NTuple::Array< float > m_sct_clz
SCT Cluster Z.
NTuple::Array< long > m_pixel_layer
Pixel Cluster layer.
ServiceHandle< INTupleSvc > m_ntupleSvc
NTuple::Array< long > m_sct_side
SCT Cluster side.
NTuple::Array< long > m_pixel_groupsize
Pixel Cluster Group Size.
NTuple::Array< long > m_sct_layer
SCT Cluster layer.
NTuple::Array< float > m_pixel_clz
Pixel Cluster Z.
NTuple::Item< long > m_pixel_nclusters
number of Pixel Clusters
NTuple::Array< float > m_pixel_cly
Pixel Cluster Y.
NTuple::Array< float > m_sct_cly
SCT Cluster Y.
NTuple::Array< float > m_pixel_LocY
Pixel Cluster Local Y.
NTuple::Array< long > m_sct_groupsize
SCT Cluster Group Size.
NTuple::Array< long > m_sct_phi
SCT Cluster phi.
NTuple::Matrix< long > m_pixel_clcol
NTuple::Array< long > m_pixel_phi
Pixel Cluster phi.
NTuple::Array< long > m_sct_eta
SCT Cluster eta.
NTuple::Array< float > m_pixel_LocX
Pixel Cluster Local X.
::StatusCode StatusCode
StatusCode definition for legacy code.
◆ declareGaudiProperty()
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
158 {
161 hndl.documentation());
162
163 }
◆ declareProperty()
Definition at line 145 of file AthCommonDataStore.h.
145 {
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
◆ detStore()
◆ evtStore()
◆ extraDeps_update_handler()
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
◆ FillPixelSiNtuple()
| void InDetAlignFillSiCluster::FillPixelSiNtuple |
( |
| ) |
|
|
private |
Definition at line 291 of file InDetAlignFillSiCluster.cxx.
291 {
292
294
296
297
300
302 if (!colNext) continue;
303
304
306 for(p_clus=colNext->begin(); p_clus!=colNext->end(); ++p_clus) {
307 Identifier clId = (*p_clus)->identify();
308
309 const InDet::PixelCluster& cluster = **p_clus;
310
311 int GroupSize = cluster.
rdoList().size();
312
322 const std::vector<Identifier>& rdoList =cluster.
rdoList();
323 std::vector<Identifier>::const_iterator nextRDO;
325 for(nextRDO=rdoList.begin(); nextRDO !=rdoList.end(); ++nextRDO){
326 Identifier rdoId = (*nextRDO);
330 }
332 }
333
334
336 msg(MSG::DEBUG) <<
"Pixel Cluster (Local Pos): ["
341 <<
" Groupsize: " << GroupSize <<
endmsg;
342 }
343
344 }
346 }
347 }
349
350 return;
351}
DataModel_detail::const_iterator< DataVector > const_iterator
Standard const_iterator.
const Amg::Vector3D & globalPosition() const
return global position reference
Trk::PrepRawDataCollection< PixelCluster > PixelClusterCollection
const Amg::Vector2D & localPosition() const
return the local position reference
const std::vector< Identifier > & rdoList() const
return the List of rdo identifiers (pointers)
◆ FillSCTSiNtuple()
| void InDetAlignFillSiCluster::FillSCTSiNtuple |
( |
| ) |
|
|
private |
Definition at line 224 of file InDetAlignFillSiCluster.cxx.
224 {
225
227
229
230
233
235 if (!colNext) continue;
236
237
239 for(p_clus=colNext->begin(); p_clus!=colNext->end(); ++p_clus) {
240
241 Identifier clId = (*p_clus)->identify();
242 const InDet::SCT_Cluster& cluster = **p_clus;
243 int GroupSize = cluster.
rdoList().size();
244
254
255
257 msg(MSG::DEBUG) <<
"SCT Cluster: ["
265 }
266
267 if (GroupSize>1) {
268 if (
msgLvl(MSG::DEBUG))
msg(MSG::DEBUG) <<
" strips: (" <<
m_sctID->strip(clId) - GroupSize
270 << ") - GroupSize: " << GroupSize
272 }
273 else {
274 if (
msgLvl(MSG::DEBUG))
msg(MSG::DEBUG) <<
" strip: (" <<
m_sctID->strip(clId)
275 << ") - GroupSize: " << GroupSize
277 }
278
279 }
281 }
282
283 }
285 return;
286}
Trk::PrepRawDataCollection< SCT_Cluster > SCT_ClusterCollection
◆ FillSiCluster()
| StatusCode InDetAlignFillSiCluster::FillSiCluster |
( |
| ) |
|
|
overridevirtual |
◆ finalize()
| StatusCode InDetAlignFillSiCluster::finalize |
( |
| ) |
|
|
overridevirtual |
Definition at line 84 of file InDetAlignFillSiCluster.cxx.
84 {
85
87 msg(MSG::DEBUG) <<
"Finalize() of FillSiCluster" <<
endmsg;
88 msg(MSG::DEBUG) <<
"________________________________________________________" <<
endmsg;
90 msg(MSG::DEBUG) <<
" InDetAlignFillSiCluster Summary: " <<
endmsg;
91 msg(MSG::DEBUG) <<
"________________________________________________________" <<
endmsg;
93 }
94
95 return StatusCode::SUCCESS;
96}
◆ initialize()
| StatusCode InDetAlignFillSiCluster::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 57 of file InDetAlignFillSiCluster.cxx.
57 {
58
60
61
64
67
68
70
72
75
77 return StatusCode::SUCCESS;
78}
#define ATH_CHECK
Evaluate an expression and check for errors.
const ServiceHandle< StoreGateSvc > & detStore() const
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
retrieve(aClass, aKey=None)
◆ inputHandles()
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()
| const InterfaceID & IInDetAlignFillSiCluster::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
Definition at line 24 of file IInDetAlignFillSiCluster.h.
static const InterfaceID IID_INDETALIGN_IInDetAlignFillSiCluster("IInDetAlignFillSiCluster", 1, 0)
◆ msg()
◆ msgLvl()
| bool AthCommonMsg< AlgTool >::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
◆ outputHandles()
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()
Definition at line 380 of file AthCommonDataStore.h.
381 {
384 }
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)
◆ renounceArray()
◆ RetrievePixelSiClusters()
| StatusCode InDetAlignFillSiCluster::RetrievePixelSiClusters |
( |
| ) |
|
|
private |
Definition at line 205 of file InDetAlignFillSiCluster.cxx.
205 {
206
209
210
213 ATH_MSG_DEBUG (
"Pixel Cluster container for Pixels not found");
214 return StatusCode::FAILURE;
215 }
216 else ATH_MSG_DEBUG (
"Pixel Cluster container for Pixels found");
217
219}
ServiceHandle< StoreGateSvc > & evtStore()
◆ RetrieveSCTSiClusters()
| StatusCode InDetAlignFillSiCluster::RetrieveSCTSiClusters |
( |
| ) |
|
|
private |
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
Definition at line 308 of file AthCommonDataStore.h.
308 {
309
310
313 for (
auto k :
keys) {
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka
◆ m_detStore
◆ m_evtStore
◆ m_ntupleName
| std::string InDetAlignFillSiCluster::m_ntupleName |
|
private |
◆ m_ntupleSvc
| ServiceHandle<INTupleSvc> InDetAlignFillSiCluster::m_ntupleSvc {this,"NTupleSvc","NTupleSvc"} |
|
private |
◆ m_pixel_clcol
| NTuple::Matrix<long> InDetAlignFillSiCluster::m_pixel_clcol |
|
private |
◆ m_Pixel_clcontainer
| const InDet::PixelClusterContainer* InDetAlignFillSiCluster::m_Pixel_clcontainer |
|
private |
◆ m_pixel_clrow
| NTuple::Matrix<long> InDetAlignFillSiCluster::m_pixel_clrow |
|
private |
◆ m_pixel_clx
| NTuple::Array<float> InDetAlignFillSiCluster::m_pixel_clx |
|
private |
◆ m_pixel_cly
| NTuple::Array<float> InDetAlignFillSiCluster::m_pixel_cly |
|
private |
◆ m_pixel_clz
| NTuple::Array<float> InDetAlignFillSiCluster::m_pixel_clz |
|
private |
◆ m_pixel_groupsize
| NTuple::Array<long> InDetAlignFillSiCluster::m_pixel_groupsize |
|
private |
◆ m_pixel_layer
| NTuple::Array<long> InDetAlignFillSiCluster::m_pixel_layer |
|
private |
◆ m_pixel_LocX
| NTuple::Array<float> InDetAlignFillSiCluster::m_pixel_LocX |
|
private |
◆ m_pixel_LocY
| NTuple::Array<float> InDetAlignFillSiCluster::m_pixel_LocY |
|
private |
◆ m_pixel_nclusters
| NTuple::Item<long> InDetAlignFillSiCluster::m_pixel_nclusters |
|
private |
◆ m_pixel_phi
| NTuple::Array<long> InDetAlignFillSiCluster::m_pixel_phi |
|
private |
◆ m_Pixel_SiClustersName
| std::string InDetAlignFillSiCluster::m_Pixel_SiClustersName |
|
private |
◆ m_pixelDetEleCollKey
Definition at line 64 of file InDetAlignFillSiCluster.h.
64{this, "PixelDetEleCollKey", "PixelDetectorElementCollection", "Key of SiDetectorElementCollection for Pixel"};
◆ m_pixelid
| const PixelID* InDetAlignFillSiCluster::m_pixelid |
|
private |
◆ m_Sct_clcontainer
| const InDet::SCT_ClusterContainer* InDetAlignFillSiCluster::m_Sct_clcontainer |
|
private |
◆ m_sct_clx
| NTuple::Array<float> InDetAlignFillSiCluster::m_sct_clx |
|
private |
◆ m_sct_cly
| NTuple::Array<float> InDetAlignFillSiCluster::m_sct_cly |
|
private |
◆ m_sct_clz
| NTuple::Array<float> InDetAlignFillSiCluster::m_sct_clz |
|
private |
◆ m_sct_eta
| NTuple::Array<long> InDetAlignFillSiCluster::m_sct_eta |
|
private |
◆ m_sct_groupsize
| NTuple::Array<long> InDetAlignFillSiCluster::m_sct_groupsize |
|
private |
◆ m_sct_layer
| NTuple::Array<long> InDetAlignFillSiCluster::m_sct_layer |
|
private |
◆ m_sct_nclusters
| NTuple::Item<long> InDetAlignFillSiCluster::m_sct_nclusters |
|
private |
◆ m_sct_phi
| NTuple::Array<long> InDetAlignFillSiCluster::m_sct_phi |
|
private |
◆ m_Sct_SiClustersName
| std::string InDetAlignFillSiCluster::m_Sct_SiClustersName |
|
private |
◆ m_sct_side
| NTuple::Array<long> InDetAlignFillSiCluster::m_sct_side |
|
private |
◆ m_SCTDetEleCollKey
Definition at line 66 of file InDetAlignFillSiCluster.h.
66{this, "SCTDetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection for SCT"};
◆ m_sctID
| const SCT_ID* InDetAlignFillSiCluster::m_sctID |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: