ATLAS Offline Software
Static Public Member Functions | List of all members
CaloBadCellHelper Struct Reference

#include <CaloBadCellHelper.h>

Collaboration diagram for CaloBadCellHelper:

Static Public Member Functions

static bool isBad (const CaloCell *pCell, bool treatL1PredictedCellsAsGood)
 

Detailed Description

Definition at line 24 of file CaloBadCellHelper.h.

Member Function Documentation

◆ isBad()

static bool CaloBadCellHelper::isBad ( const CaloCell pCell,
bool  treatL1PredictedCellsAsGood 
)
inlinestatic

Definition at line 27 of file CaloBadCellHelper.h.

27  {
28  bool badcell=false;
29  if (pCell->badcell() ) {
30  if (treatL1PredictedCellsAsGood) {
31  const CaloDetDescrElement* caloDDE = pCell->caloDDE();
32  if (caloDDE) {
33  int theCellSubCalo = caloDDE->getSubCalo();
34  if ( (theCellSubCalo == CaloCell_ID::TILE) ||
35  !((pCell->provenance()) & 0x0200) )
36  badcell=true;
37  }
38  }
39  else
40  badcell=true;
41  }
42  return badcell;
43  }

The documentation for this struct was generated from the following file:
CaloDetDescrElement
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:66
CaloCell::provenance
uint16_t provenance() const
get provenance (data member)
Definition: CaloCell.h:338
CaloDetDescrElement::getSubCalo
CaloCell_ID::SUBCALO getSubCalo() const
cell subcalo
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:433
CaloCell::caloDDE
const CaloDetDescrElement * caloDDE() const
get pointer to CaloDetDescrElement (data member)
Definition: CaloCell.h:305
CaloCell::badcell
virtual bool badcell() const
check is cell is dead
Definition: CaloCell.cxx:210
CaloCell_Base_ID::TILE
@ TILE
Definition: CaloCell_Base_ID.h:46