ATLAS Offline Software
Loading...
Searching...
No Matches
PFClusterFiller Class Reference

#include <PFClusterFiller.h>

Collaboration diagram for PFClusterFiller:

Public Member Functions

 PFClusterFiller ()
 ~PFClusterFiller ()

Static Public Member Functions

static void fillClustersToRecover (PFData &data)
static void fillClustersToConsider (PFData &data, eflowRecClusterContainer &recClusterContainer)

Detailed Description

Definition at line 7 of file PFClusterFiller.h.

Constructor & Destructor Documentation

◆ PFClusterFiller()

PFClusterFiller::PFClusterFiller ( )
inline

Definition at line 10 of file PFClusterFiller.h.

10{};

◆ ~PFClusterFiller()

PFClusterFiller::~PFClusterFiller ( )
inline

Definition at line 11 of file PFClusterFiller.h.

11{};

Member Function Documentation

◆ fillClustersToConsider()

void PFClusterFiller::fillClustersToConsider ( PFData & data,
eflowRecClusterContainer & recClusterContainer )
static

Definition at line 25 of file PFClusterFiller.cxx.

25 {
26
27 for (unsigned int count = 0; count < recClusterContainer.size(); count++)
28 data.clusters.push_back(recClusterContainer[count]);
29
30}
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
size_type size() const noexcept
Returns the number of elements in the collection.
int count(std::string s, const std::string &regx)
count how many occurances of a regx are in a string
Definition hcg.cxx:146

◆ fillClustersToRecover()

void PFClusterFiller::fillClustersToRecover ( PFData & data)
static

Definition at line 5 of file PFClusterFiller.cxx.

5 {
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}

The documentation for this class was generated from the following files: