|
ATLAS Offline Software
|
#include <TileCellMaskingTool.h>
|
| TileCellMaskingTool (const std::string &type, const std::string &name, const IInterface *parent) |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | process (CaloCellContainer *theCellContainer, const EventContext &ctx) const override |
|
virtual StatusCode | finalize () override |
|
virtual bool | channel_is_good (HWIdentifier &hwid) |
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
| DeclareInterfaceID (ICaloCellMakerTool, 1, 0) |
|
Definition at line 25 of file TileCellMaskingTool.h.
◆ StoreGateSvc_t
◆ TileCellMaskingTool()
TileCellMaskingTool::TileCellMaskingTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ channel_is_good()
bool TileCellMaskingTool::channel_is_good |
( |
HWIdentifier & |
hwid | ) |
|
|
virtual |
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ DeclareInterfaceID()
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ fillIncludedCellsMap()
StatusCode TileCellMaskingTool::fillIncludedCellsMap |
( |
| ) |
|
|
private |
Definition at line 61 of file TileCellMaskingTool.cxx.
68 std::stringstream dris;
75 std::stringstream dris;
82 std::stringstream dris;
89 std::stringstream dris;
96 std::stringstream dris;
102 return StatusCode::SUCCESS;
◆ finalize()
StatusCode TileCellMaskingTool::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode TileCellMaskingTool::initialize |
( |
| ) |
|
|
overridevirtual |
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ killer()
void TileCellMaskingTool::killer |
( |
const std::string & |
component, |
|
|
int |
ros, |
|
|
int |
drw, |
|
|
int |
index |
|
) |
| |
|
private |
Definition at line 107 of file TileCellMaskingTool.cxx.
111 if (component ==
"drawer") {
114 }
else if (component ==
"mb") {
117 }
else if (component ==
"dig") {
120 }
else if (component ==
"dmu") {
128 if (ros < 1 || ros > 4) {
129 ATH_MSG_WARNING(
" wrong selection of ros = " <<
ros <<
" in TileCellMaskingTool::killer ");
130 }
else if (drw < 0 || drw > 63) {
131 ATH_MSG_WARNING(
" wrong selection of drawer = " << drw <<
" in TileCellMaskingTool::killer ");
132 }
else if (begin < 0 || end > 48) {
134 <<
" = " <<
index <<
" in TileCellMaskingTool::killer ");
136 msg(MSG::INFO) <<
" killing ros " <<
ros <<
" drawer " << drw;
137 if (component !=
"drawer") {
148 <<
" hash " <<
hash );
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ process()
StatusCode TileCellMaskingTool::process |
( |
CaloCellContainer * |
theCellContainer, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
overridevirtual |
Implements ICaloCellMakerTool.
Definition at line 155 of file TileCellMaskingTool.cxx.
158 int n_cells = 0, n_masked_1 = 0, n_masked_2 = 0, n_masked_12 = 0;
159 double ene_before = 0.0, ene_after = 0.0;
164 for (
size_t iCell = firstCell; iCell <= lastCell; ++iCell) {
166 CaloCell* aCell = (*theCont)[iCell];
173 ene_before += aCell->
energy();
194 <<
", hash2: " << hash2
195 <<
" before " << pCell->
ene1()
196 <<
" + " << pCell->
ene2()
197 <<
" = " << pCell->
energy();
201 float ene1 = pCell->
ene1();
208 <<
" + " << pCell -> ene2()
220 <<
", hash1: " << hash1
221 <<
" before " << pCell->
ene1()
222 <<
" + " << pCell->
ene2()
223 <<
" = " << pCell->
energy();
238 <<
" + " << pCell->
ene2()
248 <<
", hash1: " << hash1
249 <<
" before " << pCell->
ene1()
250 <<
" + " << pCell->
ene2()
251 <<
" = " << pCell->
energy();
255 float ene2 = pCell->
ene2();
262 <<
" + " << pCell->
ene2()
271 <<
", hash1: " << hash1
272 <<
", hash2: " << hash2
273 <<
" before " << pCell->
ene1()
274 <<
" + " << pCell->
ene2()
275 <<
" = " << pCell->
energy();
292 <<
" + " << pCell->
ene2()
297 ene_after += aCell->
energy();
302 <<
" N masked gap/normal/half-masked: " << n_masked_1 <<
" " << n_masked_2 <<
" " << n_masked_12
303 <<
" Ene before/after/delta: " << ene_before <<
" " << ene_after <<
" " << ene_after-ene_before );
305 return StatusCode::SUCCESS;
◆ renounce()
◆ renounceArray()
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_detStore
◆ m_evtStore
◆ m_includedCellsMap
std::bitset<65536> TileCellMaskingTool::m_includedCellsMap |
|
private |
◆ m_rejectedTileChannels
std::vector<std::string> TileCellMaskingTool::m_rejectedTileChannels |
|
private |
◆ m_rejectedTileDigitizer
std::vector<std::string> TileCellMaskingTool::m_rejectedTileDigitizer |
|
private |
◆ m_rejectedTileDMU
std::vector<std::string> TileCellMaskingTool::m_rejectedTileDMU |
|
private |
◆ m_rejectedTileDrawer
std::vector<std::string> TileCellMaskingTool::m_rejectedTileDrawer |
|
private |
◆ m_rejectedTileMB
std::vector<std::string> TileCellMaskingTool::m_rejectedTileMB |
|
private |
◆ m_tileHWID
◆ m_tileID
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_zeroEnergy
float TileCellMaskingTool::m_zeroEnergy |
|
private |
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
IdentifierHash onl2() const
cell online identifier 2
float time1(void) const
get time of first PMT
virtual void setTime(float t) override final
set cell time, reset timeDiff
float time2(void) const
get time of second PMT
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
float ene1(void) const
get energy of first PMT
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool msgLvl(const MSG::Level lvl) const
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
double energy() const
get energy (data member)
IdentifierHash onl1() const
cell online identifier 1
uint8_t qual2(void) const
get quality of second PMT (data member)
const CaloDetDescrElement * caloDDE() const
get pointer to CaloDetDescrElement (data member)
virtual IdentifierHash get_channel_hash(const HWIdentifier &id) const
create hash id from compact Channel id
#define CHECK(...)
Evaluate an expression and check for errors.
uint8_t qbit1(void) const
get quality bits of first PMT (data member)
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
int gain1(void) const
get gain of first PMT
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
bool is_tile() const
cell belongs to Tile
void setQuality(unsigned char qual, unsigned char qbit, int pmt)
set quality value and quality bits for one PMT
HWIdentifier channel_id(int ros, int drawer, int channel) const
channel HWIdentifer
virtual void setEnergy(float ene) override final
set total energy, reset eneDiff to zero
uint8_t qbit2(void) const
get quality bits of second PMT (data member)
int gain2(void) const
get gain of second PMT
float ene2(void) const
get energy of second PMT
Data object for each calorimeter readout cell.
#define ATH_MSG_WARNING(x)
const double mb
1mb to cm2
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
uint8_t qual1(void) const
get quality of first PMT (data member)
std::string to_string(const HWIdentifier &id, int level=0) const
extract all fields from HW identifier HWIdentifier get_all_fields ( const HWIdentifier & id,...
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>