|
ATLAS Offline Software
|
#include <CalibHitIDCheck.h>
|
| CalibHitIDCheck (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual | ~CalibHitIDCheck () |
|
StatusCode | initialize () |
|
StatusCode | execute () |
|
StatusCode | finalize () |
|
void | check (int) |
|
void | show_all () |
|
void | check_all_cnts () |
|
void | merge (Identifier) |
|
void | reset () |
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
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 | 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 |
|
Definition at line 28 of file CalibHitIDCheck.h.
◆ StoreGateSvc_t
◆ CalibHitIDCheck()
CalibHitIDCheck::CalibHitIDCheck |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~CalibHitIDCheck()
CalibHitIDCheck::~CalibHitIDCheck |
( |
| ) |
|
|
virtualdefault |
◆ check()
void CalibHitIDCheck::check |
( |
int |
l_cnt | ) |
|
Definition at line 135 of file CalibHitIDCheck.cxx.
137 std::vector<Identifier> id_vec;
138 std::map<Identifier, int> id_map;
142 bool no_invalid =
true;
143 bool no_alien =
true;
152 ATH_MSG_INFO(
"*************************************************************" );
153 ATH_MSG_INFO(
"Investigate CalibHit IDs from LAr Inactive CalibHit Container" );
154 ATH_MSG_INFO(
"*************************************************************" );
171 ATH_MSG_INFO(
"***********************************************************" );
172 ATH_MSG_INFO(
"Investigate CalibHit IDs from LAr Active CalibHit Container" );
173 ATH_MSG_INFO(
"***********************************************************" );
192 ATH_MSG_INFO(
"**************************************************************" );
193 ATH_MSG_INFO(
"Investigate CalibHit IDs from Tile Inactive CalibHit container" );
194 ATH_MSG_INFO(
"**************************************************************" );
211 ATH_MSG_INFO(
"************************************************************" );
212 ATH_MSG_INFO(
"Investigate CalibHit IDs from Tile Active CalibHit container" );
213 ATH_MSG_INFO(
"************************************************************" );
232 ATH_MSG_INFO(
"*******************************************************" );
233 ATH_MSG_INFO(
"Investigate CalibHit IDs from LAr DM CalibHit Container" );
234 ATH_MSG_INFO(
"*******************************************************" );
251 ATH_MSG_INFO(
"********************************************************" );
252 ATH_MSG_INFO(
"Investigate CalibHit IDs from Tile DM CalibHit Container" );
253 ATH_MSG_INFO(
"********************************************************" );
332 for (
int iter=0; iter<static_cast<int>(id_vec.size()); iter++) {
333 if(
id == id_vec[iter]) {
335 if(id_map.find(
id)==id_map.end()) {
336 id_map.insert(std::make_pair(
id,2));
339 map_it=id_map.find(
id);
349 id_vec.push_back(
id);
374 ATH_MSG_INFO(
"------------------------------------- " );
375 ATH_MSG_INFO(
"No invalid Identifiers has been found " );
376 ATH_MSG_INFO(
"------------------------------------- " );
384 ATH_MSG_INFO(
"------------------------------------------------------" );
385 ATH_MSG_INFO(
"No container not-respective Identifiers has been found" );
386 ATH_MSG_INFO(
"------------------------------------------------------" );
392 if(!id_map.empty()) {
394 ATH_MSG_INFO(
"----------------------------------------------- " );
395 ATH_MSG_INFO(
"Found repeated Identifiers | how many times " );
396 ATH_MSG_INFO(
"----------------------------------------------- " );
398 for (
const std::pair<const Identifier, int>&
p : id_map) {
405 ATH_MSG_INFO(
"----------------------------------------------- " );
406 ATH_MSG_INFO(
"No repeated CalibHit Identifiers has been found " );
407 ATH_MSG_INFO(
"----------------------------------------------- " );
◆ check_all_cnts()
void CalibHitIDCheck::check_all_cnts |
( |
| ) |
|
Definition at line 480 of file CalibHitIDCheck.cxx.
482 ATH_MSG_INFO(
"======================================================" );
483 ATH_MSG_INFO(
"Check for the CalibHits Identifiers has been repeated " );
484 ATH_MSG_INFO(
" inside the different CalibHit containers " );
485 ATH_MSG_INFO(
"======================================================" );
501 <<
" is repeated "<<(
same+1)<<
" times"
502 <<
" inside different containers " );
511 <<
"in the different containers was found ***" );
◆ 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]
◆ 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]
◆ execute()
StatusCode CalibHitIDCheck::execute |
( |
| ) |
|
◆ 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
◆ extraOutputDeps()
const DataObjIDColl & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
57 return Algorithm::extraOutputDeps();
◆ finalize()
StatusCode CalibHitIDCheck::finalize |
( |
| ) |
|
◆ initialize()
StatusCode CalibHitIDCheck::initialize |
( |
| ) |
|
◆ 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.
◆ merge()
◆ 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.
◆ renounce()
◆ renounceArray()
◆ reset()
void CalibHitIDCheck::reset |
( |
| ) |
|
|
inline |
◆ show_all()
void CalibHitIDCheck::show_all |
( |
| ) |
|
Definition at line 448 of file CalibHitIDCheck.cxx.
450 ATH_MSG_INFO(
"=================================================" );
451 ATH_MSG_INFO(
"Show all CalibHits Identifiers for current events" );
452 ATH_MSG_INFO(
"=================================================" );
454 for (
int iter=0; iter !=
static_cast<int>(
m_id_vec.size()); iter++) {
◆ sysInitialize()
StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ 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_ActiveHitCnt
◆ m_Check
bool CalibHitIDCheck::m_Check |
|
private |
◆ m_CheckAll
bool CalibHitIDCheck::m_CheckAll |
|
private |
◆ m_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_id_helper
◆ m_id_vec
ID CalibHitIDCheck::m_id_vec |
|
private |
◆ m_InactiveHitCnt
◆ m_larActiveHitContainer
std::string CalibHitIDCheck::m_larActiveHitContainer |
|
private |
◆ m_LArDMHitCnt
◆ m_larDMHitContainer
std::string CalibHitIDCheck::m_larDMHitContainer |
|
private |
◆ m_larInactiveHitContainer
std::string CalibHitIDCheck::m_larInactiveHitContainer |
|
private |
◆ m_Merge
bool CalibHitIDCheck::m_Merge |
◆ m_ShowAll
bool CalibHitIDCheck::m_ShowAll |
|
private |
◆ m_TileActiveHitCnt
◆ m_tileActiveHitContainer
std::string CalibHitIDCheck::m_tileActiveHitContainer |
|
private |
◆ m_TileDMHitCnt
◆ m_tiledmHitContainer
std::string CalibHitIDCheck::m_tiledmHitContainer |
|
private |
◆ m_TileInactiveHitCnt
◆ m_tileInactiveHitContainer
std::string CalibHitIDCheck::m_tileInactiveHitContainer |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
JetConstituentVector::iterator iterator
bool is_lar(Identifier id) const
const CaloCalibrationHitContainer * m_TileInactiveHitCnt
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::string m_tileInactiveHitContainer
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
const CaloCalibrationHitContainer * m_InactiveHitCnt
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
boost::transform_iterator< make_const, typename CONT::const_iterator > const_iterator
virtual void setOwner(IDataHandleHolder *o)=0
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
bool is_tile_dm(Identifier id) const
const CaloCalibrationHitContainer * m_ActiveHitCnt
bool is_tile(Identifier id) const
const CaloCalibrationHitContainer * m_LArDMHitCnt
std::string m_tileActiveHitContainer
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
std::string m_tiledmHitContainer
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
DataObjIDColl m_extendedExtraObjects
bool is_lar_dm(Identifier id) const
LAr/Tile dead material:
std::string show_to_string(Identifier id, const IdContext *context=0, char sep='.') const
or provide the printout in string form
#define ATH_MSG_WARNING(x)
const CaloCalibrationHitContainer * m_TileDMHitCnt
const AtlasDetectorID * m_id_helper
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
std::string m_larActiveHitContainer
const CaloCalibrationHitContainer * m_TileActiveHitCnt
AthAlgorithm()
Default constructor:
const_iterator end() const
std::string m_larDMHitContainer
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
const_iterator begin() const
std::string m_larInactiveHitContainer