|
ATLAS Offline Software
|
#include <LArPedestalAutoCorrBuilder.h>
|
| LArPedestalAutoCorrBuilder (const std::string &name, ISvcLocator *pSvcLocator) |
|
| ~LArPedestalAutoCorrBuilder () |
|
StatusCode | initialize () |
|
StatusCode | execute () |
|
virtual StatusCode | stop () |
|
virtual 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 |
|
◆ ACCU
◆ StoreGateSvc_t
◆ LArPedestalAutoCorrBuilder()
LArPedestalAutoCorrBuilder::LArPedestalAutoCorrBuilder |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~LArPedestalAutoCorrBuilder()
LArPedestalAutoCorrBuilder::~LArPedestalAutoCorrBuilder |
( |
| ) |
|
|
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 LArPedestalAutoCorrBuilder::execute |
( |
| ) |
|
Definition at line 90 of file LArPedestalAutoCorrBuilder.cxx.
97 ATH_MSG_ERROR(
"Key list is empty! No containers processed!" );
98 return StatusCode::FAILURE;
103 if (
evtStore()->contains<LArFebErrorSummary>(
"LArFebErrorSummary")) {
105 if (
sc.isFailure()) {
106 ATH_MSG_ERROR(
"Failed to retrieve FebErrorSummary object!" );
112 ATH_MSG_WARNING(
"No FebErrorSummaryObject found! Feb errors not checked!" );
121 if (
sc.isFailure() || !container) {
122 ATH_MSG_DEBUG(
"Cannot read LArAccumulatedDigitContainer from StoreGate! key=" <<
key);
124 ATH_MSG_ERROR(
"None of the provided LArAccumulatedDigitContainer keys could be read");
125 return StatusCode::FAILURE;
133 if(container->
empty() ) {
134 ATH_MSG_DEBUG(
"LArAccumulatedDigitContainer (key=" <<
key <<
") is empty ");
137 ATH_MSG_DEBUG(
"LArAccumulatedDigitContainer (key=" <<
key <<
") has length " << container->
size());
143 if (
dg->nTrigger()==0)
continue;
149 if (febid!=lastFailedFEB) {
152 <<
" reports error(s):" << febErrSum->
error_to_string(febErrs) <<
". Data ignored." );
162 ATH_MSG_ERROR(
"Failed to accumulate sub-steps! Inconsistent number of ADC samples" );
165 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()
virtual StatusCode LArPedestalAutoCorrBuilder::finalize |
( |
| ) |
|
|
inlinevirtual |
◆ initialize()
StatusCode LArPedestalAutoCorrBuilder::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 LArPedestalAutoCorrBuilder::stop |
( |
| ) |
|
|
virtual |
Definition at line 170 of file LArPedestalAutoCorrBuilder.cxx.
172 std::unique_ptr<LArAutoCorrComplete> larAutoCorrComplete;
173 std::unique_ptr<LArPedestalComplete> larPedestalComplete;
178 larAutoCorrComplete = std::make_unique<LArAutoCorrComplete>();
186 larPedestalComplete = std::make_unique<LArPedestalComplete>();
198 objName=
"pedestal & autocorr";
200 int n_zero,n_min, n_max, n_cur;
201 n_zero=0; n_max=n_min=-1;
203 std::vector<float>
cov;
211 if (cell_it==cell_it_e){
214 for (;cell_it!=cell_it_e;cell_it++) {
216 n_cur =
dg.nTrigger();
217 if(n_cur==0) { n_zero++;
continue; }
221 if(n_cur<n_min || n_min<0) n_min=n_cur;
222 if(n_cur>n_max || n_max<0) n_max=n_cur;
225 if (larPedestalComplete)
228 if (larAutoCorrComplete) {
235 ATH_MSG_INFO(
"Gain " <<
gain <<
" Number of cells with 0 events to compute "<<objName<<
": " << n_zero );
236 ATH_MSG_INFO(
"Gain " <<
gain <<
" Minimum number of events*samples to compute " <<objName<<
": "<< n_min );
237 ATH_MSG_INFO(
"Gain " <<
gain <<
" Maximum number of events*samples to compute " <<objName<<
": " <<n_max );
240 ATH_MSG_INFO(
" Summary : Number of cells with " <<objName<<
" value computed : " << NCells );
241 ATH_MSG_INFO(
" Summary : Number of Barrel PS cells side A or C (connected+unconnected): 3904+ 192 = 4096 " );
242 ATH_MSG_INFO(
" Summary : Number of Barrel cells side A or C (connected+unconnected): 50944+2304 = 53248 " );
243 ATH_MSG_INFO(
" Summary : Number of EMEC cells side A or C (connected+unconnected): 31872+3456 = 35328 " );
244 ATH_MSG_INFO(
" Summary : Number of HEC cells side A or C (connected+unconnected): 2816+ 256 = 3072 " );
245 ATH_MSG_INFO(
" Summary : Number of FCAL cells side A or C (connected+unconnected): 1762+ 30 = 1792 " );
247 if (larPedestalComplete) {
252 if (larAutoCorrComplete) {
256 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_acContName
std::string LArPedestalAutoCorrBuilder::m_acContName |
|
private |
◆ m_accu
ACCU LArPedestalAutoCorrBuilder::m_accu |
|
private |
◆ m_detStore
◆ m_doAutoCorr
bool LArPedestalAutoCorrBuilder::m_doAutoCorr |
|
private |
◆ m_doPedestal
bool LArPedestalAutoCorrBuilder::m_doPedestal |
|
private |
◆ m_event_counter
unsigned LArPedestalAutoCorrBuilder::m_event_counter |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_fatalFebErrorPattern
uint16_t LArPedestalAutoCorrBuilder::m_fatalFebErrorPattern |
|
private |
◆ m_groupingType
std::string LArPedestalAutoCorrBuilder::m_groupingType |
|
private |
◆ m_keylist
std::vector<std::string> LArPedestalAutoCorrBuilder::m_keylist |
|
private |
◆ m_normalize
int LArPedestalAutoCorrBuilder::m_normalize |
|
private |
◆ m_onlineHelper
◆ m_pedContName
std::string LArPedestalAutoCorrBuilder::m_pedContName |
|
private |
◆ m_sample_max
int LArPedestalAutoCorrBuilder::m_sample_max |
|
private |
◆ m_sample_min
int LArPedestalAutoCorrBuilder::m_sample_min |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
Container class for LArAccumulatedDigit.
bool setAddSubStep(const CaloGain::CaloGain gain_value, const HWIdentifier chid, const std::vector< uint64_t > &sampleSum, const std::vector< uint64_t > &sampleSquare, const unsigned nTrigger)
Accumulate new values
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::vector< std::string > m_keylist
std::string m_groupingType
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
static std::string error_to_string(uint16_t error)
interpret the error in string
void set(const HWIdentifier &CellID, int gain, const std::vector< float > &vAutoCorr)
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
uint16_t feb_error(HWIdentifier febid) const
get error for feb
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Data class for ADC samples and autocorr preprocessed by the DSP.
virtual StatusCode sysInitialize() override
Override sysInitialize.
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
const LArOnlineID_Base * m_onlineHelper
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
void set(const HWIdentifier &CellID, const int gain, const float vPedestal, const float vPedestalRMS)
ConditionsMap::iterator ConditionsMapIterator
HWIdentifier feb_Id(int barrel_ec, int pos_neg, int feedthrough, int slot) const
Create feb_Id from fields.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
uint16_t m_fatalFebErrorPattern
DataObjIDColl m_extendedExtraObjects
virtual StatusCode initialize()
Initialization done after creation or read back - derived classes may augment the functionality.
#define ATH_MSG_WARNING(x)
std::string m_pedContName
Holds information from the FEB Error Summary.
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:
std::string channel_name(const HWIdentifier id) const
Return a string corresponding to a feedthrough name given an identifier.
size_type size() const noexcept
Returns the number of elements in the collection.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
bool empty() const noexcept
Returns true if the collection is empty.