ATLAS Offline Software
IFPGAClusterConverter.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef IFPGAHITCONVERTER_H
6 #define IFPGAHITCONVERTER_H
7 
8 // Include Files
9 #include <string>
10 #include "GaudiKernel/IInterface.h"
23 
24 namespace InDet {
25  class PixelCluster;
26  class SCT_Cluster;
27 }
28 
29 class IdentifierHash;
30 
31 class IFPGAClusterConverter : public virtual IAlgTool {
32 
33 public:
34 
35  virtual StatusCode convertHits(const std::vector<FPGATrackSimHit>& ,
37  InDet::SCT_ClusterCollection &) const = 0;
38  virtual StatusCode convertHits(const std::vector<const FPGATrackSimHit*>& ,
40  InDet::SCT_ClusterCollection &) const = 0;
41  virtual StatusCode convertHits(const std::vector<FPGATrackSimHit>& hits,
42  xAOD::PixelClusterContainer& pixelCont,
43  xAOD::StripClusterContainer& SCTCont) const = 0;
44 
45  virtual StatusCode convertClusters(const std::vector<FPGATrackSimCluster>&,
47  InDet::SCT_ClusterCollection &) const = 0;
48  virtual StatusCode convertClusters(const std::vector<FPGATrackSimCluster>& cl,
49  xAOD::PixelClusterContainer& pixelCont,
50  xAOD::StripClusterContainer& SCTCont) const = 0;
51 
52  virtual StatusCode convertSpacePoints(const std::vector<FPGATrackSimCluster>& fpgaSPs,
53  const std::vector<FPGATrackSimCluster>& fpgaClusters,
54  xAOD::SpacePointContainer& SPStripCont,
55  xAOD::SpacePointContainer& SPPixelCont,
56  xAOD::StripClusterContainer& stripClusterCont,
57  xAOD::PixelClusterContainer& pixelClusterCont) const = 0;
58 
59  virtual StatusCode createPixelCluster(const FPGATrackSimHit& h, const std::vector<Identifier>& rdoList, std::unique_ptr<InDet::PixelCluster>&) const = 0;
60  virtual StatusCode createPixelCluster(const FPGATrackSimHit& h, const std::vector<Identifier>& rdoList, xAOD::PixelCluster&) const = 0;
61  virtual StatusCode createSCTCluster(const FPGATrackSimHit& h, const std::vector<Identifier>& rdoList, std::unique_ptr<InDet::SCT_Cluster>&) const = 0;
62  virtual StatusCode createSCTCluster(const FPGATrackSimHit& h, const std::vector<Identifier>& rdoList, xAOD::StripCluster&) const = 0;
63  virtual StatusCode createPixelCluster(const FPGATrackSimCluster&, std::unique_ptr<InDet::PixelCluster>&) const = 0;
65  virtual StatusCode createSCTCluster(const FPGATrackSimCluster&, std::unique_ptr<InDet::SCT_Cluster>&) const = 0;
69 
70  virtual StatusCode getRdoList(std::vector<Identifier> &rdoList, const FPGATrackSimCluster& cluster) const = 0;
71  virtual StatusCode getRdoList(std::vector<Identifier> &rdoList, const FPGATrackSimHit& hit) const = 0;
72  virtual StatusCode getStripsInfo(const xAOD::StripCluster& cl, float& halfStripLength, Amg::Vector3D& stripDirection, Amg::Vector3D& stripCenter) const = 0;
73 
74 
75 };
76 
77 #endif
78 
79 
IFPGAClusterConverter::createPixelCluster
virtual StatusCode createPixelCluster(const FPGATrackSimCluster &, xAOD::PixelCluster &) const =0
PixelCluster
Definition: Trigger/TrigAccel/TrigCudaFitter/src/PixelCluster.h:8
TRTCalib_Extractor.hits
hits
Definition: TRTCalib_Extractor.py:35
IFPGAClusterConverter::convertHits
virtual StatusCode convertHits(const std::vector< FPGATrackSimHit > &hits, xAOD::PixelClusterContainer &pixelCont, xAOD::StripClusterContainer &SCTCont) const =0
IFPGAClusterConverter::createPixelCluster
virtual StatusCode createPixelCluster(const FPGATrackSimCluster &, std::unique_ptr< InDet::PixelCluster > &) const =0
FPGATrackSimCluster
Definition: FPGATrackSimCluster.h:24
IFPGAClusterConverter::createPixelCluster
virtual StatusCode createPixelCluster(const FPGATrackSimHit &h, const std::vector< Identifier > &rdoList, xAOD::PixelCluster &) const =0
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
IFPGAClusterConverter::convertClusters
virtual StatusCode convertClusters(const std::vector< FPGATrackSimCluster > &cl, xAOD::PixelClusterContainer &pixelCont, xAOD::StripClusterContainer &SCTCont) const =0
xAOD::SpacePoint_v1
Definition: SpacePoint_v1.h:29
IFPGAClusterConverter::convertHits
virtual StatusCode convertHits(const std::vector< FPGATrackSimHit > &, InDet::PixelClusterCollection &, InDet::SCT_ClusterCollection &) const =0
SCT_Cluster
Definition: Trigger/TrigAccel/TrigCudaFitter/src/SCT_Cluster.h:8
IFPGAClusterConverter::createSP
virtual StatusCode createSP(const FPGATrackSimCluster &cl, xAOD::SpacePoint &sp, xAOD::StripClusterContainer &clustersCont) const =0
FPGATrackSimHit
Definition: FPGATrackSimHit.h:41
SCT_ClusterCollection.h
PixelClusterAuxContainer.h
IFPGAClusterConverter::getRdoList
virtual StatusCode getRdoList(std::vector< Identifier > &rdoList, const FPGATrackSimCluster &cluster) const =0
FPGATrackSimClusterCollection.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
PixelClusterContainer.h
xAOD::StripCluster_v1
Definition: StripCluster_v1.h:17
PixelClusterCollection.h
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
IFPGAClusterConverter::convertHits
virtual StatusCode convertHits(const std::vector< const FPGATrackSimHit * > &, InDet::PixelClusterCollection &, InDet::SCT_ClusterCollection &) const =0
IFPGAClusterConverter::createSCTCluster
virtual StatusCode createSCTCluster(const FPGATrackSimHit &h, const std::vector< Identifier > &rdoList, xAOD::StripCluster &) const =0
SpacePointAuxContainer.h
FPGATrackSimHit.h
: FPGATrackSim-specific class to represent an hit in the detector.
IFPGAClusterConverter::createSP
virtual StatusCode createSP(const FPGATrackSimCluster &cl, xAOD::SpacePoint &sp, xAOD::PixelClusterContainer &clustersCont) const =0
IFPGAClusterConverter::createSCTCluster
virtual StatusCode createSCTCluster(const FPGATrackSimCluster &, std::unique_ptr< InDet::SCT_Cluster > &) const =0
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
IFPGAClusterConverter::getStripsInfo
virtual StatusCode getStripsInfo(const xAOD::StripCluster &cl, float &halfStripLength, Amg::Vector3D &stripDirection, Amg::Vector3D &stripCenter) const =0
IFPGAClusterConverter::createSCTCluster
virtual StatusCode createSCTCluster(const FPGATrackSimCluster &, xAOD::StripCluster &) const =0
IFPGAClusterConverter::convertSpacePoints
virtual StatusCode convertSpacePoints(const std::vector< FPGATrackSimCluster > &fpgaSPs, const std::vector< FPGATrackSimCluster > &fpgaClusters, xAOD::SpacePointContainer &SPStripCont, xAOD::SpacePointContainer &SPPixelCont, xAOD::StripClusterContainer &stripClusterCont, xAOD::PixelClusterContainer &pixelClusterCont) const =0
StripClusterAuxContainer.h
xAOD::PixelCluster_v1
Definition: PixelCluster_v1.h:17
h
IFPGAClusterConverter::getRdoList
virtual StatusCode getRdoList(std::vector< Identifier > &rdoList, const FPGATrackSimHit &hit) const =0
SpacePointContainer.h
IFPGAClusterConverter::convertClusters
virtual StatusCode convertClusters(const std::vector< FPGATrackSimCluster > &, InDet::PixelClusterCollection &, InDet::SCT_ClusterCollection &) const =0
StripClusterContainer.h
IFPGAClusterConverter::createPixelCluster
virtual StatusCode createPixelCluster(const FPGATrackSimHit &h, const std::vector< Identifier > &rdoList, std::unique_ptr< InDet::PixelCluster > &) const =0
IFPGAClusterConverter
Definition: IFPGAClusterConverter.h:31
IFPGAClusterConverter::createSCTCluster
virtual StatusCode createSCTCluster(const FPGATrackSimHit &h, const std::vector< Identifier > &rdoList, std::unique_ptr< InDet::SCT_Cluster > &) const =0
IOVSvcDefs.h
defines and typedefs for IOVSvc
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
InDet::SCT_ClusterCollection
Trk::PrepRawDataCollection< SCT_Cluster > SCT_ClusterCollection
Definition: SCT_ClusterCollection.h:26
dq_make_web_display.cl
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
Definition: dq_make_web_display.py:26
InDet::PixelClusterCollection
Trk::PrepRawDataCollection< PixelCluster > PixelClusterCollection
Definition: PixelClusterCollection.h:26
FPGATrackSimCluster.h