ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
eflowRec
src
PFClusterFiller.cxx
Go to the documentation of this file.
1
#include "
PFClusterFiller.h
"
2
3
#include "
eflowCaloObject.h
"
4
5
void
PFClusterFiller::fillClustersToRecover
(
PFData
&data) {
6
7
for
(
auto
thisEflowCaloObject : *data.caloObjects )
8
{
9
if
(thisEflowCaloObject->nClusters() == 0)
continue
;
10
11
for
(
unsigned
i = 0; i < thisEflowCaloObject->nClusters(); ++i)
12
{
13
/* Skip empty clusters (subtraction remnants) */
14
const
CaloClusterCellLink
*theCellLink = thisEflowCaloObject->efRecCluster(i)->getCluster()->getCellLinks();
15
if
(0 == (
int
)theCellLink->
size
())
continue
;
16
17
thisEflowCaloObject->efRecCluster(i)->clearTrackMatches();
18
data.clusters.push_back(thisEflowCaloObject->efRecCluster(i));
19
thisEflowCaloObject->clearClusters();
20
}
21
}
22
23
}
24
25
void
PFClusterFiller::fillClustersToConsider
(
PFData
&data,
eflowRecClusterContainer
&recClusterContainer) {
26
27
for
(
unsigned
int
count
= 0;
count
< recClusterContainer.
size
();
count
++)
28
data.clusters.push_back(recClusterContainer[
count
]);
29
30
}
PFClusterFiller.h
CaloClusterCellLink
Bookkeeping of cells that make up a cluster Simplified replacement for CaloCellLink,...
Definition
CaloClusterCellLink.h:24
CaloClusterCellLink::size
size_t size() const
size method
Definition
CaloClusterCellLink.h:117
DataVector::size
size_type size() const noexcept
Returns the number of elements in the collection.
PFClusterFiller::fillClustersToRecover
static void fillClustersToRecover(PFData &data)
Definition
PFClusterFiller.cxx:5
PFClusterFiller::fillClustersToConsider
static void fillClustersToConsider(PFData &data, eflowRecClusterContainer &recClusterContainer)
Definition
PFClusterFiller.cxx:25
eflowRecClusterContainer
Definition
eflowRecCluster.h:275
eflowCaloObject.h
count
int count(std::string s, const std::string ®x)
count how many occurances of a regx are in a string
Definition
hcg.cxx:148
PFData
Definition
PFData.h:16
Generated on
for ATLAS Offline Software by
1.17.0