 |
ATLAS Offline Software
|
Go to the documentation of this file.
43 m_groupingType(
"ExtendedSubDetector"),
74 return StatusCode::FAILURE;
80 ATH_MSG_ERROR(
"Failed initialize intermediate AutoCorr object" );
84 return StatusCode::SUCCESS;
101 return StatusCode::FAILURE;
108 <<
", type= " << bunchCrossing->
bcType(
bcid) <<
")" );
109 return StatusCode::SUCCESS;
120 if (
sc.isFailure() || !larDigitContainer) {
124 if(larDigitContainer->
empty()) {
128 ATH_MSG_DEBUG(
"Got LArDigitContainer with key " <<
key <<
", size=" << larDigitContainer->
size());
138 return StatusCode::FAILURE;
140 const std::vector<short> & samples =
digit->samples();
145 std::vector<short>::const_iterator s_it=samples.begin();
146 std::vector<short>::const_iterator s_it_e=samples.end();
150 for (;s_it!=s_it_e && *s_it>=
min && *s_it<=
max;++s_it)
171 return StatusCode::SUCCESS;
183 ATH_MSG_ERROR(
"Key list is empty! No containers processed!" );
184 return StatusCode::FAILURE;
188 auto larAutoCorrComplete = std::make_unique<LArAutoCorrComplete>();
191 if (
sc.isFailure()) {
192 ATH_MSG_ERROR(
"Failed to set groupingType for LArAutoCorrComplete object" );
196 sc=larAutoCorrComplete->initialize();
197 if (
sc.isFailure()) {
198 ATH_MSG_ERROR(
"Failed initialize LArAutoCorrComplete object" );
207 for (;cell_it!=cell_it_e;cell_it++) {
219 std::vector<float> cov_flt;
220 cov_flt.reserve(
cov.size());
221 std::vector<double>::const_iterator
it=
cov.begin();
222 std::vector<double>::const_iterator it_e=
cov.end();
224 cov_flt.push_back((
float)*
it);
229 larAutoCorrComplete->
set(ch_id,
gain,cov_flt);
235 ATH_MSG_INFO(
" Summary : Number of cells with a autocorr value computed : " << larAutoCorrComplete->totalNumberOfConditions() );
236 ATH_MSG_INFO(
" Summary : Number of Barrel PS cells side A or C (connected+unconnected): 4096 " );
237 ATH_MSG_INFO(
" Summary : Number of Barrel cells side A or C (connected+unconnected): 53248 " );
238 ATH_MSG_INFO(
" Summary : Number of EMEC cells side A or C (connected+unconnected): 35328 " );
239 ATH_MSG_INFO(
" Summary : Number of HEC cells side A or C (connected+unconnected): 3072 ");
240 ATH_MSG_INFO(
" Summary : Number of FCAL cells side A or C (connected+unconnected): 1792 " );
244 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
HWIdentifier channelId() const
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
Declaration of const iterator.
const short & get_max() const
const std::vector< double > & get_cov(int m_normalize, int m_phys)
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
std::vector< std::string > m_keylist
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
SG::ReadCondHandleKey< BunchCrossingCondData > m_bcDataKey
void set_max(const short max)
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
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
void set_min(const short min)
@ BunchCrossings
Distance in units of 25 nanoseconds.
void add(const std::vector< short > &samples, size_t maxnsamples)
std::string m_groupingType
int distanceFromFront(const bcid_type bcid, const BunchDistanceType type=NanoSec) const
The distance of the specific bunch crossing from the front of the train.
const short & get_min() const
setEventNumber setTimeStamp bcid
Class describing the basic event information.
LArAutoCorrMaker(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize()
Initialization done after creation or read back - derived classes may augment the functionality.
BunchCrossingType bcType(const bcid_type bcid) const
Convenience function for the type of the specific bunch crossing.
ConstConditionsMapIterator begin(unsigned int gain) const
get iterator for all channels for a gain
Container class for LArDigit.
std::vector< std::string > m_keylistproperty
uint32_t bcid() const
The bunch crossing ID of the event.
size_type size() const noexcept
Returns the number of elements in the collection.
int m_bunchCrossingsFromFront
bool empty() const noexcept
Returns true if the collection is empty.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.