|
ATLAS Offline Software
|
#include <LArGeoWeightsFill.h>
|
| LArGeoWeightsFill (const std::string &name, ISvcLocator *pSvcLocator) |
|
| ~LArGeoWeightsFill () |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | execute () override |
|
virtual StatusCode | stop () override |
|
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 17 of file LArGeoWeightsFill.h.
◆ StoreGateSvc_t
◆ LArGeoWeightsFill()
LArGeoWeightsFill::LArGeoWeightsFill |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~LArGeoWeightsFill()
LArGeoWeightsFill::~LArGeoWeightsFill |
( |
| ) |
|
◆ 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()
virtual StatusCode LArGeoWeightsFill::execute |
( |
| ) |
|
|
inlineoverridevirtual |
◆ 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();
◆ initialize()
StatusCode LArGeoWeightsFill::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.
◆ 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()
◆ stop()
StatusCode LArGeoWeightsFill::stop |
( |
| ) |
|
|
overridevirtual |
Definition at line 44 of file LArGeoWeightsFill.cxx.
54 coral::AttributeListSpecification*
spec =
new coral::AttributeListSpecification();
56 spec->extend(
"costheta",
"blob");
57 spec->extend(
"sinthetacosphi",
"blob");
58 spec->extend(
"sinthetasinphi",
"blob");
59 spec->extend(
"offlineTTid",
"blob");
68 costhetaBlob.resize(hashMax*
sizeof(
float));
69 sinthetacosphiBlob.resize(hashMax*
sizeof(
float));
70 sinthetasinphiBlob.resize(hashMax*
sizeof(
float));
71 offlineTTidBlob.resize(hashMax*
sizeof(
uint32_t));
73 float* pcostheta=
static_cast<float*
>(costhetaBlob.startingAddress());
74 float* psinthetacosphi=
static_cast<float*
>(sinthetacosphiBlob.startingAddress());
75 float* psinthetasinphi=
static_cast<float*
>(sinthetasinphiBlob.startingAddress());
76 uint32_t* pofflineTTid=
static_cast<uint32_t*
>(offlineTTidBlob.startingAddress());
88 return StatusCode::FAILURE;
91 for (
unsigned hs=0;
hs<hashMax;++
hs) {
94 if(!
cabling->isOnlineConnected(chid)){
98 psinthetacosphi[
hs]=0.0;
99 psinthetasinphi[
hs]=0.0;
107 return StatusCode::FAILURE;
111 const float eta = caloDDE->
eta();
112 const float phi = caloDDE->
phi();
113 const float v = 1./cosh(
eta);
114 const float costheta=tanh(
eta);
115 const float sinthetacosphi=
v*
cos(
phi);
116 const float sinthetasinphi=
v*
sin(
phi);
118 pcostheta[
hs]=costheta;
119 psinthetacosphi[
hs]=sinthetacosphi;
120 psinthetasinphi[
hs]=sinthetasinphi;
121 pofflineTTid[
hs]=
m_ttService->whichTTID(
id).get_identifier32().get_compact();
137 const float* pcostheta=
static_cast<const float*
>(costhetaBlob.startingAddress());
138 const float* psinthetacosphi=
static_cast<const float*
>(sinthetacosphiBlob.startingAddress());
139 const float* psinthetasinphi=
static_cast<const float*
>(sinthetasinphiBlob.startingAddress());
140 const uint32_t* pofflineTTid=
static_cast<const uint32_t*
>(offlineTTidBlob.startingAddress());
143 std::ostream *
out = &(std::cout);
155 for (
unsigned hs=0;
hs<hashMax;++
hs) {
158 << pcostheta[
hs] <<
" " << psinthetacosphi[
hs] <<
" " << psinthetasinphi[
hs]
159 <<
" 0x"<< std::hex << pofflineTTid[
hs] << std::dec << std::endl;
167 return StatusCode::SUCCESS;
◆ 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_cablingKey
◆ m_caloMgrKey
◆ m_detStore
◆ m_dump
bool LArGeoWeightsFill::m_dump |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_fill
bool LArGeoWeightsFill::m_fill |
|
private |
◆ m_key
std::string LArGeoWeightsFill::m_key |
|
private |
◆ m_nameOfSet
std::string LArGeoWeightsFill::m_nameOfSet |
|
private |
◆ m_onlineID
◆ m_outFileName
std::string LArGeoWeightsFill::m_outFileName |
|
private |
◆ m_ttService
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
Scalar phi() const
phi method
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Scalar eta() const
pseudorapidity method
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
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)
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
std::vector< SG::VarHandleKeyArray * > m_vhka
value_type get_compact() const
Get the compact id.
std::string m_outFileName
const std::string & key() const
Return the StoreGate ID for the referenced object.
value_type get_compact() const
Get the compact id.
const LArOnlineID * m_onlineID
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
ToolHandle< CaloTriggerTowerService > m_ttService
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
IdentifierHash calo_hash() const
cell calo hash
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.
HWIdentifier channel_Id(int barrel_ec, int pos_neg, int feedthrough, int slot, int channel) const
create channel identifier from fields
An AttributeList represents a logical row of attributes in a metadata table. The name and type of eac...
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
size_type channelHashMax(void) const
Define channel hash tables max size.
StatusCode initialize(bool used=true)
DataObjIDColl m_extendedExtraObjects
This class provides the client interface for accessing the detector description information common to...
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
float eta() const
cell eta
AthAlgorithm()
Default constructor:
float phi() const
cell phi
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>