Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
35 m_groupingType(
"SubDetector")
69 return StatusCode::SUCCESS;
78 ATH_MSG_ERROR (
"Key list is empty! No containers to process!" );
79 return StatusCode::FAILURE;
85 if (
sc.isFailure() || !larDigitContainer) {
86 ATH_MSG_DEBUG (
"Cannot read LArCalibDigitContainer from StoreGate! key=" <<
key );
89 if(larDigitContainer->
empty()) {
101 return StatusCode::FAILURE;
103 const std::vector<short> & samples =
digit->samples();
106 std::vector<short>::const_iterator s_it=samples.begin();
107 std::vector<short>::const_iterator s_it_e=samples.end();
110 for (;s_it!=s_it_e && *s_it>=
min && *s_it<=
max;++s_it)
113 thisPed.
add(samples);
116 thisPed.
add(samples);
129 return StatusCode::SUCCESS;
140 ATH_MSG_ERROR (
"Key list is empty! No containers processed!" );
141 return StatusCode::FAILURE;
145 auto larPedestalComplete = std::make_unique<LArPedestalComplete>();
148 ATH_CHECK( larPedestalComplete->initialize() );
158 int n_zero,n_min, n_max, n_cur;
159 n_zero=0; n_max=n_min=-1;
160 for (;cell_it!=cell_it_e;cell_it++) {
178 if(n_cur<n_min || n_min<0) n_min=n_cur;
179 if(n_cur>n_max || n_max<0) n_max=n_cur;
188 ATH_MSG_INFO (
"Gain " <<
gain <<
" Number of cells with 0 events to compute pedestal: " << n_zero );
189 ATH_MSG_INFO (
"Gain " <<
gain <<
" Minimum number of events|samples to compute pedestal: " << n_min );
190 ATH_MSG_INFO (
"Gain " <<
gain <<
" Maximum number of events|samples to compute pedestal: " << n_max );
193 ATH_MSG_INFO (
" Summary : Number of cells with a pedestal value computed : " << larPedestalComplete->totalNumberOfConditions() );
194 ATH_MSG_INFO (
" Summary : Number of Barrel PS cells side A or C (connected+unconnected): 4096 " );
195 ATH_MSG_INFO (
" Summary : Number of Barrel cells side A or C (connected+unconnected): 53248 " );
196 ATH_MSG_INFO (
" Summary : Number of EMEC cells side A or C (connected+unconnected): 35328 " );
197 ATH_MSG_INFO (
" Summary : Number of HEC cells side A or C (connected+unconnected): 3072 ");
198 ATH_MSG_INFO (
" Summary : Number of FCAL cells side A or C (connected+unconnected): 1792 " );
204 return StatusCode::SUCCESS;
HWIdentifier channelId() const
std::vector< float > m_mean
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="")
void set(const std::string &id)
build from a string form - hexadecimal
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Declaration of const iterator.
const short & get_max() const
void add(const std::vector< short > &samples)
const short & get_min() const
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
unsigned get_nsamples() const
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
void set_min(const short min)
ConstConditionsMapIterator end(unsigned int gain) const
end of all channels for this gain
Liquid Argon digit base class.
::StatusCode StatusCode
StatusCode definition for legacy code.
ConstReference get(const HWIdentifier id, unsigned int gain=0) const
get data with online identifier
LArPedestalMaker(const std::string &name, ISvcLocator *pSvcLocator)
void set_max(const short max)
std::vector< std::string > m_keylist
std::vector< float > m_rms
virtual StatusCode initialize()
Initialization done after creation or read back - derived classes may augment the functionality.
std::string m_groupingType
ConstConditionsMapIterator begin(unsigned int gain) const
get iterator for all channels for a gain
Container class for LArDigit.
bool empty() const noexcept
Returns true if the collection is empty.