ATLAS Offline Software
Public Member Functions | List of all members
FPGATrackSimClusteringOfflineTool Class Reference

#include <FPGATrackSimClusteringOfflineTool.h>

Inheritance diagram for FPGATrackSimClusteringOfflineTool:
Collaboration diagram for FPGATrackSimClusteringOfflineTool:

Public Member Functions

 FPGATrackSimClusteringOfflineTool (const std::string &, const std::string &, const IInterface *)
 
virtual ~FPGATrackSimClusteringOfflineTool ()=default
 
virtual StatusCode DoClustering (FPGATrackSimLogicalEventInputHeader &, std::vector< FPGATrackSimCluster > &) const override
 

Detailed Description

Definition at line 27 of file FPGATrackSimClusteringOfflineTool.h.

Constructor & Destructor Documentation

◆ FPGATrackSimClusteringOfflineTool()

FPGATrackSimClusteringOfflineTool::FPGATrackSimClusteringOfflineTool ( const std::string &  algname,
const std::string &  name,
const IInterface *  ifc 
)

Definition at line 7 of file FPGATrackSimClusteringOfflineTool.cxx.

7  :
8  base_class(algname, name, ifc)
9 {
10 }

◆ ~FPGATrackSimClusteringOfflineTool()

virtual FPGATrackSimClusteringOfflineTool::~FPGATrackSimClusteringOfflineTool ( )
virtualdefault

Member Function Documentation

◆ DoClustering()

StatusCode FPGATrackSimClusteringOfflineTool::DoClustering ( FPGATrackSimLogicalEventInputHeader header,
std::vector< FPGATrackSimCluster > &  clusters 
) const
overridevirtual

Definition at line 13 of file FPGATrackSimClusteringOfflineTool.cxx.

14 {
15 
16  clusters = header.optional().getOfflineClusters();
17  //fill the multitruth
18  for( auto& cluster:clusters){
19  FPGATrackSimHit clusterEquiv = cluster.getClusterEquiv();
21  FPGATrackSimMultiTruth::Barcode uniquecode(clusterEquiv.getEventIndex(),clusterEquiv.getBarcode());
22  mt.maximize(uniquecode,clusterEquiv.getBarcodePt());
23  clusterEquiv.setTruth(mt);
24  cluster.setClusterEquiv(clusterEquiv);
25  }
26  return StatusCode::SUCCESS;
27 }

The documentation for this class was generated from the following files:
FPGATrackSimHit::getEventIndex
long getEventIndex() const
Definition: FPGATrackSimHit.h:155
getMenu.algname
algname
Definition: getMenu.py:54
header
Definition: hcg.cxx:526
FPGATrackSimHit::getBarcodePt
float getBarcodePt() const
Definition: FPGATrackSimHit.h:156
FPGATrackSimHit
Definition: FPGATrackSimHit.h:41
FPGATrackSimMultiTruth::Barcode
std::pair< unsigned long, unsigned long > Barcode
Definition: FPGATrackSimMultiTruth.h:49
FPGATrackSimMultiTruth::maximize
void maximize(const FPGATrackSimMultiTruth::Barcode &code, const FPGATrackSimMultiTruth::Weight &weight)
Definition: FPGATrackSimMultiTruth.cxx:36
FPGATrackSimMultiTruth
Definition: FPGATrackSimMultiTruth.h:46
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
RunTileMonitoring.clusters
clusters
Definition: RunTileMonitoring.py:133
FPGATrackSimHit::setTruth
void setTruth(const FPGATrackSimMultiTruth &v)
Definition: FPGATrackSimHit.h:151
FPGATrackSimHit::getBarcode
HepMcParticleLink::barcode_type getBarcode() const
Definition: FPGATrackSimHit.h:153