|
ATLAS Offline Software
|
#include <LArDuplicateConstants.h>
|
| LArDuplicateConstants (const std::string &name, ISvcLocator *pSvcLocator) |
|
| ~LArDuplicateConstants () |
|
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 27 of file LArDuplicateConstants.h.
◆ StoreGateSvc_t
◆ LArDuplicateConstants()
LArDuplicateConstants::LArDuplicateConstants |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~LArDuplicateConstants()
LArDuplicateConstants::~LArDuplicateConstants |
( |
| ) |
|
|
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 LArDuplicateConstants::execute |
( |
| ) |
|
|
inline |
◆ 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 LArDuplicateConstants::finalize |
( |
| ) |
|
|
inline |
◆ initialize()
StatusCode LArDuplicateConstants::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.
◆ 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 LArDuplicateConstants::stop |
( |
| ) |
|
Definition at line 48 of file LArDuplicateConstants.cxx.
63 unsigned int n_tot_ped = 0;
64 unsigned int n_dup_ped = 0;
68 if ( ped_it == ped_it_e ) {
71 for ( ; ped_it!=ped_it_e; ped_it++) {
84 <<
" in gain " <<
m_gainOUT <<
" exists! Not duplicating..." );
90 <<
" (" << n_dup_ped <<
"/" << n_tot_ped <<
" PS channels)" );
110 float scaleRamp =
pow(10.,deltaGain);
113 unsigned int n_tot_ramp = 0;
114 unsigned int n_dup_ramp = 0;
115 unsigned nCorrChans=0;
119 if ( ramp_it == ramp_it_e ) {
122 for ( ; ramp_it!=ramp_it_e; ramp_it++) {
135 for (
unsigned i=0;
i<
s;
i++) {
143 <<
" in gain " <<
m_gainOUT <<
" exists! Not duplicating..." );
155 for (;cit!=cit_e;cit++) {
159 const unsigned s = ramp.
m_vRamp.size();
163 for (
unsigned i=0;
i<
s;
i++) {
173 <<
" (" << n_dup_ramp <<
"/" << n_tot_ramp <<
" + " << nCorrChans <<
" PS channels)" );
185 unsigned int n_tot_mpmc = 0;
186 unsigned int n_dup_mpmc = 0;
190 if ( mpmc_it == mpmc_it_e ) {
193 for ( ; mpmc_it!=mpmc_it_e; mpmc_it++) {
206 <<
" in gain " <<
m_gainOUT <<
" exists! Not duplicating..." );
212 <<
" (" << n_dup_mpmc <<
"/" << n_tot_mpmc <<
" PS channels)" );
224 unsigned int n_tot_ofc = 0;
225 unsigned int n_dup_ofc = 0;
229 if ( ofc_it == ofc_it_e ) {
232 for ( ; ofc_it!=ofc_it_e; ofc_it++) {
243 if (!vOFCa_t.size()) {
252 <<
" in gain " <<
m_gainOUT <<
" exists! Not duplicating..." );
259 <<
" (" << n_dup_ofc <<
"/" << n_tot_ofc <<
" PS channels)" );
271 unsigned int n_tot_shape = 0;
272 unsigned int n_dup_shape = 0;
276 if ( shape_it == shape_it_e ) {
279 for ( ; shape_it!=shape_it_e; shape_it++) {
288 if (!vShape_t.size()) {
297 <<
" in gain " <<
m_gainOUT <<
" exists! Not duplicating..." );
303 <<
" (" << n_dup_shape <<
"/" << n_tot_shape <<
" PS channels)" );
308 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_gainIN
unsigned int LArDuplicateConstants::m_gainIN |
|
private |
◆ m_gainOUT
unsigned int LArDuplicateConstants::m_gainOUT |
|
private |
◆ m_keyMPMC
std::string LArDuplicateConstants::m_keyMPMC |
|
private |
◆ m_keyOFC
std::string LArDuplicateConstants::m_keyOFC |
|
private |
◆ m_keyPed
std::string LArDuplicateConstants::m_keyPed |
|
private |
◆ m_keyRamp
std::string LArDuplicateConstants::m_keyRamp |
|
private |
◆ m_keyShape
std::string LArDuplicateConstants::m_keyShape |
|
private |
◆ m_onlineHelper
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
c-struct reproducing the structure of the persistent data
StatusCode applyCorrections()
apply correction set
void setPdata(const HWIdentifier id, const T &payload, unsigned int gain=0)
put payload in persistent data
HWIdentifier channelId() const
StatusCode undoCorrections()
undo corrections that have been already applied
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Declaration of const iterator.
Persistent data for LArRamp Copied from LAr.
StatusCode insertCorrection(HWIdentifier id, const T &cond, unsigned int gain, bool corrChannel=true)
access to corrections -
This class implements the ILArPedestal interface.
This class implements the ILArShape interface.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
value_type get_compact() const
Get the compact id.
virtual OFCRef_t OFC_a(const HWIdentifier &CellID, int gain, int tbin=0) const override
access to OFCs by online ID, gain, and tbin (!=0 for testbeam)
ConstCorrectionIt undoCorrEnd(unsigned int gain) const
const LArOnlineID * m_onlineHelper
#define ATH_MSG_VERBOSE(x)
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
std::vector< float > m_vRamp
virtual void setOwner(IDataHandleHolder *o)=0
Subset::ConstCorrectionVecIt ConstCorrectionIt
virtual StatusCode sysInitialize() override
Override sysInitialize.
This class implements the ILArMphysOverMcal interface.
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.
ConstReference get(const HWIdentifier id, unsigned int gain=0) const
get data with online identifier
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
ConstCorrectionIt undoCorrBegin(unsigned int gain) const
get iterator over the Undo-Vector for a certain gain
c-struct reproducing the structure of the persistent data
DataObjIDColl m_extendedExtraObjects
#define ATH_MSG_WARNING(x)
bool isEMBPS(const HWIdentifier id) const
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
constexpr int pow(int base, int exp) noexcept
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
This class implements the ILArOFC interface.
Proxy for accessing a range of float values like a vector.
bool correctionsApplied() const
Have corrections been applied?