ATLAS Offline Software
Loading...
Searching...
No Matches
InDetAlignFillSiCluster Class Reference

#include <InDetAlignFillSiCluster.h>

Inheritance diagram for InDetAlignFillSiCluster:
Collaboration diagram for InDetAlignFillSiCluster:

Public Member Functions

 InDetAlignFillSiCluster (const std::string &type, const std::string &name, const IInterface *parent)
virtual ~InDetAlignFillSiCluster ()=default
virtual StatusCode initialize () override
virtual StatusCode finalize () override
virtual StatusCode FillSiCluster () override
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () 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
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.

Private Types

typedef InDet::PixelClusterContainer PixelClusterContainer
typedef InDet::SCT_ClusterContainer SCT_ClusterContainer
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

void bookNtuple ()
StatusCode RetrieveSCTSiClusters ()
StatusCode RetrievePixelSiClusters ()
void FillSCTSiNtuple ()
void FillPixelSiNtuple ()
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

ServiceHandle< INTupleSvc > m_ntupleSvc {this,"NTupleSvc","NTupleSvc"}
const PixelIDm_pixelid
 Pixel ID helper.
const SCT_IDm_sctID
 SCT ID helper.
std::string m_Pixel_SiClustersName
std::string m_Sct_SiClustersName
const InDet::PixelClusterContainer * m_Pixel_clcontainer
const InDet::SCT_ClusterContainer * m_Sct_clcontainer
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollectionm_pixelDetEleCollKey {this, "PixelDetEleCollKey", "PixelDetectorElementCollection", "Key of SiDetectorElementCollection for Pixel"}
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollectionm_SCTDetEleCollKey {this, "SCTDetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection for SCT"}
std::string m_ntupleName
 ntuple name
NTuple::Item< long > m_pixel_nclusters
 number of Pixel Clusters
NTuple::Item< long > m_sct_nclusters
 number of SCT Clusters
NTuple::Array< float > m_pixel_clx
 Pixel Cluster X.
NTuple::Array< float > m_pixel_cly
 Pixel Cluster Y.
NTuple::Array< float > m_pixel_clz
 Pixel Cluster Z.
NTuple::Array< long > m_pixel_groupsize
 Pixel Cluster Group Size.
NTuple::Array< long > m_pixel_layer
 Pixel Cluster layer.
NTuple::Array< long > m_pixel_phi
 Pixel Cluster phi.
NTuple::Array< float > m_pixel_LocX
 Pixel Cluster Local X.
NTuple::Array< float > m_pixel_LocY
 Pixel Cluster Local Y.
NTuple::Matrix< long > m_pixel_clrow
NTuple::Matrix< long > m_pixel_clcol
NTuple::Array< float > m_sct_clx
 SCT Cluster X.
NTuple::Array< float > m_sct_cly
 SCT Cluster Y.
NTuple::Array< float > m_sct_clz
 SCT Cluster Z.
NTuple::Array< long > m_sct_groupsize
 SCT Cluster Group Size.
NTuple::Array< long > m_sct_layer
 SCT Cluster layer.
NTuple::Array< long > m_sct_eta
 SCT Cluster eta.
NTuple::Array< long > m_sct_phi
 SCT Cluster phi.
NTuple::Array< long > m_sct_side
 SCT Cluster side.
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default)
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Definition at line 35 of file InDetAlignFillSiCluster.h.

Member Typedef Documentation

◆ PixelClusterContainer

typedef InDet::PixelClusterContainer InDetAlignFillSiCluster::PixelClusterContainer
private

Definition at line 37 of file InDetAlignFillSiCluster.h.

◆ SCT_ClusterContainer

typedef InDet::SCT_ClusterContainer InDetAlignFillSiCluster::SCT_ClusterContainer
private

Definition at line 38 of file InDetAlignFillSiCluster.h.

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ InDetAlignFillSiCluster()

InDetAlignFillSiCluster::InDetAlignFillSiCluster ( const std::string & type,
const std::string & name,
const IInterface * parent )

Definition at line 37 of file InDetAlignFillSiCluster.cxx.

40 : AthAlgTool(type,name,parent),
41 m_pixelid(nullptr),
42 m_sctID(nullptr),
43 m_Pixel_clcontainer(nullptr),
44 m_Sct_clcontainer(nullptr)
45{
46 declareInterface<IInDetAlignFillSiCluster>(this);
47 declareProperty("Pixel_SiClusterContainerName", m_Pixel_SiClustersName="PixelClusters");
48 declareProperty("SCT_SiClusterContainerName", m_Sct_SiClustersName="SCT_Clusters");
49
50 // Ntuple
51 declareProperty("NtupleName", m_ntupleName="/NTUPLES/GLOBFILE");
52}
AthAlgTool()
Default constructor:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
const InDet::PixelClusterContainer * m_Pixel_clcontainer
const InDet::SCT_ClusterContainer * m_Sct_clcontainer
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

Member Function Documentation

◆ bookNtuple()

void InDetAlignFillSiCluster::bookNtuple ( )
private

Definition at line 125 of file InDetAlignFillSiCluster.cxx.

125 {
126
127 ATH_MSG_DEBUG ("Booking Trk::Track Info...");
128
129 NTupleFilePtr file1(m_ntupleSvc.get(), m_ntupleName);
130 std::string nt0id = m_ntupleName + "/SiCluster";
131 std::string comments = "Silicon Cluster Information";
132
134
135 NTuplePtr nt0(m_ntupleSvc.get(), nt0id);
136 if (nt0) ATH_MSG_DEBUG ("Ntuple is already booked");
137 else {
138 ATH_MSG_DEBUG ("Attempting to book general ntuple");
139 nt0 = m_ntupleSvc->book(nt0id,CLID_ColumnWiseTuple,comments);
140
141 if (nt0) {
142
143 // ---------------------------------------------------------------------
144 // Pixel Clusters
145 sc = nt0->addItem("pixel_clus_nclusters", m_pixel_nclusters, 0, maxclusters);
146 sc = nt0->addItem("pixel_clus_clx", m_pixel_nclusters, m_pixel_clx);
147 sc = nt0->addItem("pixel_clus_cly", m_pixel_nclusters, m_pixel_cly);
148 sc = nt0->addItem("pixel_clus_clz", m_pixel_nclusters, m_pixel_clz);
149 sc = nt0->addItem("pixel_clus_LocX", m_pixel_nclusters, m_pixel_LocX);
150 sc = nt0->addItem("pixel_clus_LocY", m_pixel_nclusters, m_pixel_LocY);
151 sc = nt0->addItem("pixel_clus_groupsize", m_pixel_nclusters, m_pixel_groupsize);
152 sc = nt0->addItem("pixel_clus_layer", m_pixel_nclusters, m_pixel_layer);
153 sc = nt0->addItem("pixel_clus_phi", m_pixel_nclusters, m_pixel_phi);
154 sc = nt0->addItem("pixel/pixel_clus_row",m_pixel_nclusters, m_pixel_clrow, maxclsize);
155 sc = nt0->addItem("pixel/pixel_clus_col",m_pixel_nclusters, m_pixel_clcol, maxclsize);
157 // ---------------------------------------------------------------------
158
159 // ----------------------------------------------------------------------
160 // SCT Clusters
161 sc = nt0->addItem("sct_clus_nclusters", m_sct_nclusters, 0, maxclusters);
162 sc = nt0->addItem("sct_clus_x", m_sct_nclusters, m_sct_clx);
163 sc = nt0->addItem("sct_clus_y", m_sct_nclusters, m_sct_cly);
164 sc = nt0->addItem("sct_clus_z", m_sct_nclusters, m_sct_clz);
165 sc = nt0->addItem("sct_clus_groupsize", m_sct_nclusters, m_sct_groupsize);
166 sc = nt0->addItem("sct_clus_layer", m_sct_nclusters, m_sct_layer);
167 sc = nt0->addItem("sct_clus_eta", m_sct_nclusters, m_sct_eta);
168 sc = nt0->addItem("sct_clus_phi", m_sct_nclusters, m_sct_phi);
169 sc = nt0->addItem("sct_clus_side", m_sct_nclusters, m_sct_side);
170 m_sct_nclusters = 0;
171 // ----------------------------------------------------------------------
172
173 if (msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "Ntuple " << nt0id << " has been booked successfully! " << endmsg;
174 }
175 else
176 ATH_MSG_ERROR ("Error booking ntuple");
177 }
178
179}
#define endmsg
#define ATH_MSG_ERROR(x)
#define ATH_MSG_DEBUG(x)
static const int maxclusters
static const int maxclsize
static Double_t sc
bool msgLvl(const MSG::Level lvl) const
MsgStream & msg() 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()

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

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

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }

◆ declareProperty()

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

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ 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.

◆ evtStore()

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.

◆ 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

◆ FillPixelSiNtuple()

void InDetAlignFillSiCluster::FillPixelSiNtuple ( )
private

Definition at line 291 of file InDetAlignFillSiCluster.cxx.

291 {
292
293 ATH_MSG_DEBUG ("In FillPixelSiNtuple()");
294
296
297 // loop over Pixel clusters collections
298 for(PixelClusterContainer::const_iterator it=m_Pixel_clcontainer->begin();
299 it!=m_Pixel_clcontainer->end(); ++it) {
300
301 const InDet::PixelClusterCollection *colNext=&(**it);
302 if (!colNext) continue;
303
304 // loop over Clusters
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
316 m_pixel_layer[m_pixel_nclusters] = m_pixelid->layer_disk(clId);
317 m_pixel_phi[m_pixel_nclusters] = m_pixelid->phi_module(clId);
322 const std::vector<Identifier>& rdoList =cluster.rdoList();
323 std::vector<Identifier>::const_iterator nextRDO;
324 int i(0);
325 for(nextRDO=rdoList.begin(); nextRDO !=rdoList.end(); ++nextRDO){
326 Identifier rdoId = (*nextRDO);
327 if(i<maxclsize){
328 m_pixel_clrow[m_pixel_nclusters][i] = m_pixelid->phi_index(rdoId);
329 m_pixel_clcol[m_pixel_nclusters][i] = m_pixelid->eta_index(rdoId);
330 }
331 ++i;
332 }
333
334 // Cluster Information
335 if (msgLvl(MSG::DEBUG)) {
336 msg(MSG::DEBUG) << "Pixel Cluster (Local Pos): ["
338 << m_pixel_phi[m_pixel_nclusters] << "] - ("
341 << " Groupsize: " << GroupSize << endmsg;
342 }
343
344 }
346 }
347 }
348 if (msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "Pixel Clusters: " << m_pixel_nclusters << endmsg;
349
350 return;
351}
DataModel_detail::const_iterator< DataVector > const_iterator
Standard const_iterator.
Definition DataVector.h:838
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
226 ATH_MSG_DEBUG ("In FillSCTSiNtuple()");
227
228 m_sct_nclusters = 0;
229
230 // loop over SCT clusters collections
231 for(SCT_ClusterContainer::const_iterator it=m_Sct_clcontainer->begin();
232 it!=m_Sct_clcontainer->end(); ++it) {
233
234 const InDet::SCT_ClusterCollection *colNext=&(**it);
235 if (!colNext) continue;
236
237 // loop over Clusters
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
249 m_sct_layer[m_sct_nclusters] = m_sctID->layer_disk(clId);
250 m_sct_eta[m_sct_nclusters] = m_sctID->eta_module(clId);
251 m_sct_phi[m_sct_nclusters] = m_sctID->phi_module(clId);
252 m_sct_side[m_sct_nclusters] = m_sctID->side(clId);
253 m_sct_groupsize[m_sct_nclusters] = GroupSize;
254
255 // Cluster Information
256 if (msgLvl(MSG::DEBUG)) {
257 msg(MSG::DEBUG) << "SCT Cluster: ["
259 << m_sct_eta[m_sct_nclusters] << "/"
260 << m_sct_phi[m_sct_nclusters] << "/"
261 << m_sct_side[m_sct_nclusters] << "] - ("
262 << m_sct_clx[m_sct_nclusters] << ","
263 << m_sct_cly[m_sct_nclusters] << ","
264 << m_sct_clz[m_sct_nclusters] << ")";
265 }
266
267 if (GroupSize>1) {
268 if (msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << " strips: (" << m_sctID->strip(clId) - GroupSize
269 << "," << m_sctID->strip(clId)
270 << ") - GroupSize: " << GroupSize
271 << endmsg;
272 }
273 else {
274 if (msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << " strip: (" << m_sctID->strip(clId)
275 << ") - GroupSize: " << GroupSize
276 << endmsg;
277 }
278
279 }
281 }
282 // if (msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "number of clusters: " << m_sct_nclusters << endmsg;
283 }
284 if (msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "SCT Clusters: " << m_sct_nclusters << endmsg;
285 return;
286}
Trk::PrepRawDataCollection< SCT_Cluster > SCT_ClusterCollection

◆ FillSiCluster()

StatusCode InDetAlignFillSiCluster::FillSiCluster ( )
overridevirtual

Implements IInDetAlignFillSiCluster.

Definition at line 102 of file InDetAlignFillSiCluster.cxx.

102 {
103
104 ATH_MSG_DEBUG("In FillSiCluster()");
105
107
108 if(RetrieveSCTSiClusters() != StatusCode::FAILURE)
110
111 if(RetrievePixelSiClusters() != StatusCode::FAILURE)
113
114 std::string nt0id = m_ntupleName + "/SiCluster";
115 sc = m_ntupleSvc->writeRecord(nt0id);
116 if (sc.isFailure()) ATH_MSG_DEBUG("Could not write " << nt0id << "!");
117
118 return StatusCode::SUCCESS;
119}

◆ finalize()

StatusCode InDetAlignFillSiCluster::finalize ( )
overridevirtual

Definition at line 84 of file InDetAlignFillSiCluster.cxx.

84 {
85
86 if (msgLvl(MSG::DEBUG)) {
87 msg(MSG::DEBUG) << "Finalize() of FillSiCluster" << endmsg;
88 msg(MSG::DEBUG) << "________________________________________________________" << endmsg;
89 msg(MSG::DEBUG) << endmsg;
90 msg(MSG::DEBUG) << " InDetAlignFillSiCluster Summary: " << endmsg;
91 msg(MSG::DEBUG) << "________________________________________________________" << endmsg;
92 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
59 ATH_MSG_DEBUG("In Initialize() of FillSiCluster()");
60
61 // ID Helper
62 ATH_CHECK(detStore()->retrieve(m_sctID, "SCT_ID"));
63 ATH_MSG_DEBUG("SCT ID is : "<< m_sctID);
64
65 ATH_CHECK(detStore()->retrieve(m_pixelid, "PixelID"));
66 ATH_MSG_DEBUG("Pixel ID is : " << m_pixelid);
67
68 // retrieve the NTuple Service
69 ATH_CHECK(m_ntupleSvc.retrieve());
70
71 bookNtuple();
72
73 ATH_CHECK(m_pixelDetEleCollKey.initialize());
74 ATH_CHECK(m_SCTDetEleCollKey.initialize());
75
76 ATH_MSG_DEBUG("Initialize() of FillSiCluster successful");
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)
Definition PyKernel.py:110

◆ 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()

const InterfaceID & IInDetAlignFillSiCluster::interfaceID ( )
inlinestaticinherited

Definition at line 24 of file IInDetAlignFillSiCluster.h.

static const InterfaceID IID_INDETALIGN_IInDetAlignFillSiCluster("IInDetAlignFillSiCluster", 1, 0)

◆ msg()

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ 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();
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()

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 {
366 }

◆ RetrievePixelSiClusters()

StatusCode InDetAlignFillSiCluster::RetrievePixelSiClusters ( )
private

Definition at line 205 of file InDetAlignFillSiCluster.cxx.

205 {
206
207 ATH_MSG_DEBUG ("In RetrievePixelSiClusters()");
209
210 // get pixel clusters from TDS
212 if (sc.isFailure() || !m_Pixel_clcontainer){
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
218 return sc;
219}
ServiceHandle< StoreGateSvc > & evtStore()

◆ RetrieveSCTSiClusters()

StatusCode InDetAlignFillSiCluster::RetrieveSCTSiClusters ( )
private

Definition at line 185 of file InDetAlignFillSiCluster.cxx.

185 {
186
187 ATH_MSG_DEBUG ("In RetrieveSCTSiClusters()");
189
190 // get clusters from TDS
192 if (sc.isFailure() || !m_Sct_clcontainer){
193 ATH_MSG_DEBUG ("SCT Cluster container for SCT not found");
194 return StatusCode::FAILURE;
195 }
196 else ATH_MSG_DEBUG ("SCT Cluster container for SCT found");
197
198 return sc;
199}

◆ 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 asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and DerivationFramework::CfAthAlgTool.

◆ 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) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka

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_ntupleName

std::string InDetAlignFillSiCluster::m_ntupleName
private

ntuple name

Definition at line 76 of file InDetAlignFillSiCluster.h.

◆ m_ntupleSvc

ServiceHandle<INTupleSvc> InDetAlignFillSiCluster::m_ntupleSvc {this,"NTupleSvc","NTupleSvc"}
private

Definition at line 52 of file InDetAlignFillSiCluster.h.

52{this,"NTupleSvc","NTupleSvc"};

◆ m_pixel_clcol

NTuple::Matrix<long> InDetAlignFillSiCluster::m_pixel_clcol
private

Definition at line 92 of file InDetAlignFillSiCluster.h.

◆ m_Pixel_clcontainer

const InDet::PixelClusterContainer* InDetAlignFillSiCluster::m_Pixel_clcontainer
private

Definition at line 60 of file InDetAlignFillSiCluster.h.

◆ m_pixel_clrow

NTuple::Matrix<long> InDetAlignFillSiCluster::m_pixel_clrow
private

Definition at line 91 of file InDetAlignFillSiCluster.h.

◆ m_pixel_clx

NTuple::Array<float> InDetAlignFillSiCluster::m_pixel_clx
private

Pixel Cluster X.

Definition at line 83 of file InDetAlignFillSiCluster.h.

◆ m_pixel_cly

NTuple::Array<float> InDetAlignFillSiCluster::m_pixel_cly
private

Pixel Cluster Y.

Definition at line 84 of file InDetAlignFillSiCluster.h.

◆ m_pixel_clz

NTuple::Array<float> InDetAlignFillSiCluster::m_pixel_clz
private

Pixel Cluster Z.

Definition at line 85 of file InDetAlignFillSiCluster.h.

◆ m_pixel_groupsize

NTuple::Array<long> InDetAlignFillSiCluster::m_pixel_groupsize
private

Pixel Cluster Group Size.

Definition at line 86 of file InDetAlignFillSiCluster.h.

◆ m_pixel_layer

NTuple::Array<long> InDetAlignFillSiCluster::m_pixel_layer
private

Pixel Cluster layer.

Definition at line 87 of file InDetAlignFillSiCluster.h.

◆ m_pixel_LocX

NTuple::Array<float> InDetAlignFillSiCluster::m_pixel_LocX
private

Pixel Cluster Local X.

Definition at line 89 of file InDetAlignFillSiCluster.h.

◆ m_pixel_LocY

NTuple::Array<float> InDetAlignFillSiCluster::m_pixel_LocY
private

Pixel Cluster Local Y.

Definition at line 90 of file InDetAlignFillSiCluster.h.

◆ m_pixel_nclusters

NTuple::Item<long> InDetAlignFillSiCluster::m_pixel_nclusters
private

number of Pixel Clusters

Definition at line 78 of file InDetAlignFillSiCluster.h.

◆ m_pixel_phi

NTuple::Array<long> InDetAlignFillSiCluster::m_pixel_phi
private

Pixel Cluster phi.

Definition at line 88 of file InDetAlignFillSiCluster.h.

◆ m_Pixel_SiClustersName

std::string InDetAlignFillSiCluster::m_Pixel_SiClustersName
private

Definition at line 57 of file InDetAlignFillSiCluster.h.

◆ m_pixelDetEleCollKey

SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> InDetAlignFillSiCluster::m_pixelDetEleCollKey {this, "PixelDetEleCollKey", "PixelDetectorElementCollection", "Key of SiDetectorElementCollection for Pixel"}
private

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

Pixel ID helper.

Definition at line 54 of file InDetAlignFillSiCluster.h.

◆ m_Sct_clcontainer

const InDet::SCT_ClusterContainer* InDetAlignFillSiCluster::m_Sct_clcontainer
private

Definition at line 61 of file InDetAlignFillSiCluster.h.

◆ m_sct_clx

NTuple::Array<float> InDetAlignFillSiCluster::m_sct_clx
private

SCT Cluster X.

Definition at line 97 of file InDetAlignFillSiCluster.h.

◆ m_sct_cly

NTuple::Array<float> InDetAlignFillSiCluster::m_sct_cly
private

SCT Cluster Y.

Definition at line 98 of file InDetAlignFillSiCluster.h.

◆ m_sct_clz

NTuple::Array<float> InDetAlignFillSiCluster::m_sct_clz
private

SCT Cluster Z.

Definition at line 99 of file InDetAlignFillSiCluster.h.

◆ m_sct_eta

NTuple::Array<long> InDetAlignFillSiCluster::m_sct_eta
private

SCT Cluster eta.

Definition at line 102 of file InDetAlignFillSiCluster.h.

◆ m_sct_groupsize

NTuple::Array<long> InDetAlignFillSiCluster::m_sct_groupsize
private

SCT Cluster Group Size.

Definition at line 100 of file InDetAlignFillSiCluster.h.

◆ m_sct_layer

NTuple::Array<long> InDetAlignFillSiCluster::m_sct_layer
private

SCT Cluster layer.

Definition at line 101 of file InDetAlignFillSiCluster.h.

◆ m_sct_nclusters

NTuple::Item<long> InDetAlignFillSiCluster::m_sct_nclusters
private

number of SCT Clusters

Definition at line 79 of file InDetAlignFillSiCluster.h.

◆ m_sct_phi

NTuple::Array<long> InDetAlignFillSiCluster::m_sct_phi
private

SCT Cluster phi.

Definition at line 103 of file InDetAlignFillSiCluster.h.

◆ m_Sct_SiClustersName

std::string InDetAlignFillSiCluster::m_Sct_SiClustersName
private

Definition at line 58 of file InDetAlignFillSiCluster.h.

◆ m_sct_side

NTuple::Array<long> InDetAlignFillSiCluster::m_sct_side
private

SCT Cluster side.

Definition at line 104 of file InDetAlignFillSiCluster.h.

◆ m_SCTDetEleCollKey

SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> InDetAlignFillSiCluster::m_SCTDetEleCollKey {this, "SCTDetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection for SCT"}
private

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

SCT ID helper.

Definition at line 55 of file InDetAlignFillSiCluster.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.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: