20 const std::string& name,
const IInterface* parent)
21 : base_class(
type, name, parent)
46 ATH_MSG_FATAL(
" Cannot get instance of TileCablingService" );
47 return StatusCode::FAILURE;
53 return StatusCode::SUCCESS;
64 double totalweight = 1.0;
67 std::map<Identifier, double>::const_iterator cur =
m_celllist.find(
id);
70 totalweight = (cur->second);
72 <<
", phi = " << theCell->
phi()
73 <<
", weight = " << totalweight );
91 std::string theString = *itrStringID;
93 is << theString << std::endl;
97 is >> iros >> idrawer >> weight;
100 <<
" Drawer " << idrawer
101 <<
" with weight=" << weight );
106 m_caloID->calo_cell_hash_range(sub_calo_num, hmin,
hmax);
109 for (
unsigned int i = hmin; i <
hmax; ++i) {
115 if ((ros == iros) && (drawer == idrawer)) {
121 <<
" cells, " << nCells <<
" cells matched" );
124 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
Data object for each calorimeter readout cell.
virtual double phi() const override final
get phi (through CaloDetDescrElement)
virtual double eta() const override final
get eta (through CaloDetDescrElement)
Identifier ID() const
get ID (from cached data member) non-virtual and inline for fast access
This is a "hash" representation of an Identifier.
Gaudi::Property< std::vector< std::string > > m_deadDrawerInput
Property: List of "dead" drawers.
virtual double wtCell(const CaloCell *theCell) const override
implementation of ICellWeightTool weighting method
TileCellFakeProb(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
virtual StatusCode initialize() override
AlgTool Initialization.
ServiceHandle< TileCablingSvc > m_cablingSvc
Name of Tile cabling service.
std::map< Identifier, double > m_celllist
List of "dead" cells and their weights.
StatusCode createMiscalibratedCellList()
Reads in properties and creates list of miscalibrated cells.
virtual ~TileCellFakeProb()
Standard destructor.
const TileCablingService * m_cabling
Pointer to TileCablingService.
const TileID * m_tileID
Pointer to TileID.
const TileHWID * m_tileHWID
Pointer to TileHWID.
const CaloCell_ID * m_caloID
Pointer to CaloCellID.