17#include "GaudiKernel/NTuple.h"
18#include "GaudiKernel/SmartDataPtr.h"
38 const std::string& name,
39 const IInterface* parent)
46 declareInterface<IInDetAlignFillSiCluster>(
this);
77 return StatusCode::SUCCESS;
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;
95 return StatusCode::SUCCESS;
118 return StatusCode::SUCCESS;
131 std::string comments =
"Silicon Cluster Information";
139 nt0 =
m_ntupleSvc->book(nt0id,CLID_ColumnWiseTuple,comments);
173 if (
msgLvl(MSG::DEBUG))
msg(MSG::DEBUG) <<
"Ntuple " << nt0id <<
" has been booked successfully! " <<
endmsg;
194 return StatusCode::FAILURE;
213 ATH_MSG_DEBUG (
"Pixel Cluster container for Pixels not found");
214 return StatusCode::FAILURE;
216 else ATH_MSG_DEBUG (
"Pixel Cluster container for Pixels found");
234 const InDet::SCT_ClusterCollection *colNext=&(**it);
235 if (!colNext)
continue;
239 for(p_clus=colNext->begin(); p_clus!=colNext->end(); ++p_clus) {
243 int GroupSize = cluster.
rdoList().size();
257 msg(MSG::DEBUG) <<
"SCT Cluster: ["
268 if (
msgLvl(MSG::DEBUG))
msg(MSG::DEBUG) <<
" strips: (" <<
m_sctID->strip(clId) - GroupSize
270 <<
") - GroupSize: " << GroupSize
274 if (
msgLvl(MSG::DEBUG))
msg(MSG::DEBUG) <<
" strip: (" <<
m_sctID->strip(clId)
275 <<
") - GroupSize: " << GroupSize
301 const InDet::PixelClusterCollection *colNext=&(**it);
302 if (!colNext)
continue;
306 for(p_clus=colNext->begin(); p_clus!=colNext->end(); ++p_clus) {
311 int GroupSize = cluster.
rdoList().size();
322 const std::vector<Identifier>& rdoList =cluster.
rdoList();
323 std::vector<Identifier>::const_iterator nextRDO;
325 for(nextRDO=rdoList.begin(); nextRDO !=rdoList.end(); ++nextRDO){
336 msg(MSG::DEBUG) <<
"Pixel Cluster (Local Pos): ["
341 <<
" Groupsize: " << GroupSize <<
endmsg;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_ERROR(x,...)
static const int maxclusters
static const int maxclsize
This is an Identifier helper class for the Pixel subdetector.
This is an Identifier helper class for the SCT subdetector.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
const ServiceHandle< StoreGateSvc > & detStore() const
bool msgLvl(const MSG::Level lvl) const
DataModel_detail::const_iterator< DataVector > const_iterator
Standard const_iterator.
NTuple::Item< long > m_sct_nclusters
number of SCT Clusters
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
NTuple::Array< float > m_sct_clx
SCT Cluster X.
virtual StatusCode FillSiCluster() override
virtual StatusCode finalize() override
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
std::string m_Sct_SiClustersName
NTuple::Array< long > m_sct_side
SCT Cluster side.
NTuple::Array< long > m_pixel_groupsize
Pixel Cluster Group Size.
const InDet::PixelClusterContainer * m_Pixel_clcontainer
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
NTuple::Array< long > m_sct_layer
SCT Cluster layer.
virtual StatusCode initialize() override
const InDet::SCT_ClusterContainer * m_Sct_clcontainer
std::string m_Pixel_SiClustersName
std::string m_ntupleName
ntuple name
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
const PixelID * m_pixelid
Pixel ID helper.
NTuple::Array< long > m_pixel_phi
Pixel Cluster phi.
StatusCode RetrievePixelSiClusters()
NTuple::Array< long > m_sct_eta
SCT Cluster eta.
const SCT_ID * m_sctID
SCT ID helper.
NTuple::Array< float > m_pixel_LocX
Pixel Cluster Local X.
StatusCode RetrieveSCTSiClusters()
InDetAlignFillSiCluster(const std::string &type, const std::string &name, const IInterface *parent)
const Amg::Vector3D & globalPosition() const
return global position reference
const Amg::Vector2D & localPosition() const
return the local position reference
const std::vector< Identifier > & rdoList() const
return the List of rdo identifiers (pointers)