|
ATLAS Offline Software
|
#include <LArShapeDumperTool.h>
|
| LArShapeDumperTool (const std::string &type, const std::string &name, const IInterface *parent) |
|
virtual | ~LArShapeDumperTool () |
|
StatusCode | initialize () override |
|
StatusCode | finalize () override |
|
virtual LArSamples::CellInfo * | makeCellInfo (const HWIdentifier &channelID, const Identifier &id, const CaloDetDescrElement *caloDetElement=0) const override |
|
virtual LArSamples::ShapeInfo * | retrieveShape (const HWIdentifier &channelID, CaloGain::CaloGain gain) const override |
|
virtual bool | doShape () const override |
|
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 |
|
Definition at line 20 of file LArShapeDumperTool.h.
◆ StoreGateSvc_t
◆ LArShapeDumperTool()
LArShapeDumperTool::LArShapeDumperTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~LArShapeDumperTool()
LArShapeDumperTool::~LArShapeDumperTool |
( |
| ) |
|
|
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]
◆ 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()
◆ doShape()
virtual bool LArShapeDumperTool::doShape |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ 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
◆ finalize()
StatusCode LArShapeDumperTool::finalize |
( |
| ) |
|
|
override |
◆ initialize()
StatusCode LArShapeDumperTool::initialize |
( |
| ) |
|
|
override |
Definition at line 41 of file LArShapeDumperTool.cxx.
43 const CaloCell_ID* idHelper =
nullptr;
45 m_emId = idHelper->em_idHelper();
46 m_hecId = idHelper->hec_idHelper();
47 m_fcalId = idHelper->fcal_idHelper();
51 return StatusCode::SUCCESS;
◆ 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.
◆ interfaceID()
static const InterfaceID& ILArShapeDumperTool::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
◆ makeCellInfo()
Implements ILArShapeDumperTool.
Definition at line 61 of file LArShapeDumperTool.cxx.
87 msg(MSG::WARNING) <<
"LArDigit Id "<< MSG::hex <<
id.get_identifier32().get_compact() << MSG::dec
90 <<
") appears to be neither EM nor HEC nor FCAL." <<
endmsg;
104 TVector3 position(0,0,1);
105 ULong64_t onlid = (ULong64_t)channelID.get_identifier32().get_compact();
106 if (caloDetElement) position = TVector3(caloDetElement->
x(), caloDetElement->
y(), caloDetElement->
z());
111 shapeL, shapeM, shapeH, position, onlid);
◆ 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()
◆ retrieveShape()
Implements ILArShapeDumperTool.
Definition at line 115 of file LArShapeDumperTool.cxx.
124 msg(MSG::INFO) <<
"Shape object is not of type LArShapeComplete!" <<
endmsg;
133 msg(MSG::WARNING) <<
"Shape object for channel " << channelID <<
" and gain " <<
gain
134 <<
" has 0 phases !" <<
endmsg;
138 for (
unsigned int iPhase = 0; iPhase < nPhases; iPhase++) {
141 if (!(shape_i.
valid() && shape_i.size()>0)) {
142 msg(MSG::WARNING) <<
"Shape object for channel " << channelID <<
" and gain " <<
gain
143 <<
" has no data in phase " << iPhase <<
" !" <<
endmsg;
147 for (
unsigned int iSample = 0; iSample < shape_i.size(); iSample++) {
148 if (iSample == 0 && iPhase == 0)
149 shape =
new ShapeInfo(shape_i.size(), 3, nPhases, 0);
150 shape->
set(iSample, iPhase, shape_i[iSample]);
◆ 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_doAllShapes
bool LArShapeDumperTool::m_doAllShapes |
|
private |
◆ m_doShape
bool LArShapeDumperTool::m_doShape |
|
private |
◆ m_emId
◆ m_evtStore
◆ m_fcalId
◆ m_hecId
◆ m_onlineHelper
◆ m_shapeKey
std::string LArShapeDumperTool::m_shapeKey |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
int phi(const Identifier id) const
return phi according to :
bool valid() const
Test to see if the proxy has been initialized.
int eta(const Identifier id) const
return eta [0,9] outer part [0,3] inner part
bool is_lar_fcal(Identifier id) const
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
This class implements the ILArShape interface.
int slot(const HWIdentifier id) const
Return the slot number of a hardware cell identifier: slot = [1,15] Slot-ID in top part of the crat...
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
int module(const Identifier id) const
module [1,3]
int region(const Identifier id) const
return region according to :
int sampling(const Identifier id) const
return sampling according to :
void set(unsigned char iSample, unsigned char iPhase, float value)
int eta(const Identifier id) const
return eta according to :
int eta(const Identifier id) const
eta [0,63] module 1 ; [0,31] module 2 ; [0,15] module 3
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
int phi(const Identifier id) const
phi [0,15]
int channel(const HWIdentifier id) const
Return the channel number of a hardware cell identifier channel = [0,127] in all FEB.
int pos_neg(const HWIdentifier id) const
Return the side of a hardware cell identifier pos_neg = [0,1] positive-side or negative-side Barrel...
bool is_lar_hec(Identifier id) const
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
virtual unsigned nTimeBins(const HWIdentifier &CellID, int gain) const
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
int barrel_ec(const Identifier id) const
return barrel_ec according to :
int feedthrough(const HWIdentifier id) const
Return the feedthrough of a hardware cell identifier : feedthrough = [0,31] Barrel - A/C side or H/...
int sampling(const Identifier id) const
return sampling [0,3] (only 0 for supercells)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
virtual ShapeRef_t Shape(const HWIdentifier &CellID, int gain, int tbin=0, int mode=0) const override
setScale setgFexType iEta
int region(const Identifier id) const
return region [0,1]
bool is_lar_em(Identifier id) const
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Proxy for accessing a range of float values like a vector.
int phi(const Identifier id) const
return phi[0,63] outer part [0,31] inner part