|
ATLAS Offline Software
|
Go to the documentation of this file.
24 return StatusCode::FAILURE;
35 return StatusCode::FAILURE;
65 return StatusCode::SUCCESS;
73 const EventContext& ctx = Gaudi::Hive::currentContext();
78 ATH_MSG_WARNING (
"Unable to retrieve LArAccumulatedCalibDigitContainer with key " <<
m_contKey <<
" from DetectorStore. " );
79 return StatusCode::SUCCESS;
82 accuDigitContainer = Hdl.cptr();
90 return StatusCode::SUCCESS;
92 ATH_MSG_DEBUG (
"LArAccumulatedCalibDigitContainer with key=" <<
m_contKey <<
" has " <<accuDigitContainer->
size() <<
" entries" );
95 for (;
it!=it_e;++
it) {
97 if ( !(*
it) )
continue;
104 m_DAC = (*it)->DAC();
109 unsigned int trueMaxSample = (*it)->nsamples();
114 ATH_MSG_WARNING (
"The number of samples in data is larger than the one specified by JO: " << trueMaxSample <<
" > " <<
m_Nsamples <<
" --> only " <<
m_Nsamples <<
" will be available in the ntuple " );
120 const std::vector<unsigned long>& sampleSum = (*it)->sampleSum();
121 const std::vector<unsigned long>& sampleSum2 = (*it)->sample2Sum();
122 const std::vector<float>&
mean = (*it)->mean();
123 const std::vector<float>& RMSv = (*it)->RMS();
125 for(
unsigned int j=0;j<trueMaxSample;j++){
126 m_Sum[j] = sampleSum[j];
147 return StatusCode::SUCCESS;
virtual StatusCode initialize() override final
Const iterator class for DataVector/DataList.
NTuple::Item< unsigned long > m_StepIndex
void mean(std::vector< double > &bins, std::vector< double > &values, const std::vector< std::string > &files, const std::string &histname, const std::string &tplotname, const std::string &label="")
NTuple::Array< unsigned int > m_SumSq
std::string find(const std::string &s)
return a remapped string
SG::ReadHandleKey< LArAccumulatedCalibDigitContainer > m_contKey
Gaudi::Property< bool > m_keepPulsed
NTuple::Item< unsigned long long > m_EventNum
unsigned long long m_event
const std::string & key() const
Return the StoreGate ID for the referenced object.
const LArOnlineID_Base * m_onlineHelper
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
::StatusCode StatusCode
StatusCode definition for legacy code.
NTuple::Array< float > m_Mean
NTuple::Item< unsigned long long > m_IEvent
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
NTuple::Item< long > m_delay
NTuple::Array< unsigned int > m_Sum
LArAverages2Ntuple(const std::string &name, ISvcLocator *pSvcLocator)
Helper for the Liquid Argon Calorimeter cell identifiers.
NTuple::Item< long > m_DAC
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
bool fillFromIdentifier(const HWIdentifier &id)
Gaudi::Property< unsigned int > m_Nsamples
int feedthrough(const HWIdentifier id) const
Return the feedthrough of a hardware cell identifier : feedthrough = [0,31] Barrel - A/C side or H/...
virtual StatusCode execute() override final
#define ATH_MSG_WARNING(x)
Gaudi::Property< bool > m_isSC
NTuple::Item< long > m_isPulsed
NTuple::Item< long > m_Ntrigger
NTuple::Item< long > m_ntNsamples
Gaudi::Property< std::vector< unsigned int > > m_keepFT
Container class for LArAccumulatedCalibDigit.
NTuple::Item< long > m_Nsteps
NTuple::Array< float > m_RMS
size_type size() const noexcept
Returns the number of elements in the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.