Class CellDumper


class CellDumper

Utility comparison object which dumps Cell information. CellDumper works with cells using the ICellWrapper interface so that attributes of Athena-Atlfast Cells and AtlfastF Cells can be compared.


Field Summary
 private std::vectorm_cells
          CellDumper's collection of cells
 private std::stringm_label
          Identifier label

Constructor Summary
CellDumper(std::vector c, std::string label)
          Constructer taking a vector of CellWrappers.

Destructor Summary
~CellDumper()
           

Method Summary
 voiddump()
          dumps the cells attributes (eta/phi/pT/number of hits) to std::out.
 private voidfindParticleMatch(const std::vector & , const std::vector & )
          dumps particles from one vector of ICellWrappers which occur in another vector of ICellWrappers.
 voidfindShared(const CellDumper & )
          dumps cells shared with another CellDumper object to std::out.
 private voidoneDump(ICellWrapper * )
          std::out dump of attributes (eta/phi/pT/number of hits) of provided ICellWrapper.
 voidsortByEta()
          Sort cells in ascending eta.
 private const doublesumPt(const const_iterator, const const_iterator)
          Sums the pT of the cells between the two provided iterators.
 doubletotalPt()
          Gives Pt sum of the cells.

Field Detail

m_cells

private std::vector m_cells
CellDumper's collection of cells

m_label

private std::string m_label
Identifier label
Constructor Detail

CellDumper

public CellDumper(std::vector c, std::string label)
Constructer taking a vector of CellWrappers.
Method Detail

~CellDumper

public ~CellDumper()
Method Detail

dump

public void dump()
dumps the cells attributes (eta/phi/pT/number of hits) to std::out.

findParticleMatch

private void findParticleMatch(const std::vector & , const std::vector & )
dumps particles from one vector of ICellWrappers which occur in another vector of ICellWrappers.

findShared

public void findShared(const CellDumper & )
dumps cells shared with another CellDumper object to std::out.

oneDump

private void oneDump(ICellWrapper * )
std::out dump of attributes (eta/phi/pT/number of hits) of provided ICellWrapper.

sortByEta

public void sortByEta()
Sort cells in ascending eta.

sumPt

private const double sumPt(const const_iterator, const const_iterator)
Sums the pT of the cells between the two provided iterators.

totalPt

public double totalPt()
Gives Pt sum of the cells.