|
ATLAS Offline Software
|
#include <TBECLArRawChannelBuilder.h>
|
| TBECLArRawChannelBuilder (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | execute () override |
|
virtual StatusCode | finalize () 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 |
|
|
const LArOnlineID * | m_onlineHelper |
|
const CaloCell_ID * | m_calo_id |
|
SG::ReadCondHandleKey< LArOnOffIdMapping > | m_cablingKey {this,"keyCabling", "LArOnOffIdMap", "Input key for Id mapping"} |
|
SG::ReadCondHandleKey< ILArHVScaleCorr > | m_offlineHVScaleCorrKey {this, "keyOfflineHVCorr", "LArHVScaleCorrRecomputed","Key for LArHVScaleCorr"} |
|
std::string | m_DataLocation |
|
std::string | m_ChannelContainerName |
|
bool | m_useTDC |
|
bool | m_useRamp |
|
bool | m_useShape |
|
bool | m_ConvertADCToHighGain |
|
float | m_Ecut |
|
int | m_initialTimeSampleShift |
|
int | m_NOFCPhases |
|
int | m_NOFCTimeBins |
|
bool | m_useIntercept [4] |
|
bool | m_useOFCPhase |
|
bool | m_phaseInv |
|
float | m_ramp_max [3] |
|
double | m_SamplingPeriode |
|
float | m_OFCTimeBin |
|
bool | m_binHalfOffset |
|
bool | m_allowTimeJump |
|
int | m_pedestalFallbackMode |
|
unsigned int | m_iPedestal |
|
unsigned int | m_shapeMode |
|
unsigned | m_skipSaturCells |
|
short | m_AdcMax |
|
int | m_noEnergy |
|
int | m_noTime |
|
int | m_noShape |
|
int | m_noShapeDer |
|
int | m_saturation |
|
int | m_lastNoEnergy |
|
int | m_lastNoTime |
|
int | m_lastNoShape |
|
int | m_lastNoShapeDer |
|
float | m_aveNoEnergy |
|
float | m_aveNoTime |
|
float | m_aveNoShape |
|
float | m_aveNoShapeDer |
|
float | m_aveSaturCells |
|
int | m_nEvents |
|
float | m_aveChannels |
|
bool | m_hvcorr |
|
double | m_SamplingPeriodeUpperLimit |
|
double | m_SamplingPeriodeLowerLimit |
|
const LArEM_ID * | m_emId |
|
float | m_adc2mev [30] |
|
SG::ReadCondHandleKey< ILArOFC > | m_ofcKey {this, "OFCKey", "LArOFC", "SG Key of OFC conditions object" } |
| Property: OFC coefficients (conditions input). More...
|
|
SG::ReadCondHandleKey< LArADC2MeV > | m_adc2mevKey { this, "ADC2MeVKey", "LArADC2MeV", "SG Key of the LArADC2MeV CDO" } |
|
DataObjIDColl | m_extendedExtraObjects |
|
StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) More...
|
|
StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) More...
|
|
std::vector< SG::VarHandleKeyArray * > | m_vhka |
|
bool | m_varHandleArraysDeclared |
|
Definition at line 25 of file TBECLArRawChannelBuilder.h.
◆ StoreGateSvc_t
◆ TBECLArRawChannelBuilder()
TBECLArRawChannelBuilder::TBECLArRawChannelBuilder |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ 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 TBECLArRawChannelBuilder::execute |
( |
| ) |
|
|
overridevirtual |
Definition at line 181 of file TBECLArRawChannelBuilder.cxx.
183 const EventContext& ctx = Gaudi::Hive::currentContext();
197 oflHVCorr = *oflHVCorrHdl;
200 return StatusCode::FAILURE;
207 return StatusCode::FAILURE;
214 float globalTimeOffset=0;
229 if (
sc.isFailure()) {
230 ATH_MSG_WARNING (
"Can't retrieve LArShape from Conditions Store" << std::endl
231 <<
"Quality factor will not be caluclated." );
247 const TBPhase* theTBPhase =
nullptr;
259 if (
sc.isSuccess()) globalTimeOffset = larGlobalTimeOffset->
TimeOffset();
263 if (
sc.isFailure()) larFebTimeOffset=NULL;
268 larRawChannelContainer->reserve(digitContainer->
size());
271 ATH_MSG_ERROR (
"Can't record LArRawChannelContainer in StoreGate" );
295 const std::vector<short>& samples=
digit->samples();
296 const unsigned nSamples=samples.size();
304 int region = -99999 ;
308 id =
cabling->cnvToIdentifier(chid);
310 ATH_MSG_DEBUG (
"A Cabling exception was caught for channel 0x!"
319 <<
" [ Layer = " <<
layer <<
" - Eta = " <<
eta
320 <<
" - Phi = " <<
phi <<
" - Region = " << region <<
" ] " );
325 for (
unsigned iSample=0;iSample<samples.size();iSample++) {
336 msg() <<
". Skipping channel." <<
endmsg;
338 }
else if ( nSatur>-1 ) {
347 float pedestalAverage;
355 <<
" [ Layer = " <<
layer <<
" - Eta = " <<
eta <<
" - Phi = " <<
phi <<
" - Region = " << region <<
" ]"
356 <<
" Gain = " <<
gain <<
". Skipping channel." );
365 << MSG::dec <<
" Gain=" <<
gain <<
". Using time sample " <<
m_iPedestal );
368 pedestalAverage=pedestal;
376 float febTimeOffset=0;
378 if (larFebTimeOffset)
379 febTimeOffset=larFebTimeOffset->
TimeOffset(febid);
380 double timeShift=PhaseTime+globalTimeOffset+febTimeOffset;
383 <<
" phase=" << PhaseTime <<
" Feb=" << febTimeOffset
384 <<
" Global=" << globalTimeOffset;
387 const double ofcTimeOffset=larOFC->timeOffset(chid,
gain);
388 timeShift+=ofcTimeOffset;
396 timeSampleShift -= 1;
402 timeSampleShift += 1;
410 ATH_MSG_ERROR ( noEnergy <<
". Time offset out of range for channel 0x" << MSG::hex << chid.
get_compact() << MSG::dec
418 ATH_MSG_ERROR ( noEnergy <<
". Negative time sample (" << timeSampleShift <<
") shift for channel 0x" << MSG::hex << chid.
get_compact() << MSG::dec
419 <<
" Found. Skipping channel." );
433 if ( OFCTimeBin < 0 ) {
434 ATH_MSG_ERROR (
"Channel " << MSG::hex << chid.
get_compact() << MSG::dec <<
" asks for OFC bin = " << OFCTimeBin <<
". Set to 0." );
441 ofc_a=larOFC->OFC_a(chid,
gain,OFCTimeBin);
446 if (ofc_a.size()==0) {
449 <<
" [ Layer = " <<
layer <<
" - Eta = " <<
eta <<
" - Phi = " <<
phi <<
" - Region = " << region <<
" ]"
450 <<
" Time bin = " << OFCTimeBin <<
", Gain = " <<
gain <<
". Skipping channel." );
453 if (ofc_a.size()+timeSampleShift>
nSamples) {
456 if (timeSampleShift==0)
458 << ofc_a.size() <<
" samples. Skipping Channel ");
461 <<
" samples left, but have OFCs for " << ofc_a.size() <<
" samples. Skipping Channel ");
467 for (
unsigned i=0;
i<(ofc_a.size());
i++)
468 ADCPeak+=(samples[
i+timeSampleShift]-pedestalAverage)*ofc_a.
at(
i);
476 if (ramp.size()==0) {
479 <<
" [ Layer = " <<
layer <<
" - Eta = " <<
eta <<
" - Phi = " <<
phi <<
" - Region = " << region <<
" ]"
480 <<
" Gain = " <<
gain <<
". Skipping channel." );
487 ATH_MSG_DEBUG (
"Bad ramp for channel " << chid <<
" (ramp[1] = " << ramp[1] <<
"): skip this channel" );
491 float ADCPeakPower=ADCPeak;
496 for (
unsigned i=1;
i<ramp.size();
i++)
498 ADCPeakPower*=ADCPeak;
513 float hvCorr = oflHVCorr-> HVScaleCorr(chid);
520 ofc_b=larOFC->OFC_b(chid,
gain,OFCTimeBin);
521 if (ofc_b.size() != ofc_a.size()) {
524 <<
" Gain "<<
gain <<
" found. Time not calculated." );
527 <<
" not equal to OFC for energy size " << ofc_a.size()
528 <<
" Time not calculated " );
531 for (
unsigned i=0;
i<(ofc_b.size());
i++)
532 time+=(samples[
i+timeSampleShift]-pedestalAverage)*ofc_b.
at(
i);
551 if (shape.size() < ofc_a.size()) {
554 <<
" Gain "<<
gain <<
". Quality factor not calculated." );
557 <<
"smaller than OFC size " << ofc_a.size()
558 <<
"for channel 0x" << MSG::hex << chid.
get_compact()
559 << MSG::dec <<
". Quality factor not calculated." );
564 if (
time!=0 && shapeDer.size()!=shape.size()) {
566 ATH_MSG_DEBUG (
"Shape-Derivative has different size than Shape for channel 0x" << MSG::hex << chid.
get_compact() << MSG::dec
567 <<
". Derivative not taken into accout for quality factor." );
570 if (
time==0 || shapeDer.size()!=shape.size() ) {
571 for (
unsigned i=0;
i<(ofc_a.size());
i++)
572 quality+=((samples[
i+timeSampleShift]-pedestalAverage)-shape[
i]*ADCPeak)*
573 ((samples[
i+timeSampleShift]-pedestalAverage)-shape[
i]*ADCPeak);
576 for (
unsigned i=0;
i<(ofc_a.size());
i++)
577 quality+=((samples[
i+timeSampleShift]-pedestalAverage)-((shape[
i]-shapeDer[
i]*
time)*ADCPeak))*
578 ((samples[
i+timeSampleShift]-pedestalAverage)-((shape[
i]-shapeDer[
i]*
time)*ADCPeak));
598 iquality = ((
int)(quality) ) & 0xFFFF;
599 iprovenance=iprovenance | 0x2000;
604 larRawChannelContainer->push_back(larRawChannel);
608 <<
" e=" <<
energy <<
" t=" <<
time <<
" Q=" << quality );
611 ATH_MSG_DEBUG ( ntot_raw <<
" channels successfully processed, (" << highE <<
" with high energy)" );
615 ATH_MSG_ERROR (
"Too many channels (" <<BadTiming<<
" !) have a bad timing !!" );
616 ATH_MSG_ERROR (
"OFC time constants should be revisited !!!" );
618 larRawChannelContainer->clear();
624 ATH_MSG_ERROR ( saturation <<
" saturating channels were found. Event is skipped." );
625 larRawChannelContainer->clear();
681 msg() << msglvl <<
" *** Error & Warning summary for this event *** " << std::endl;
684 msg() << msglvl <<
" " << noEnergy <<
" out of "
685 << digitContainer->
size() <<
" channel(s) skipped due to a lack of basic calibration constants."
689 msg() << msglvl <<
" " << noTime <<
" out of "
690 << highE <<
" high-enegy channel(s) have no time-info due to a lack of Optimal Filtering Coefficients."
694 msg() << msglvl <<
" " << noShape <<
" out of "
695 << highE <<
" high-enegy channel(s) have no quality factor due to a lack of shape."
699 msg() << msglvl <<
" " << noShapeDer <<
" out of "
700 << highE <<
" high-enegy channel(s) lack the derivative of the shape. Not taken into accout for Quality factor."
705 msg() << MSG::ERROR <<
" " << saturation <<
" out of "
706 << digitContainer->
size() <<
" channel(s) showed saturations. The complete event was skipped." << std::endl;
708 msg() << MSG::ERROR <<
" " << saturation <<
" out of "
709 << digitContainer->
size() <<
" channel(s) showed saturations and were skipped." << std::endl;
711 msg() << MSG::WARNING <<
" " << saturation <<
" out of "
712 << digitContainer->
size() <<
" channel(s) showed saturations." << std::endl;
720 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()
StatusCode TBECLArRawChannelBuilder::finalize |
( |
| ) |
|
|
overridevirtual |
Definition at line 723 of file TBECLArRawChannelBuilder.cxx.
745 msg() << msglvl <<
" *** Error & Warning Summary for all events *** " << std::endl ;
775 ATH_MSG_INFO (
"TBECLArRawChannelBuilder finished without errors or warnings." );
782 return StatusCode::SUCCESS;
◆ initialize()
StatusCode TBECLArRawChannelBuilder::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()
◆ 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_adc2mev
float TBECLArRawChannelBuilder::m_adc2mev[30] |
|
private |
◆ m_adc2mevKey
◆ m_AdcMax
short TBECLArRawChannelBuilder::m_AdcMax |
|
private |
◆ m_allowTimeJump
bool TBECLArRawChannelBuilder::m_allowTimeJump |
|
private |
◆ m_aveChannels
float TBECLArRawChannelBuilder::m_aveChannels |
|
private |
◆ m_aveNoEnergy
float TBECLArRawChannelBuilder::m_aveNoEnergy |
|
private |
◆ m_aveNoShape
float TBECLArRawChannelBuilder::m_aveNoShape |
|
private |
◆ m_aveNoShapeDer
float TBECLArRawChannelBuilder::m_aveNoShapeDer |
|
private |
◆ m_aveNoTime
float TBECLArRawChannelBuilder::m_aveNoTime |
|
private |
◆ m_aveSaturCells
float TBECLArRawChannelBuilder::m_aveSaturCells |
|
private |
◆ m_binHalfOffset
bool TBECLArRawChannelBuilder::m_binHalfOffset |
|
private |
◆ m_cablingKey
◆ m_calo_id
◆ m_ChannelContainerName
std::string TBECLArRawChannelBuilder::m_ChannelContainerName |
|
private |
◆ m_ConvertADCToHighGain
bool TBECLArRawChannelBuilder::m_ConvertADCToHighGain |
|
private |
◆ m_DataLocation
std::string TBECLArRawChannelBuilder::m_DataLocation |
|
private |
◆ m_detStore
◆ m_Ecut
float TBECLArRawChannelBuilder::m_Ecut |
|
private |
◆ m_emId
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_hvcorr
bool TBECLArRawChannelBuilder::m_hvcorr |
|
private |
◆ m_initialTimeSampleShift
int TBECLArRawChannelBuilder::m_initialTimeSampleShift |
|
private |
◆ m_iPedestal
unsigned int TBECLArRawChannelBuilder::m_iPedestal |
|
private |
◆ m_lastNoEnergy
int TBECLArRawChannelBuilder::m_lastNoEnergy |
|
private |
◆ m_lastNoShape
int TBECLArRawChannelBuilder::m_lastNoShape |
|
private |
◆ m_lastNoShapeDer
int TBECLArRawChannelBuilder::m_lastNoShapeDer |
|
private |
◆ m_lastNoTime
int TBECLArRawChannelBuilder::m_lastNoTime |
|
private |
◆ m_nEvents
int TBECLArRawChannelBuilder::m_nEvents |
|
private |
◆ m_noEnergy
int TBECLArRawChannelBuilder::m_noEnergy |
|
private |
◆ m_NOFCPhases
int TBECLArRawChannelBuilder::m_NOFCPhases |
|
private |
◆ m_NOFCTimeBins
int TBECLArRawChannelBuilder::m_NOFCTimeBins |
|
private |
◆ m_noShape
int TBECLArRawChannelBuilder::m_noShape |
|
private |
◆ m_noShapeDer
int TBECLArRawChannelBuilder::m_noShapeDer |
|
private |
◆ m_noTime
int TBECLArRawChannelBuilder::m_noTime |
|
private |
◆ m_ofcKey
◆ m_OFCTimeBin
float TBECLArRawChannelBuilder::m_OFCTimeBin |
|
private |
◆ m_offlineHVScaleCorrKey
◆ m_onlineHelper
◆ m_pedestalFallbackMode
int TBECLArRawChannelBuilder::m_pedestalFallbackMode |
|
private |
◆ m_phaseInv
bool TBECLArRawChannelBuilder::m_phaseInv |
|
private |
◆ m_ramp_max
float TBECLArRawChannelBuilder::m_ramp_max[3] |
|
private |
◆ m_SamplingPeriode
double TBECLArRawChannelBuilder::m_SamplingPeriode |
|
private |
◆ m_SamplingPeriodeLowerLimit
double TBECLArRawChannelBuilder::m_SamplingPeriodeLowerLimit |
|
private |
◆ m_SamplingPeriodeUpperLimit
double TBECLArRawChannelBuilder::m_SamplingPeriodeUpperLimit |
|
private |
◆ m_saturation
int TBECLArRawChannelBuilder::m_saturation |
|
private |
◆ m_shapeMode
unsigned int TBECLArRawChannelBuilder::m_shapeMode |
|
private |
◆ m_skipSaturCells
unsigned TBECLArRawChannelBuilder::m_skipSaturCells |
|
private |
◆ m_useIntercept
bool TBECLArRawChannelBuilder::m_useIntercept[4] |
|
private |
◆ m_useOFCPhase
bool TBECLArRawChannelBuilder::m_useOFCPhase |
|
private |
◆ m_useRamp
bool TBECLArRawChannelBuilder::m_useRamp |
|
private |
◆ m_useShape
bool TBECLArRawChannelBuilder::m_useShape |
|
private |
◆ m_useTDC
bool TBECLArRawChannelBuilder::m_useTDC |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
virtual float pedestal(const HWIdentifier &id, int gain) const =0
int phi(const Identifier id) const
return phi according to :
const LArVectorProxy ADC2MEV(const HWIdentifier &id, int gain) const
const LArOnlineID * m_onlineHelper
SG::ReadCondHandleKey< ILArHVScaleCorr > m_offlineHVScaleCorrKey
Scalar phi() const
phi method
const LArEM_ID * em_idHelper() const
access to EM idHelper
Scalar eta() const
pseudorapidity method
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
virtual float TimeOffset(const HWIdentifier fId) const =0
float round(const float toRound, const unsigned int decimals)
virtual ShapeRef_t ShapeDer(const HWIdentifier &id, int gain, int tbin=0, int mode=0) const =0
std::string m_ChannelContainerName
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.
bool msgLvl(const MSG::Level lvl) const
int region(const Identifier id) const
return region according to :
int sampling(const Identifier id) const
return sampling according to :
int calo_sample(const Identifier id) const
returns an int taken from Sampling enum and describing the subCalo to which the Id belongs.
#define ATH_MSG_VERBOSE(x)
const std::string & key() const
Return the StoreGate ID for the referenced object.
const CaloCell_ID * m_calo_id
int eta(const Identifier id) const
return eta according to :
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
SG::ReadCondHandleKey< LArADC2MeV > m_adc2mevKey
SG::ReadCondHandleKey< ILArOFC > m_ofcKey
Property: OFC coefficients (conditions input).
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize() override
Override sysInitialize.
value_type at(size_t i) const
Vector indexing with bounds check.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
msgSvc
Provide convenience handles for various services.
Liquid Argon digit base class.
double m_SamplingPeriodeLowerLimit
Liquid Argon ROD output object base class.
Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Old LArRawChannelContainer
::StatusCode StatusCode
StatusCode definition for legacy code.
int m_pedestalFallbackMode
virtual float TimeOffset() const =0
unsigned m_skipSaturCells
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
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
StatusCode initialize(bool used=true)
double m_SamplingPeriodeUpperLimit
std::string m_DataLocation
DataObjIDColl m_extendedExtraObjects
def time(flags, cells_name, *args, **kw)
#define ATH_MSG_WARNING(x)
bool m_ConvertADCToHighGain
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Container class for LArDigit.
AthAlgorithm()
Default constructor:
int m_initialTimeSampleShift
std::string debugPrint(const IDC_Container *container, unsigned numprint=25)
Diagnostic output of Identifiable Containers.
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>
Exception class for LAr Identifiers.
Proxy for accessing a range of float values like a vector.
Container for LArRawChannel (IDC using LArRawChannelCollection)
virtual ShapeRef_t Shape(const HWIdentifier &id, int gain, int tbin=0, int mode=0) const =0