ATLAS Offline Software
Trigger
EFTracking
FPGATrackSim
FPGATrackSimMaps
src
FPGATrackSimClusteringOfflineTool.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
FPGATrackSimClusteringOfflineTool.h
"
6
7
FPGATrackSimClusteringOfflineTool::FPGATrackSimClusteringOfflineTool
(
const
std::string&
algname
,
const
std::string &
name
,
const
IInterface *ifc) :
8
base_class(
algname
,
name
, ifc)
9
{
10
}
11
12
13
StatusCode
FPGATrackSimClusteringOfflineTool::DoClustering
(
FPGATrackSimLogicalEventInputHeader
&
header
, std::vector<FPGATrackSimCluster> &
clusters
)
const
14
{
15
16
clusters
=
header
.optional().getOfflineClusters();
17
//fill the multitruth
18
for
(
auto
& cluster:
clusters
){
19
FPGATrackSimHit
clusterEquiv = cluster.getClusterEquiv();
20
FPGATrackSimMultiTruth
mt;
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
}
FPGATrackSimHit::getEventIndex
long getEventIndex() const
Definition:
FPGATrackSimHit.h:155
getMenu.algname
algname
Definition:
getMenu.py:54
FPGATrackSimLogicalEventInputHeader
Definition:
FPGATrackSimLogicalEventInputHeader.h:21
header
Definition:
hcg.cxx:526
FPGATrackSimHit::getBarcodePt
float getBarcodePt() const
Definition:
FPGATrackSimHit.h:156
FPGATrackSimHit
Definition:
FPGATrackSimHit.h:41
FPGATrackSimClusteringOfflineTool.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
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
FPGATrackSimClusteringOfflineTool::FPGATrackSimClusteringOfflineTool
FPGATrackSimClusteringOfflineTool(const std::string &, const std::string &, const IInterface *)
Definition:
FPGATrackSimClusteringOfflineTool.cxx:7
FPGATrackSimClusteringOfflineTool::DoClustering
virtual StatusCode DoClustering(FPGATrackSimLogicalEventInputHeader &, std::vector< FPGATrackSimCluster > &) const override
Definition:
FPGATrackSimClusteringOfflineTool.cxx:13
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
Generated on Mon Dec 23 2024 21:10:38 for ATLAS Offline Software by
1.8.18