Scales down the energy of cells due to simulated failure of drawers.
More...
#include <TileCellFakeProb.h>
Scales down the energy of cells due to simulated failure of drawers.
- Author
- Kai Voss kai.v.nosp@m.oss@.nosp@m.cern..nosp@m.ch
- Date
- August 25, 2005
Definition at line 33 of file TileCellFakeProb.h.
◆ TileCellFakeProb()
| TileCellFakeProb::TileCellFakeProb |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
Standard constructor.
Definition at line 19 of file TileCellFakeProb.cxx.
21 : base_class(type, name, parent)
26{
27
28}
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.
◆ ~TileCellFakeProb()
| TileCellFakeProb::~TileCellFakeProb |
( |
| ) |
|
|
virtual |
◆ createMiscalibratedCellList()
| StatusCode TileCellFakeProb::createMiscalibratedCellList |
( |
| ) |
|
|
private |
Reads in properties and creates list of miscalibrated cells.
Definition at line 80 of file TileCellFakeProb.cxx.
80 {
81
82
83
84
85
86
87
88
91 std::string theString = *itrStringID;
92 std::stringstream is;
93 is << theString << std::endl;
94
95 int iros, idrawer;
97 is >> iros >> idrawer >>
weight;
98
100 << " Drawer " << idrawer
101 << " with weight=" << weight );
102
103
105 IdentifierHash hmin,
hmax;
106 m_caloID->calo_cell_hash_range(sub_calo_num, hmin,
hmax);
107
109 for (
unsigned int i = hmin;
i <
hmax; ++
i) {
110 Identifier
id =
m_caloID->cell_id((IdentifierHash) i);
111 HWIdentifier myhwid =
m_cabling->s2h_drawer_id(
id);
114
115 if ((ros == iros) && (drawer == idrawer)) {
118 }
119 }
121 << " cells, " << nCells << " cells matched" );
122 }
123
124 return StatusCode::SUCCESS;
125}
Gaudi::Property< std::vector< std::string > > m_deadDrawerInput
Property: List of "dead" drawers.
std::map< Identifier, double > m_celllist
List of "dead" cells and their weights.
setRawEt setRawPhi nCells
◆ initialize()
| StatusCode TileCellFakeProb::initialize |
( |
| ) |
|
|
overridevirtual |
AlgTool Initialization.
Definition at line 30 of file TileCellFakeProb.cxx.
30 {
31
32
34
35
37
38
40
42
43
46 ATH_MSG_FATAL(
" Cannot get instance of TileCablingService" );
47 return StatusCode::FAILURE;
48 }
49
50
52
53 return StatusCode::SUCCESS;
54}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define CHECK(...)
Evaluate an expression and check for errors.
ServiceHandle< TileCablingSvc > m_cablingSvc
Name of Tile cabling service.
StatusCode createMiscalibratedCellList()
Reads in properties and creates list of miscalibrated cells.
retrieve(aClass, aKey=None)
◆ wtCell()
| double TileCellFakeProb::wtCell |
( |
const CaloCell * | theCell | ) |
const |
|
overridevirtual |
implementation of ICellWeightTool weighting method
Definition at line 61 of file TileCellFakeProb.cxx.
61 {
62
63 Identifier
id = theCell->
ID();
64 double totalweight = 1.0;
65
67 std::map<Identifier, double>::const_iterator
cur =
m_celllist.find(
id);
68
70 totalweight = (
cur->second);
72 <<
", phi = " << theCell->
phi()
73 << ", weight = " << totalweight );
74 }
75 }
76
77 return totalweight;
78}
#define ATH_MSG_VERBOSE(x)
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
◆ m_cabling
◆ m_cablingSvc
Initial value:{ this,
"TileCablingSvc", "TileCablingSvc", "The Tile cabling service"}
Name of Tile cabling service.
Definition at line 57 of file TileCellFakeProb.h.
57 { this,
58 "TileCablingSvc", "TileCablingSvc", "The Tile cabling service"};
◆ m_caloID
◆ m_celllist
| std::map<Identifier, double> TileCellFakeProb::m_celllist |
|
private |
◆ m_deadDrawerInput
| Gaudi::Property<std::vector<std::string> > TileCellFakeProb::m_deadDrawerInput |
|
private |
Initial value:{this,
"DeadDrawerList", {}, "List of dead drawers"}
Property: List of "dead" drawers.
Definition at line 61 of file TileCellFakeProb.h.
61 {this,
62 "DeadDrawerList", {}, "List of dead drawers"};
◆ m_tileHWID
| const TileHWID* TileCellFakeProb::m_tileHWID |
|
private |
◆ m_tileID
| const TileID* TileCellFakeProb::m_tileID |
|
private |
The documentation for this class was generated from the following files: