CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes | Friends
PedsFullNoiseAnalysis Class Reference

Histogram-based analysis for pedestal run. More...

#include <PedsFullNoiseAnalysis.h>

Inheritance diagram for PedsFullNoiseAnalysis:
CommissioningAnalysis

Public Member Functions

const VVFloatadProbab () const
 
const VVIntbadADProbab () const
 
const VVIntbadChi2Probab () const
 
const VVIntbadDoublePeakStrip () const
 
const VVIntbadFitStatus () const
 
const VVIntbadJBProbab () const
 
const VVIntbadKSProbab () const
 
const VVIntbadStrip () const
 
const VVIntbadStripBit () const
 
const VVIntbadTailStrip () const
 
const VVFloatchi2Probab () const
 
const VVIntdeadStrip () const
 
const VVIntdeadStripBit () const
 
bool isValid () const override
 
const VVFloatjbProbab () const
 
const VVFloatksProbab () const
 
const VVIntlargeNoiseSignificance () const
 
const VVIntlargeNoiseStrip () const
 
const VVIntlowNoiseStrip () const
 
const VVFloatnoise () const
 
const VFloatnoiseMax () const
 
const VFloatnoiseMean () const
 
const VFloatnoiseMin () const
 
const VVFloatnoiseSignificance () const
 
const VFloatnoiseSpread () const
 
const VVFloatpeds () const
 
 PedsFullNoiseAnalysis (const uint32_t &key)
 
 PedsFullNoiseAnalysis ()
 
const VFloatpedsMax () const
 
const VFloatpedsMean () const
 
const VFloatpedsMin () const
 
const VFloatpedsSpread () const
 
void print (std::stringstream &, uint32_t apv_number=0) override
 
const VVFloatraw () const
 
const VFloatrawMax () const
 
const VFloatrawMean () const
 
const VFloatrawMin () const
 
const VFloatrawSpread () const
 
void reset () override
 
const VVFloatresidualIntegral () const
 
const VVFloatresidualIntegralNsigma () const
 
const VVFloatresidualKurtosis () const
 
const VVFloatresidualMean () const
 
const VVFloatresidualRMS () const
 
const VVFloatresidualSigmaGaus () const
 
const VVFloatresidualSkewness () const
 
const VVIntshiftedStrip () const
 
void summary (std::stringstream &) const override
 
 ~PedsFullNoiseAnalysis () override
 
- Public Member Functions inherited from CommissioningAnalysis
virtual void addErrorCode (const std::string &error)
 
 CommissioningAnalysis (const uint32_t &key, const std::string &my_name)
 
 CommissioningAnalysis (const std::string &my_name)
 
const uint32_t & dcuId () const
 
void dcuId (const uint32_t &)
 
const uint32_t & detId () const
 
void detId (const uint32_t &)
 
const uint32_t & fecKey () const
 
void fecKey (const uint32_t &)
 
const uint32_t & fedKey () const
 
void fedKey (const uint32_t &)
 
const VStringgetErrorCodes () const
 
virtual void header (std::stringstream &) const
 
const std::string & myName () const
 
void setErrorCodes (const VString &errors)
 
virtual ~CommissioningAnalysis ()
 

Private Attributes

VVFloat adProbab_
 
VVInt badADProbab_
 
VVInt badChi2Probab_
 
VVInt badDoublePeakStrip_
 
VVInt badFitStatus_
 
VVInt badJBProbab_
 
VVInt badKSProbab_
 
VVInt badStrip_
 
VVInt badStripBit_
 
VVInt badTailStrip_
 
VVFloat chi2Probab_
 
VVInt deadStrip_
 Quantities filled only for bad strips i.e. vectors of strip-id. More...
 
VVInt deadStripBit_
 
VVFloat jbProbab_
 
VVFloat ksProbab_
 
VVInt largeNoiseSignificance_
 
VVInt largeNoiseStrip_
 
bool legacy_
 
VVInt lowNoiseStrip_
 
VVFloat noise_
 
VFloat noiseMax_
 
VFloat noiseMean_
 
VFloat noiseMin_
 
VVFloat noiseSignificance_
 
VFloat noiseSpread_
 
VVFloat peds_
 Quantitles that are always filled for every strip. More...
 
VFloat pedsMax_
 
VFloat pedsMean_
 
VFloat pedsMin_
 
VFloat pedsSpread_
 
VVFloat raw_
 
VFloat rawMax_
 
VFloat rawMean_
 
VFloat rawMin_
 
VFloat rawSpread_
 
VVFloat residualIntegral_
 
VVFloat residualIntegralNsigma_
 
VVFloat residualKurtosis_
 
VVFloat residualMean_
 
VVFloat residualRMS_
 
VVFloat residualSigmaGaus_
 
VVFloat residualSkewness_
 
VVInt shiftedStrip_
 

Friends

class PedestalsAlgorithm
 
class PedsFullNoiseAlgorithm
 

Additional Inherited Members

- Public Types inherited from CommissioningAnalysis
typedef std::vector< bool > VBool
 
typedef std::vector< float > VFloat
 
typedef std::vector< uint16_t > VInt
 
typedef std::vector< std::string > VString
 
typedef std::vector< VBoolVVBool
 
typedef std::vector< VFloatVVFloat
 
typedef std::vector< VIntVVInt
 

Detailed Description

Histogram-based analysis for pedestal run.

Author
M. Wingham, R.Bainbridge

Definition at line 16 of file PedsFullNoiseAnalysis.h.

Constructor & Destructor Documentation

◆ PedsFullNoiseAnalysis() [1/2]

PedsFullNoiseAnalysis::PedsFullNoiseAnalysis ( const uint32_t &  key)

Definition at line 13 of file PedsFullNoiseAnalysis.cc.

References badADProbab_, badChi2Probab_, badDoublePeakStrip_, badFitStatus_, badJBProbab_, badKSProbab_, badStrip_, badTailStrip_, deadStrip_, largeNoiseSignificance_, largeNoiseStrip_, lowNoiseStrip_, and shiftedStrip_.

14  : CommissioningAnalysis(key, "PedsFullNoiseAnalysis"),
15  peds_(2, VFloat(128, sistrip::invalid_)),
17  raw_(2, VFloat(128, sistrip::invalid_)),
57  legacy_(false) {
58  // for flag bits one reserve at max 128 positions since will be filled with strip id only if the strip is bad
59  for (auto iapv : deadStrip_)
60  iapv.reserve(128);
61  for (auto iapv : badStrip_)
62  iapv.reserve(128);
63  for (auto iapv : shiftedStrip_)
64  iapv.reserve(128);
65  for (auto iapv : lowNoiseStrip_)
66  iapv.reserve(128);
67  for (auto iapv : largeNoiseStrip_)
68  iapv.reserve(128);
69  for (auto iapv : largeNoiseSignificance_)
70  iapv.reserve(128);
71  for (auto iapv : badFitStatus_)
72  iapv.reserve(128);
73  for (auto iapv : badADProbab_)
74  iapv.reserve(128);
75  for (auto iapv : badKSProbab_)
76  iapv.reserve(128);
77  for (auto iapv : badJBProbab_)
78  iapv.reserve(128);
79  for (auto iapv : badChi2Probab_)
80  iapv.reserve(128);
81  for (auto iapv : badTailStrip_)
82  iapv.reserve(128);
83  for (auto iapv : badDoublePeakStrip_)
84  iapv.reserve(128);
85 }
VVFloat peds_
Quantitles that are always filled for every strip.
VVInt deadStrip_
Quantities filled only for bad strips i.e. vectors of strip-id.
std::vector< float > VFloat
key
prepare the HTCondor submission files and eventually submit them
std::vector< uint16_t > VInt
static const uint16_t invalid_
Definition: Constants.h:16

◆ PedsFullNoiseAnalysis() [2/2]

PedsFullNoiseAnalysis::PedsFullNoiseAnalysis ( )

Definition at line 89 of file PedsFullNoiseAnalysis.cc.

References badADProbab_, badChi2Probab_, badDoublePeakStrip_, badFitStatus_, badJBProbab_, badKSProbab_, badStrip_, badTailStrip_, deadStrip_, largeNoiseSignificance_, largeNoiseStrip_, lowNoiseStrip_, and shiftedStrip_.

90  : CommissioningAnalysis("PedsFullNoiseAnalysis"),
91  peds_(2, VFloat(128, sistrip::invalid_)),
93  raw_(2, VFloat(128, sistrip::invalid_)),
133  legacy_(false) {
134  // for flag bits one reserve at max 128 positions since will be filled with strip id only if the strip is bad
135  for (auto iapv : deadStrip_)
136  iapv.reserve(128);
137  for (auto iapv : badStrip_)
138  iapv.reserve(128);
139  for (auto iapv : shiftedStrip_)
140  iapv.reserve(128);
141  for (auto iapv : lowNoiseStrip_)
142  iapv.reserve(128);
143  for (auto iapv : largeNoiseStrip_)
144  iapv.reserve(128);
145  for (auto iapv : largeNoiseSignificance_)
146  iapv.reserve(128);
147  for (auto iapv : badFitStatus_)
148  iapv.reserve(128);
149  for (auto iapv : badADProbab_)
150  iapv.reserve(128);
151  for (auto iapv : badKSProbab_)
152  iapv.reserve(128);
153  for (auto iapv : badJBProbab_)
154  iapv.reserve(128);
155  for (auto iapv : badChi2Probab_)
156  iapv.reserve(128);
157  for (auto iapv : badTailStrip_)
158  iapv.reserve(128);
159  for (auto iapv : badDoublePeakStrip_)
160  iapv.reserve(128);
161 }
VVFloat peds_
Quantitles that are always filled for every strip.
VVInt deadStrip_
Quantities filled only for bad strips i.e. vectors of strip-id.
std::vector< float > VFloat
std::vector< uint16_t > VInt
static const uint16_t invalid_
Definition: Constants.h:16

◆ ~PedsFullNoiseAnalysis()

PedsFullNoiseAnalysis::~PedsFullNoiseAnalysis ( )
inlineoverride

Definition at line 24 of file PedsFullNoiseAnalysis.h.

24 { ; }

Member Function Documentation

◆ adProbab()

const PedsFullNoiseAnalysis::VVFloat & PedsFullNoiseAnalysis::adProbab ( ) const
inline

Definition at line 161 of file PedsFullNoiseAnalysis.h.

References adProbab_.

161 { return adProbab_; }

◆ badADProbab()

const PedsFullNoiseAnalysis::VVInt & PedsFullNoiseAnalysis::badADProbab ( ) const
inline

Definition at line 188 of file PedsFullNoiseAnalysis.h.

References badADProbab_.

◆ badChi2Probab()

const PedsFullNoiseAnalysis::VVInt & PedsFullNoiseAnalysis::badChi2Probab ( ) const
inline

Definition at line 191 of file PedsFullNoiseAnalysis.h.

References badChi2Probab_.

◆ badDoublePeakStrip()

const PedsFullNoiseAnalysis::VVInt & PedsFullNoiseAnalysis::badDoublePeakStrip ( ) const
inline

Definition at line 193 of file PedsFullNoiseAnalysis.h.

References badDoublePeakStrip_.

◆ badFitStatus()

const PedsFullNoiseAnalysis::VVInt & PedsFullNoiseAnalysis::badFitStatus ( ) const
inline

Definition at line 187 of file PedsFullNoiseAnalysis.h.

References badFitStatus_.

◆ badJBProbab()

const PedsFullNoiseAnalysis::VVInt & PedsFullNoiseAnalysis::badJBProbab ( ) const
inline

Definition at line 190 of file PedsFullNoiseAnalysis.h.

References badJBProbab_.

◆ badKSProbab()

const PedsFullNoiseAnalysis::VVInt & PedsFullNoiseAnalysis::badKSProbab ( ) const
inline

Definition at line 189 of file PedsFullNoiseAnalysis.h.

References badKSProbab_.

◆ badStrip()

const PedsFullNoiseAnalysis::VVInt & PedsFullNoiseAnalysis::badStrip ( ) const
inline

Definition at line 178 of file PedsFullNoiseAnalysis.h.

References badStrip_.

178 { return badStrip_; }

◆ badStripBit()

const PedsFullNoiseAnalysis::VVInt & PedsFullNoiseAnalysis::badStripBit ( ) const
inline

Definition at line 179 of file PedsFullNoiseAnalysis.h.

References badStripBit_.

◆ badTailStrip()

const PedsFullNoiseAnalysis::VVInt & PedsFullNoiseAnalysis::badTailStrip ( ) const
inline

Definition at line 192 of file PedsFullNoiseAnalysis.h.

References badTailStrip_.

◆ chi2Probab()

const PedsFullNoiseAnalysis::VVFloat & PedsFullNoiseAnalysis::chi2Probab ( ) const
inline

Definition at line 164 of file PedsFullNoiseAnalysis.h.

References chi2Probab_.

164 { return chi2Probab_; }

◆ deadStrip()

const PedsFullNoiseAnalysis::VVInt & PedsFullNoiseAnalysis::deadStrip ( ) const
inline

Definition at line 177 of file PedsFullNoiseAnalysis.h.

References deadStrip_.

177 { return deadStrip_; }
VVInt deadStrip_
Quantities filled only for bad strips i.e. vectors of strip-id.

◆ deadStripBit()

const PedsFullNoiseAnalysis::VVInt & PedsFullNoiseAnalysis::deadStripBit ( ) const
inline

Definition at line 180 of file PedsFullNoiseAnalysis.h.

References deadStripBit_.

◆ isValid()

bool PedsFullNoiseAnalysis::isValid ( void  ) const
overridevirtual

Identifies if analysis is valid or not.

Reimplemented from CommissioningAnalysis.

Definition at line 244 of file PedsFullNoiseAnalysis.cc.

References relativeConstraints::empty, CommissioningAnalysis::getErrorCodes(), sistrip::maximum_, noiseMax_, noiseMean_, noiseMin_, noiseSpread_, pedsMax_, pedsMean_, pedsMin_, pedsSpread_, rawMax_, rawMean_, rawMin_, and rawSpread_.

Referenced by ntupleDataFormat._Object::_checkIsValid(), print(), core.AutoHandle.AutoHandle::ReallyLoad(), and summary().

244  {
254 }
const VString & getErrorCodes() const
static const uint16_t maximum_
Definition: Constants.h:20

◆ jbProbab()

const PedsFullNoiseAnalysis::VVFloat & PedsFullNoiseAnalysis::jbProbab ( ) const
inline

Definition at line 163 of file PedsFullNoiseAnalysis.h.

References jbProbab_.

163 { return jbProbab_; }

◆ ksProbab()

const PedsFullNoiseAnalysis::VVFloat & PedsFullNoiseAnalysis::ksProbab ( ) const
inline

Definition at line 162 of file PedsFullNoiseAnalysis.h.

References ksProbab_.

162 { return ksProbab_; }

◆ largeNoiseSignificance()

const PedsFullNoiseAnalysis::VVInt & PedsFullNoiseAnalysis::largeNoiseSignificance ( ) const
inline

Definition at line 184 of file PedsFullNoiseAnalysis.h.

References largeNoiseSignificance_.

184  {
186 }

◆ largeNoiseStrip()

const PedsFullNoiseAnalysis::VVInt & PedsFullNoiseAnalysis::largeNoiseStrip ( ) const
inline

Definition at line 183 of file PedsFullNoiseAnalysis.h.

References largeNoiseStrip_.

◆ lowNoiseStrip()

const PedsFullNoiseAnalysis::VVInt & PedsFullNoiseAnalysis::lowNoiseStrip ( ) const
inline

Definition at line 182 of file PedsFullNoiseAnalysis.h.

References lowNoiseStrip_.

◆ noise()

const PedsFullNoiseAnalysis::VVFloat & PedsFullNoiseAnalysis::noise ( ) const
inline

Definition at line 158 of file PedsFullNoiseAnalysis.h.

References noise_.

158 { return noise_; }

◆ noiseMax()

const PedsFullNoiseAnalysis::VFloat & PedsFullNoiseAnalysis::noiseMax ( ) const
inline

Definition at line 204 of file PedsFullNoiseAnalysis.h.

References noiseMax_.

204 { return noiseMax_; }

◆ noiseMean()

const PedsFullNoiseAnalysis::VFloat & PedsFullNoiseAnalysis::noiseMean ( ) const
inline

Definition at line 197 of file PedsFullNoiseAnalysis.h.

References noiseMean_.

197 { return noiseMean_; }

◆ noiseMin()

const PedsFullNoiseAnalysis::VFloat & PedsFullNoiseAnalysis::noiseMin ( ) const
inline

Definition at line 205 of file PedsFullNoiseAnalysis.h.

References noiseMin_.

205 { return noiseMin_; }

◆ noiseSignificance()

const PedsFullNoiseAnalysis::VVFloat & PedsFullNoiseAnalysis::noiseSignificance ( ) const
inline

Definition at line 168 of file PedsFullNoiseAnalysis.h.

References noiseSignificance_.

◆ noiseSpread()

const PedsFullNoiseAnalysis::VFloat & PedsFullNoiseAnalysis::noiseSpread ( ) const
inline

Definition at line 198 of file PedsFullNoiseAnalysis.h.

References noiseSpread_.

198 { return noiseSpread_; }

◆ peds()

const PedsFullNoiseAnalysis::VVFloat & PedsFullNoiseAnalysis::peds ( ) const
inline

Definition at line 157 of file PedsFullNoiseAnalysis.h.

References peds_.

157 { return peds_; }
VVFloat peds_
Quantitles that are always filled for every strip.

◆ pedsMax()

const PedsFullNoiseAnalysis::VFloat & PedsFullNoiseAnalysis::pedsMax ( ) const
inline

Definition at line 202 of file PedsFullNoiseAnalysis.h.

References pedsMax_.

202 { return pedsMax_; }

◆ pedsMean()

const PedsFullNoiseAnalysis::VFloat & PedsFullNoiseAnalysis::pedsMean ( ) const
inline

Definition at line 195 of file PedsFullNoiseAnalysis.h.

References pedsMean_.

195 { return pedsMean_; }

◆ pedsMin()

const PedsFullNoiseAnalysis::VFloat & PedsFullNoiseAnalysis::pedsMin ( ) const
inline

Definition at line 203 of file PedsFullNoiseAnalysis.h.

References pedsMin_.

203 { return pedsMin_; }

◆ pedsSpread()

const PedsFullNoiseAnalysis::VFloat & PedsFullNoiseAnalysis::pedsSpread ( ) const
inline

Definition at line 196 of file PedsFullNoiseAnalysis.h.

References pedsSpread_.

196 { return pedsSpread_; }

◆ print()

void PedsFullNoiseAnalysis::print ( std::stringstream &  ss,
uint32_t  apv_number = 0 
)
overridevirtual

Prints analysis results.

Implements CommissioningAnalysis.

Definition at line 319 of file PedsFullNoiseAnalysis.cc.

References badStrip_, deadStrip_, relativeConstraints::empty, alignBH_cfg::fixed, CommissioningAnalysis::getErrorCodes(), CommissioningAnalysis::header(), cuy::ii, isValid(), sistrip::mlCommissioning_, CommissioningAnalysis::myName(), noise_, noiseMax_, noiseMean_, noiseMin_, noiseSpread_, peds_, pedsMax_, pedsMean_, pedsMin_, pedsSpread_, raw_, rawMax_, rawMean_, rawMin_, rawSpread_, findQualityFiles::size, and contentValuesCheck::ss.

319  {
320  if (iapv == 1 || iapv == 2) {
321  iapv--;
322  } else {
323  iapv = 0;
324  }
325 
326  if (peds_[iapv].size() < 128 || noise_[iapv].size() < 128 || raw_[iapv].size() < 128) {
327  edm::LogWarning(mlCommissioning_) << "[" << myName() << "::" << __func__ << "]"
328  << " Unexpected number of pedestal/noise values: " << peds_[iapv].size() << ", "
329  << noise_[iapv].size() << ", " << raw_[iapv].size();
330  return;
331  }
332 
333  header(ss);
334  ss << " Monitorables for APV number : " << iapv;
335  if (iapv == 0) {
336  ss << " (first of pair)";
337  } else if (iapv == 1) {
338  ss << " (second of pair)";
339  }
340  ss << std::endl;
341  ss << std::fixed << std::setprecision(2);
342  ss << " Example peds/noise for strips : "
343  << " 0, 31, 63, 127" << std::endl
344  << " Peds [ADC] : " << std::setw(6) << peds_[iapv][0] << ", " << std::setw(6)
345  << peds_[iapv][31] << ", " << std::setw(6) << peds_[iapv][63] << ", " << std::setw(6) << peds_[iapv][127]
346  << std::endl
347  << " Noise [ADC] : " << std::setw(6) << noise_[iapv][0] << ", " << std::setw(6)
348  << noise_[iapv][31] << ", " << std::setw(6) << noise_[iapv][63] << ", " << std::setw(6) << noise_[iapv][127]
349  << std::endl
350  << " Raw noise [ADC] : " << std::setw(6) << raw_[iapv][0] << ", " << std::setw(6) << raw_[iapv][31]
351  << ", " << std::setw(6) << raw_[iapv][63] << ", " << std::setw(6) << raw_[iapv][127] << std::endl
352  << " Dead strips (<5s) [strip] : (" << deadStrip_[iapv].size() << " in total) ";
353 
354  for (uint16_t ii = 0; ii < deadStrip_[iapv].size(); ii++) {
355  ss << deadStrip_[iapv][ii] << " ";
356  }
357 
358  ss << std::endl;
359  ss << " Bad strips (>5s) [strip] : (" << badStrip_[iapv].size() << " in total) ";
360  for (uint16_t ii = 0; ii < badStrip_[iapv].size(); ii++) {
361  ss << badStrip_[iapv][ii] << " ";
362  }
363  ss << std::endl;
364  ss << " Mean peds +/- spread [ADC] : " << pedsMean_[iapv] << " +/- " << pedsSpread_[iapv] << std::endl
365  << " Min/Max pedestal [ADC] : " << pedsMin_[iapv] << " <-> " << pedsMax_[iapv] << std::endl
366  << " Mean noise +/- spread [ADC] : " << noiseMean_[iapv] << " +/- " << noiseSpread_[iapv] << std::endl
367  << " Min/Max noise [ADC] : " << noiseMin_[iapv] << " <-> " << noiseMax_[iapv] << std::endl
368  << " Mean raw noise +/- spread [ADC] : " << rawMean_[iapv] << " +/- " << rawSpread_[iapv] << std::endl
369  << " Min/Max raw noise [ADC] : " << rawMin_[iapv] << " <-> " << rawMax_[iapv] << std::endl
370  << " Normalised noise : "
371  << "(yet to be implemented...)" << std::endl
372  << std::boolalpha << " isValid : " << isValid() << std::endl
373  << std::noboolalpha << " Error codes (found " << std::setw(2) << std::setfill(' ') << getErrorCodes().size()
374  << ") : ";
375  if (getErrorCodes().empty()) {
376  ss << "(none)";
377  } else {
378  VString::const_iterator istr = getErrorCodes().begin();
379  VString::const_iterator jstr = getErrorCodes().end();
380  for (; istr != jstr; ++istr) {
381  ss << *istr << " ";
382  }
383  }
384  ss << std::endl;
385 }
size
Write out results.
const VString & getErrorCodes() const
VVFloat peds_
Quantitles that are always filled for every strip.
bool isValid() const override
VVInt deadStrip_
Quantities filled only for bad strips i.e. vectors of strip-id.
const std::string & myName() const
static const char mlCommissioning_[]
ii
Definition: cuy.py:589
virtual void header(std::stringstream &) const
Log< level::Warning, false > LogWarning

◆ raw()

const PedsFullNoiseAnalysis::VVFloat & PedsFullNoiseAnalysis::raw ( ) const
inline

Definition at line 159 of file PedsFullNoiseAnalysis.h.

References raw_.

159 { return raw_; }

◆ rawMax()

const PedsFullNoiseAnalysis::VFloat & PedsFullNoiseAnalysis::rawMax ( ) const
inline

Definition at line 206 of file PedsFullNoiseAnalysis.h.

References rawMax_.

206 { return rawMax_; }

◆ rawMean()

const PedsFullNoiseAnalysis::VFloat & PedsFullNoiseAnalysis::rawMean ( ) const
inline

Definition at line 199 of file PedsFullNoiseAnalysis.h.

References rawMean_.

199 { return rawMean_; }

◆ rawMin()

const PedsFullNoiseAnalysis::VFloat & PedsFullNoiseAnalysis::rawMin ( ) const
inline

Definition at line 207 of file PedsFullNoiseAnalysis.h.

References rawMin_.

207 { return rawMin_; }

◆ rawSpread()

const PedsFullNoiseAnalysis::VFloat & PedsFullNoiseAnalysis::rawSpread ( ) const
inline

Definition at line 200 of file PedsFullNoiseAnalysis.h.

References rawSpread_.

200 { return rawSpread_; }

◆ reset()

void PedsFullNoiseAnalysis::reset ( void  )
overridevirtual

Resets analysis member data.

Implements CommissioningAnalysis.

Definition at line 165 of file PedsFullNoiseAnalysis.cc.

References adProbab_, badADProbab_, badChi2Probab_, badDoublePeakStrip_, badFitStatus_, badJBProbab_, badKSProbab_, badStrip_, badStripBit_, badTailStrip_, chi2Probab_, deadStrip_, deadStripBit_, sistrip::invalid_, jbProbab_, ksProbab_, largeNoiseSignificance_, largeNoiseStrip_, legacy_, lowNoiseStrip_, noise_, noiseMax_, noiseMean_, noiseMin_, noiseSignificance_, noiseSpread_, peds_, pedsMax_, pedsMean_, pedsMin_, pedsSpread_, raw_, rawMax_, rawMean_, rawMin_, rawSpread_, residualIntegral_, residualIntegralNsigma_, residualKurtosis_, residualMean_, residualRMS_, residualSigmaGaus_, residualSkewness_, and shiftedStrip_.

Referenced by MatrixReader.MatrixReader::__init__(), and MatrixReader.MatrixReader::showRaw().

165  {
168  raw_ = VVFloat(2, VFloat(128, sistrip::invalid_));
181 
197 
198  // for flag bits one reserve at max 128 positions since will be filled with strip id only if the strip is bad
199  for (auto iapv : deadStrip_)
200  iapv.reserve(128);
201  for (auto iapv : badStrip_)
202  iapv.reserve(128);
203  for (auto iapv : shiftedStrip_)
204  iapv.reserve(128);
205  for (auto iapv : lowNoiseStrip_)
206  iapv.reserve(128);
207  for (auto iapv : largeNoiseStrip_)
208  iapv.reserve(128);
209  for (auto iapv : largeNoiseSignificance_)
210  iapv.reserve(128);
211  for (auto iapv : badFitStatus_)
212  iapv.reserve(128);
213  for (auto iapv : badADProbab_)
214  iapv.reserve(128);
215  for (auto iapv : badKSProbab_)
216  iapv.reserve(128);
217  for (auto iapv : badJBProbab_)
218  iapv.reserve(128);
219  for (auto iapv : badChi2Probab_)
220  iapv.reserve(128);
221  for (auto iapv : badTailStrip_)
222  iapv.reserve(128);
223  for (auto iapv : badDoublePeakStrip_)
224  iapv.reserve(128);
225 
238 
239  legacy_ = false;
240 }
VVFloat peds_
Quantitles that are always filled for every strip.
VVInt deadStrip_
Quantities filled only for bad strips i.e. vectors of strip-id.
std::vector< float > VFloat
std::vector< uint16_t > VInt
std::vector< VInt > VVInt
static const uint16_t invalid_
Definition: Constants.h:16
std::vector< VFloat > VVFloat

◆ residualIntegral()

const PedsFullNoiseAnalysis::VVFloat & PedsFullNoiseAnalysis::residualIntegral ( ) const
inline

Definition at line 175 of file PedsFullNoiseAnalysis.h.

References residualIntegral_.

175 { return residualIntegral_; }

◆ residualIntegralNsigma()

const PedsFullNoiseAnalysis::VVFloat & PedsFullNoiseAnalysis::residualIntegralNsigma ( ) const
inline

Definition at line 172 of file PedsFullNoiseAnalysis.h.

References residualIntegralNsigma_.

172  {
174 }

◆ residualKurtosis()

const PedsFullNoiseAnalysis::VVFloat & PedsFullNoiseAnalysis::residualKurtosis ( ) const
inline

Definition at line 171 of file PedsFullNoiseAnalysis.h.

References residualKurtosis_.

171 { return residualKurtosis_; }

◆ residualMean()

const PedsFullNoiseAnalysis::VVFloat & PedsFullNoiseAnalysis::residualMean ( ) const
inline

Definition at line 169 of file PedsFullNoiseAnalysis.h.

References residualMean_.

169 { return residualMean_; }

◆ residualRMS()

const PedsFullNoiseAnalysis::VVFloat & PedsFullNoiseAnalysis::residualRMS ( ) const
inline

Definition at line 166 of file PedsFullNoiseAnalysis.h.

References residualRMS_.

166 { return residualRMS_; }

◆ residualSigmaGaus()

const PedsFullNoiseAnalysis::VVFloat & PedsFullNoiseAnalysis::residualSigmaGaus ( ) const
inline

Definition at line 167 of file PedsFullNoiseAnalysis.h.

References residualSigmaGaus_.

◆ residualSkewness()

const PedsFullNoiseAnalysis::VVFloat & PedsFullNoiseAnalysis::residualSkewness ( ) const
inline

Definition at line 170 of file PedsFullNoiseAnalysis.h.

References residualSkewness_.

170 { return residualSkewness_; }

◆ shiftedStrip()

const PedsFullNoiseAnalysis::VVInt & PedsFullNoiseAnalysis::shiftedStrip ( ) const
inline

Definition at line 181 of file PedsFullNoiseAnalysis.h.

References shiftedStrip_.

◆ summary()

void PedsFullNoiseAnalysis::summary ( std::stringstream &  ss) const
overridevirtual

Overrides base method.

Reimplemented from CommissioningAnalysis.

Definition at line 258 of file PedsFullNoiseAnalysis.cc.

References sistrip::APV, SiStripFecKey::ccuAddr(), SiStripFecKey::ccuChan(), sistrip::extrainfo::commonMode_, sistrip::controlView_, sistrip::dir_, sistrip::dqmRoot_, sistrip::EXPERT_HISTO, SiStripFecKey::fecCrate(), CommissioningAnalysis::fecKey(), SiStripFecKey::fecRing(), SiStripFecKey::fecSlot(), sistrip::FED_KEY, CommissioningAnalysis::fedKey(), SiStripFecKey::i2cAddr(), isValid(), SiStripKey::key(), legacy_, sistrip::LLD_CHAN, SiStripFecKey::lldChan(), CommissioningAnalysis::myName(), castor_dqm_sourceclient_file_cfg::path, sistrip::extrainfo::pedestals_, sistrip::extrainfo::pedsAndCmSubNoise_, sistrip::extrainfo::pedsAndRawNoise_, sistrip::extrainfo::rawNoise_, SiStripEnumsAndStrings::runType(), contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, and runGCPTkAlMap::title.

258  {
259  SiStripFecKey fec_key(fecKey());
260  SiStripFedKey fed_key(fedKey());
261 
263 
264  std::stringstream extra1, extra2, extra3;
265  if (legacy_) {
269  } else {
273  }
274 
276  type,
278  fed_key.key(),
280  fec_key.lldChan(),
281  extra1.str())
282  .title();
284  type,
286  fed_key.key(),
288  fec_key.lldChan(),
289  extra2.str())
290  .title();
292  type,
294  fed_key.key(),
295  sistrip::APV,
296  SiStripFecKey::i2cAddr(fec_key.lldChan(), true),
297  extra3.str())
298  .title();
300  type,
302  fed_key.key(),
303  sistrip::APV,
304  SiStripFecKey::i2cAddr(fec_key.lldChan(), false),
305  extra3.str())
306  .title();
307 
308  ss << " Summary"
309  << ":" << (isValid() ? "Valid" : "Invalid") << ":" << sistrip::controlView_ << ":" << fec_key.fecCrate() << "/"
310  << fec_key.fecSlot() << "/" << fec_key.fecRing() << "/" << fec_key.ccuAddr() << "/" << fec_key.ccuChan() << ":"
311  << sistrip::dqmRoot_ << sistrip::dir_ << "Collate" << sistrip::dir_
312  << SiStripFecKey(fec_key.fecCrate(), fec_key.fecSlot(), fec_key.fecRing(), fec_key.ccuAddr(), fec_key.ccuChan())
313  .path()
314  << ":" << title1 << ";" << title2 << ";" << title3 << ";" << title4 << std::endl;
315 }
static const char rawNoise_[]
static const char pedsAndRawNoise_[]
static const char dir_[]
Utility class that holds histogram title.
A container class for generic run and event-related info, information required by the commissioning a...
Definition: SiStripFedKey.h:56
bool isValid() const override
Utility class that identifies a position within the strip tracker control structure, down to the level of an APV25.
Definition: SiStripFecKey.h:45
static std::string runType(const sistrip::RunType &)
const std::string & myName() const
const uint16_t & i2cAddr() const
static const char controlView_[]
static const char dqmRoot_[]
const uint32_t & fecKey() const
static const char commonMode_[]
const uint32_t & fedKey() const
static const char pedestals_[]
static const char pedsAndCmSubNoise_[]

Friends And Related Function Documentation

◆ PedestalsAlgorithm

friend class PedestalsAlgorithm
friend

Definition at line 26 of file PedsFullNoiseAnalysis.h.

◆ PedsFullNoiseAlgorithm

friend class PedsFullNoiseAlgorithm
friend

Definition at line 27 of file PedsFullNoiseAnalysis.h.

Member Data Documentation

◆ adProbab_

VVFloat PedsFullNoiseAnalysis::adProbab_
private

◆ badADProbab_

VVInt PedsFullNoiseAnalysis::badADProbab_
private

◆ badChi2Probab_

VVInt PedsFullNoiseAnalysis::badChi2Probab_
private

◆ badDoublePeakStrip_

VVInt PedsFullNoiseAnalysis::badDoublePeakStrip_
private

◆ badFitStatus_

VVInt PedsFullNoiseAnalysis::badFitStatus_
private

◆ badJBProbab_

VVInt PedsFullNoiseAnalysis::badJBProbab_
private

◆ badKSProbab_

VVInt PedsFullNoiseAnalysis::badKSProbab_
private

◆ badStrip_

VVInt PedsFullNoiseAnalysis::badStrip_
private

◆ badStripBit_

VVInt PedsFullNoiseAnalysis::badStripBit_
private

◆ badTailStrip_

VVInt PedsFullNoiseAnalysis::badTailStrip_
private

◆ chi2Probab_

VVFloat PedsFullNoiseAnalysis::chi2Probab_
private

◆ deadStrip_

VVInt PedsFullNoiseAnalysis::deadStrip_
private

Quantities filled only for bad strips i.e. vectors of strip-id.

Definition at line 123 of file PedsFullNoiseAnalysis.h.

Referenced by PedsFullNoiseAlgorithm::analyse(), deadStrip(), PedsFullNoiseAnalysis(), print(), and reset().

◆ deadStripBit_

VVInt PedsFullNoiseAnalysis::deadStripBit_
private

◆ jbProbab_

VVFloat PedsFullNoiseAnalysis::jbProbab_
private

◆ ksProbab_

VVFloat PedsFullNoiseAnalysis::ksProbab_
private

◆ largeNoiseSignificance_

VVInt PedsFullNoiseAnalysis::largeNoiseSignificance_
private

◆ largeNoiseStrip_

VVInt PedsFullNoiseAnalysis::largeNoiseStrip_
private

◆ legacy_

bool PedsFullNoiseAnalysis::legacy_
private

Definition at line 152 of file PedsFullNoiseAnalysis.h.

Referenced by reset(), and summary().

◆ lowNoiseStrip_

VVInt PedsFullNoiseAnalysis::lowNoiseStrip_
private

◆ noise_

VVFloat PedsFullNoiseAnalysis::noise_
private

◆ noiseMax_

VFloat PedsFullNoiseAnalysis::noiseMax_
private

◆ noiseMean_

VFloat PedsFullNoiseAnalysis::noiseMean_
private

◆ noiseMin_

VFloat PedsFullNoiseAnalysis::noiseMin_
private

◆ noiseSignificance_

VVFloat PedsFullNoiseAnalysis::noiseSignificance_
private

◆ noiseSpread_

VFloat PedsFullNoiseAnalysis::noiseSpread_
private

◆ peds_

VVFloat PedsFullNoiseAnalysis::peds_
private

Quantitles that are always filled for every strip.

Definition at line 103 of file PedsFullNoiseAnalysis.h.

Referenced by PedsFullNoiseAlgorithm::analyse(), peds(), print(), PedsFullNoiseAlgorithm::reset(), and reset().

◆ pedsMax_

VFloat PedsFullNoiseAnalysis::pedsMax_
private

◆ pedsMean_

VFloat PedsFullNoiseAnalysis::pedsMean_
private

◆ pedsMin_

VFloat PedsFullNoiseAnalysis::pedsMin_
private

◆ pedsSpread_

VFloat PedsFullNoiseAnalysis::pedsSpread_
private

◆ raw_

VVFloat PedsFullNoiseAnalysis::raw_
private

◆ rawMax_

VFloat PedsFullNoiseAnalysis::rawMax_
private

◆ rawMean_

VFloat PedsFullNoiseAnalysis::rawMean_
private

◆ rawMin_

VFloat PedsFullNoiseAnalysis::rawMin_
private

◆ rawSpread_

VFloat PedsFullNoiseAnalysis::rawSpread_
private

◆ residualIntegral_

VVFloat PedsFullNoiseAnalysis::residualIntegral_
private

◆ residualIntegralNsigma_

VVFloat PedsFullNoiseAnalysis::residualIntegralNsigma_
private

◆ residualKurtosis_

VVFloat PedsFullNoiseAnalysis::residualKurtosis_
private

◆ residualMean_

VVFloat PedsFullNoiseAnalysis::residualMean_
private

◆ residualRMS_

VVFloat PedsFullNoiseAnalysis::residualRMS_
private

◆ residualSigmaGaus_

VVFloat PedsFullNoiseAnalysis::residualSigmaGaus_
private

◆ residualSkewness_

VVFloat PedsFullNoiseAnalysis::residualSkewness_
private

◆ shiftedStrip_

VVInt PedsFullNoiseAnalysis::shiftedStrip_
private