|
ATLAS Offline Software
|
#include <CalibHitToCaloCell.h>
|
| CalibHitToCaloCell (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual | ~CalibHitToCaloCell () |
|
StatusCode | initialize () override |
|
StatusCode | execute () override |
|
StatusCode | finalize () override |
|
void | test_energy (Energy *) |
|
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 30 of file CalibHitToCaloCell.h.
◆ StoreGateSvc_t
◆ CalibHitToCaloCell()
CalibHitToCaloCell::CalibHitToCaloCell |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~CalibHitToCaloCell()
CalibHitToCaloCell::~CalibHitToCaloCell |
( |
| ) |
|
|
virtualdefault |
◆ 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 CalibHitToCaloCell::execute |
( |
| ) |
|
|
override |
Definition at line 98 of file CalibHitToCaloCell.cxx.
130 ATH_MSG_DEBUG(
"CaloCalibrationHitContainers retrieved successfuly" );
137 int lar_unknown_nchan=0;
139 int tile_unknown_nchan = 0 ;
143 std::vector<Identifier>
ID;
155 if( lar_inactHitCnt->
Size() != 0 )
159 double Etot = hit->energyTotal();
160 double Eem = hit->energy(0);
161 double Enonem = hit->energy(1);
162 double Evis = Eem + Enonem;
201 ATH_MSG_DEBUG(
"Ianctive CalibHit doesn't respect to any LArCell - "
202 <<
"create dummy LArCell to store energy " );
239 if( lar_actHitCnt->
Size() != 0 )
242 int hits_vec_size = (
int)
ID.size() ;
250 for (
int n=0;
n!=hits_vec_size;
n++)
269 double Etot = hit->energyTotal();
270 double Eem = hit->energy(0);
271 double Enonem = hit->energy(1);
272 double Evis = Eem + Enonem;
308 ATH_MSG_DEBUG(
"Active CalibHit doesn't respect to any LArCell - "
309 <<
"create dummy LArCell to store energy " );
349 for(
int itr=0; itr!=
m_nchan; itr++)
369 for(
int itr=0; itr!=
m_nchan; itr++)
389 for(
int itr=0; itr!=
m_nchan; itr++)
412 for(
int itr=0; itr!=
m_nchan; itr++)
425 if(lar_unknown_nchan!=0)
445 if( (tile_actHitCnt->
Size()) != 0 )
451 double Etot = hit->energyTotal();
452 double Eem = hit->energy(0);
453 double Enonem = hit->energy(1);
454 double Evis = Eem + Enonem;
462 cnt->push_back(calibCell);
490 ATH_MSG_DEBUG(
"Active CalibHit doesn't respect to any TileCell - "
491 <<
"create dummy TileCell to store energy " );
496 cnt->push_back(calibCell);
518 ++tile_unknown_nchan;
532 if(tile_unknown_nchan!=0)
548 if( (tile_inactHitCnt->
Size()) != 0 )
555 double Etot = hit->energyTotal();
556 double Eem = hit->energy(0);
557 double Enonem = hit->energy(1);
558 double Evis = Eem + Enonem;
566 cnt->push_back(calibCell);
594 ATH_MSG_DEBUG(
"Inactive CalibHit doesn't respect to any TileCell - "
595 <<
"create dummy TileCell to store energy " );
600 cnt->push_back(calibCell);
622 ++tile_unknown_nchan;
636 if(tile_unknown_nchan!=0)
688 return StatusCode::SUCCESS;
◆ 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 CalibHitToCaloCell::finalize |
( |
| ) |
|
|
override |
◆ initialize()
StatusCode CalibHitToCaloCell::initialize |
( |
| ) |
|
|
override |
◆ 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.
◆ 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()
◆ 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.
◆ test_energy()
void CalibHitToCaloCell::test_energy |
( |
Energy * |
energy | ) |
|
◆ updateVHKA()
◆ m_caloCell_Em
std::string CalibHitToCaloCell::m_caloCell_Em |
|
private |
◆ m_caloCell_ID
◆ m_caloCell_NonEm
std::string CalibHitToCaloCell::m_caloCell_NonEm |
|
private |
◆ m_caloCell_Tot
std::string CalibHitToCaloCell::m_caloCell_Tot |
|
private |
◆ m_caloCell_Vis
std::string CalibHitToCaloCell::m_caloCell_Vis |
|
private |
◆ m_caloDM_ID
◆ m_caloMgrKey
Initial value:{ this
, "CaloDetDescrManager"
, "CaloDetDescrManager"
, "SG Key for CaloDetDescrManager in the Condition Store" }
Definition at line 73 of file CalibHitToCaloCell.h.
◆ m_Cells_Em
std::vector<LArCell*> CalibHitToCaloCell::m_Cells_Em |
|
private |
◆ m_Cells_NonEm
std::vector<LArCell*> CalibHitToCaloCell::m_Cells_NonEm |
|
private |
◆ m_Cells_Tot
std::vector<LArCell*> CalibHitToCaloCell::m_Cells_Tot |
|
private |
◆ m_Cells_Vis
std::vector<LArCell*> CalibHitToCaloCell::m_Cells_Vis |
|
private |
◆ m_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_larActHitCnt
std::string CalibHitToCaloCell::m_larActHitCnt |
|
private |
◆ m_larDMHitCnt
std::string CalibHitToCaloCell::m_larDMHitCnt |
|
private |
◆ m_larInactHitCnt
std::string CalibHitToCaloCell::m_larInactHitCnt |
|
private |
◆ m_nchan
int CalibHitToCaloCell::m_nchan |
|
private |
◆ m_store_Em
bool CalibHitToCaloCell::m_store_Em |
|
private |
◆ m_store_NonEm
bool CalibHitToCaloCell::m_store_NonEm |
|
private |
◆ m_store_Tot
bool CalibHitToCaloCell::m_store_Tot |
|
private |
◆ m_store_Vis
bool CalibHitToCaloCell::m_store_Vis |
|
private |
◆ m_storeUnknown
bool CalibHitToCaloCell::m_storeUnknown |
|
private |
◆ m_tileActiveHitCnt
std::string CalibHitToCaloCell::m_tileActiveHitCnt |
|
private |
◆ m_tileDMHitCnt
std::string CalibHitToCaloCell::m_tileDMHitCnt |
|
private |
◆ m_tileInactiveHitCnt
std::string CalibHitToCaloCell::m_tileInactiveHitCnt |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
std::vector< LArCell * > m_Cells_Vis
std::vector< Identifier > ID
bool is_lar(Identifier id) const
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::string m_tileActiveHitCnt
void setHasCalo(const CaloCell_ID::SUBCALO caloNum)
set which calo has been filled.
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
const CaloDetDescrElement * get_element(const Identifier &cellId) const
get element by its identifier
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
std::vector< LArCell * > m_Cells_Tot
std::vector< LArCell * > m_Cells_Em
#define ATH_MSG_VERBOSE(x)
bool is_tile(const Identifier id) const
test if the id belongs to the Tiles
virtual void setEnergy(float energy)
set energy
bool is_hec(const Identifier id) const
test if the id belongs to the HEC
std::vector< LArCell * > m_Cells_NonEm
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
bool is_em(const Identifier id) const
test if the id belongs to LArEM
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
bool is_fcal(const Identifier id) const
test if the id belongs to the FCAL - true also for MiniFCAL
::StatusCode StatusCode
StatusCode definition for legacy code.
int sub_calo(const Identifier id) const
returns an int taken from SUBCALO enum and describing the subCalo to which the Id belongs.
std::string m_caloCell_Em
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
const CaloCell_ID * m_caloCell_ID
std::string m_caloCell_Vis
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Class to store calorimeter calibration hit.
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
StatusCode initialize(bool used=true)
Data object for LAr calorimeter readout cell.
const CaloDM_ID * m_caloDM_ID
Container class for CaloCell.
std::string m_caloCell_NonEm
virtual void setEnergy(float ene) override final
set total energy, reset eneDiff to zero
DataObjIDColl m_extendedExtraObjects
This class provides the client interface for accessing the detector description information common to...
#define ATH_MSG_WARNING(x)
void push_back(CaloCell *)
reimplementation of const push_back
std::string m_tileDMHitCnt
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
AthAlgorithm()
Default constructor:
std::string m_larInactHitCnt
std::string m_larDMHitCnt
std::string m_larActHitCnt
std::string m_caloCell_Tot
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
std::string m_tileInactiveHitCnt