ATLAS Offline Software
Public Member Functions | Static Public Member Functions | List of all members
CaloClusterCorr::et_compare_larem_only Struct Reference

Helper to compare two cells by Et. More...

Collaboration diagram for CaloClusterCorr::et_compare_larem_only:

Public Member Functions

bool operator() (const CaloCell *a, const CaloCell *b)
 

Static Public Member Functions

static double et (const CaloCell *cell)
 

Detailed Description

Helper to compare two cells by Et.

When we find the maximum cell, we only want to find those in LAr EM. The list may contain other cells, though. So, bias their energies down by some large value.

Definition at line 505 of file CaloFillRectangularCluster.cxx.

Member Function Documentation

◆ et()

double CaloClusterCorr::et_compare_larem_only::et ( const CaloCell cell)
static

Definition at line 519 of file CaloFillRectangularCluster.cxx.

520 {
521  double et = cell->et();
522  if (cell->caloDDE()->getSubCalo() != CaloCell_ID::LAREM)
523  et -= 1000*GeV;
524  return et;
525 }

◆ operator()()

bool CaloClusterCorr::et_compare_larem_only::operator() ( const CaloCell a,
const CaloCell b 
)

Definition at line 512 of file CaloFillRectangularCluster.cxx.

514 {
515  return et(a) < et(b);
516 }

The documentation for this struct was generated from the following file:
et
Extra patterns decribing particle interation process.
ReadCellNoiseFromCool.cell
cell
Definition: ReadCellNoiseFromCool.py:53
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
a
TList * a
Definition: liststreamerinfos.cxx:10
CaloClusterCorr::et_compare_larem_only::et
static double et(const CaloCell *cell)
Definition: CaloFillRectangularCluster.cxx:519
CaloCell_Base_ID::LAREM
@ LAREM
Definition: CaloCell_Base_ID.h:46
GeV
#define GeV
Definition: CaloTransverseBalanceVecMon.cxx:30