|
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;
103 if (!bunchCrossing) {
105 return StatusCode::FAILURE;
112 <<
", type= " << bunchCrossing->
bcType(
bcid) <<
")" );
113 return StatusCode::SUCCESS;
124 if (
sc.isFailure() || !larDigitContainer) {
128 if(larDigitContainer->
empty()) {
132 ATH_MSG_DEBUG(
"Got LArDigitContainer with key " <<
key <<
", size=" << larDigitContainer->
size());
142 return StatusCode::FAILURE;
144 const std::vector<short> & samples =
digit->samples();
149 std::vector<short>::const_iterator s_it=samples.begin();
150 std::vector<short>::const_iterator s_it_e=samples.end();
154 for (;s_it!=s_it_e && *s_it>=
min && *s_it<=
max;++s_it)
175 return StatusCode::SUCCESS;
187 ATH_MSG_ERROR(
"Key list is empty! No containers processed!" );
188 return StatusCode::FAILURE;
195 if (
sc.isFailure()) {
196 ATH_MSG_ERROR(
"Failed to set groupingType for LArAutoCorrComplete object" );
201 if (
sc.isFailure()) {
202 ATH_MSG_ERROR(
"Failed initialize LArAutoCorrComplete object" );
211 for (;cell_it!=cell_it_e;cell_it++) {
223 std::vector<float> cov_flt;
224 cov_flt.reserve(
cov.size());
225 std::vector<double>::const_iterator
it=
cov.begin();
226 std::vector<double>::const_iterator it_e=
cov.end();
228 cov_flt.push_back((
float)*
it);
233 larAutoCorrComplete->
set(ch_id,
gain,cov_flt);
240 ATH_MSG_INFO(
" Summary : Number of Barrel PS cells side A or C (connected+unconnected): 4096 " );
241 ATH_MSG_INFO(
" Summary : Number of Barrel cells side A or C (connected+unconnected): 53248 " );
242 ATH_MSG_INFO(
" Summary : Number of EMEC cells side A or C (connected+unconnected): 35328 " );
243 ATH_MSG_INFO(
" Summary : Number of HEC cells side A or C (connected+unconnected): 3072 ");
244 ATH_MSG_INFO(
" Summary : Number of FCAL cells side A or C (connected+unconnected): 1792 " );
248 if (
sc != StatusCode::SUCCESS) {
249 ATH_MSG_ERROR(
" Cannot store LArAutoCorrComplete in DetectorStore " );
255 if (
sc != StatusCode::SUCCESS) {
260 return StatusCode::SUCCESS;
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="")
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Declaration of const iterator.
void set(const HWIdentifier &CellID, int gain, const std::vector< float > &vAutoCorr)
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.
This class defines the interface for accessing AutoCorrelation parameters for each channel @stereotyp...
unsigned int totalNumberOfConditions() const
Statistics: total number of conditions.
This class implements the ILArAutoCorr interface.
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
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.