|
ATLAS Offline Software
|
Go to the documentation of this file.
6 #ifndef LARSTRIPSCROSSTALKCORRECTOR_H
7 #define LARSTRIPSCROSSTALKCORRECTOR_H
76 Gaudi::Property<std::vector<std::string> > m_dontUseForCorr{
this,
"DontUseForXtalkCorr",{},
"Types of bad channel should not be taken into accout for xtalk correction of their neighbor"};
80 Gaudi::Property<std::vector<std::string> > m_dontCorr{
this,
"NoXtalkCorr",{},
"Types of bad channel should be ignored and not x-talk corrected"};
87 unsigned int m_event_counter=0;
89 static constexpr
auto m_MAXeta=std::to_array<unsigned>({448,208});
90 static constexpr
auto m_MINeta=std::to_array<unsigned>({1,0});
91 const unsigned int m_MAXphi=64;
94 Gaudi::Property<std::vector<std::string> > m_keylist{
this,
"KeyList",{},
"List of input keys ('HIGH','MEDIUM','LOW')"};
95 Gaudi::Property<unsigned int> m_ADCsatur {
this,
"ADCsaturation",0,
"Cutoff value to ignore saturated digits"};
96 Gaudi::Property<float> m_acceptableDifference{
this,
"AcceptableDifference",20,
"For sanity check: By how much the corrected value may differ from the original one (in %)"};
103 const size_t m_noIdx{9999999};
108 std::array<std::vector < std::vector < const LArAccumulatedCalibDigit* > >,2>
m_stripsLookUp;
112 bool m_missingFEBsDone=
false;
132 void correctSamples(std::vector<double>&
dest,
const neighbour_t& neighbor)
const;
140 const double pedTimesTrig=
nb.ped*(
double)
nb.dig->nTriggers();
142 dest[
i]+=
nb.weight*(
nb.dig->sampleSum()[
i]-pedTimesTrig);
size_t getPhiIndex(const Identifier) const
int phi(const Identifier id) const
return phi according to :
Data class for calibration ADC samples preprocessed by the DSP.
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
size_t getEtaIndex(const Identifier) const
LArBadChannelMask m_dontCorrMask
int region(const Identifier id) const
return region according to :
int sampling(const Identifier id) const
return sampling according to :
std::vector< unsigned > m_diffs
const unsigned int m_MAXphi
maxlistitem(HWIdentifier chidin, int dacin, int delayin, float reldiffin)
int eta(const Identifier id) const
return eta according to :
std::array< std::vector< std::vector< const LArAccumulatedCalibDigit * > >, 2 > m_stripsLookUp
std::array< std::vector< std::bitset< 128 > >, 2 > m_knownMissingFebs
void print(MsgStream &stream, const LArOnlineID *onlId, MSG::Level lvl=MSG::INFO)
void correctSamples(std::vector< double > &dest, const neighbour_t &neighbor) const
::StatusCode StatusCode
StatusCode definition for legacy code.
std::set< HWIdentifier > m_uncorrectedIds
void add(const LArAccumulatedCalibDigit *dig, const float reldiff)
XtalkCorrHisto(const unsigned nBins, const float maxbin)
int barrel_ec(const Identifier id) const
return barrel_ec according to :
LArBadChannelMask m_dontUseForCorrMask
AthAlgorithm()
Default constructor:
Helper class for LArEM offline identifiers.
Define macros for attributes used to control the static checker.
std::vector< maxlistitem > m_maxlist