|
ATLAS Offline Software
|
#include <LArShapeCorrector.h>
|
| LArShapeCorrector (const std::string &name, ISvcLocator *pSvcLocator) |
|
| ~LArShapeCorrector () |
|
StatusCode | initialize () |
|
StatusCode | execute () |
|
StatusCode | stop () |
|
StatusCode | finalize () |
|
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 10 of file LArShapeCorrector.h.
◆ StoreGateSvc_t
◆ LArShapeCorrector()
LArShapeCorrector::LArShapeCorrector |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~LArShapeCorrector()
LArShapeCorrector::~LArShapeCorrector |
( |
| ) |
|
|
default |
◆ 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 LArShapeCorrector::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 LArShapeCorrector::finalize |
( |
| ) |
|
|
inline |
◆ initialize()
StatusCode LArShapeCorrector::initialize |
( |
| ) |
|
Definition at line 25 of file LArShapeCorrector.cxx.
43 ATH_MSG_ERROR(
"Only \"Unknown\", \"SingleGroup\", \"SubDetector\", \"FeedThrough\", \"ExtendedFeedThrough\", \"ExtendedSubDetector\" and \"SuperCells\" are allowed" ) ;
44 return StatusCode::FAILURE ;
47 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.
◆ 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 LArShapeCorrector::stop |
( |
| ) |
|
Definition at line 57 of file LArShapeCorrector.cxx.
76 std::unique_ptr<LArShapeComplete> larShapeCompleteCorr=std::make_unique<LArShapeComplete>();
79 if (
sc.isFailure() ) {
80 ATH_MSG_ERROR(
"Could not initialize LArShapeComplete data object - exit!" ) ;
93 const int nPhases=shape.shapeSize();
102 const float timeOffset=shape.timeOffset();
104 bool doShapeCorr=
true;
105 if ( vShape.size() == 0 || vShapeDer.size() == 0 ) {
106 ATH_MSG_WARNING(
"Shape not found for gain "<<
gain <<
" channel 0x" << std::hex <<
id.get_compact() << std::dec );
109 if ( vShape.size() != vShapeDer.size() ) {
110 ATH_MSG_WARNING(
"Shape (" << vShape.size() <<
") derivative (" << vShapeDer.size() <<
") don't have the same size for channel 0x"
111 << std::hex <<
id.get_compact() << std::dec );
115 std::vector<float> theShape;
116 std::vector<float> theShapeDer;
120 if ( vShapeResidual.size() == 0 || vShapeResidualDer.size() == 0 ) {
122 <<
" channel 0x" << std::hex <<
id.get_compact() << std::dec
123 <<
". Will not be applied!" );
126 if ( vShapeResidual.size() != vShapeResidualDer.size() ) {
127 ATH_MSG_ERROR(
"Shape residual (" << vShapeResidual.size() <<
") and its derivative (" << vShapeResidualDer.size()
128 <<
") don't have the same size for channel 0x"
129 << std::hex <<
id.get_compact() << std::dec
130 <<
". Will be not applied!" );
135 if ( vShape.size() > vShapeResidual.size() ) {
136 ATH_MSG_WARNING(
"Shape residual size does not match the shape size for channel 0x"
137 << std::hex <<
id.get_compact() << std::dec
138 <<
". Will be not corrected!" );
143 for (
unsigned k=0;
k<vShape.size();
k++) {
144 theShape.push_back( vShape[
k] + vShapeResidual[
k] );
145 theShapeDer.push_back( vShapeDer[
k] + vShapeResidualDer[
k] );
146 ATH_MSG_VERBOSE(
"Shape channel= " <<
id.get_compact() <<
": " <<
k <<
"\t" << vShape[
k] <<
"\t" << vShapeDer[
k]);
147 ATH_MSG_VERBOSE(
"Shape residual channel= " <<
id.get_compact() <<
": " <<
k <<
"\t" << vShapeResidual[
k] <<
"\t" << vShapeResidualDer[
k]);
151 for (
unsigned k=0;
k<vShape.size();
k++) {
152 theShape.push_back( vShape[
k] );
153 theShapeDer.push_back( vShapeDer[
k] );
157 std::vector<std::vector<float> > shapeAmpl;
158 shapeAmpl.push_back(theShape);
159 std::vector<std::vector<float> > shapeDer;
160 shapeDer.push_back(theShapeDer);
161 larShapeCompleteCorr->
set(
id,(
int)
gain,shapeAmpl,shapeDer,timeOffset,25.);
169 if (
sc.isFailure()) {
176 if (
sc.isFailure()) {
177 ATH_MSG_ERROR(
"Failed to sym-link LArShapeComplete object" );
183 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_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_groupingName
std::string LArShapeCorrector::m_groupingName |
|
private |
◆ m_groupingType
int LArShapeCorrector::m_groupingType |
|
private |
◆ m_keyShape
std::string LArShapeCorrector::m_keyShape |
|
private |
◆ m_keyShape_newcorr
std::string LArShapeCorrector::m_keyShape_newcorr |
|
private |
◆ m_keyShapeResidual
std::string LArShapeCorrector::m_keyShapeResidual |
|
private |
◆ m_phase
int LArShapeCorrector::m_phase |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Declaration of const iterator.
This class implements the ILArShape interface.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
std::string m_keyShapeResidual
#define ATH_MSG_VERBOSE(x)
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
virtual StatusCode sysInitialize() override
Override sysInitialize.
GroupingType
Grouping type.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
ConstConditionsMapIterator end(unsigned int gain) const
end of all channels for this gain
::StatusCode StatusCode
StatusCode definition for legacy code.
Default, invalid implementation of ClassID_traits.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
std::string m_keyShape_newcorr
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
std::string m_groupingName
chan_size_type chan_size() const
number of channels - from MultChanCollection
void set(const HWIdentifier &CellID, int gain, const std::vector< std::vector< float > > &vShape, const std::vector< std::vector< float > > &vShapeDer, float timeOffset=0, float timeBinWidth=25./24.)
DataObjIDColl m_extendedExtraObjects
virtual ShapeRef_t ShapeDer(const HWIdentifier &CellID, int gain, int tbin=0, int mode=0) const override
virtual StatusCode initialize()
Initialization done after creation or read back - derived classes may augment the functionality.
#define ATH_MSG_WARNING(x)
Subset::ConstReference ConstReference
ConstConditionsMapIterator begin(unsigned int gain) const
get iterator for all channels for a gain
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
AthAlgorithm()
Default constructor:
virtual ShapeRef_t Shape(const HWIdentifier &CellID, int gain, int tbin=0, int mode=0) const override
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.