CMS 3D CMS Logo

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

#include <SiPixelPerformanceSummary.h>

Classes

struct  DetSummary
 
class  StrictWeakOrdering
 

Public Member Functions

void clear ()
 
std::vector< uint32_t > getAllDetIds () const
 
std::vector< DetSummarygetAllDetSummaries () const
 
std::vector< float > getDetSummary (uint32_t detId) const
 
unsigned int getLuminosityBlock () const
 
unsigned int getNumberOfEvents () const
 
unsigned int getRunNumber () const
 
unsigned long long getTimeStamp () const
 
void print () const
 
void print (const uint32_t detId) const
 
void printAll () const
 
bool setADC (uint32_t detId, float mean, float rms, float emPtn)
 
bool setClusterCharge (uint32_t detId, float mean, float rms, float emPtn)
 
bool setClusterChargeOffTrack (uint32_t detId, float mean, float rms)
 
bool setClusterChargeOnTrack (uint32_t detId, float mean, float rms)
 
bool setClusterSize (uint32_t detId, float mean, float rms, float emPtn)
 
bool setClusterSizeOffTrack (uint32_t detId, float mean, float rms)
 
bool setClusterSizeOnTrack (uint32_t detId, float mean, float rms)
 
bool setClusterSizeX (uint32_t detId, float mean, float rms, float emPtn)
 
bool setClusterSizeY (uint32_t detId, float mean, float rms, float emPtn)
 
bool setFractionOfTracks (uint32_t detId, float mean, float rms)
 
void setLuminosityBlock (unsigned int lumBlock)
 
bool setNumberOfClusters (uint32_t detId, float mean, float rms, float emPtn)
 
bool setNumberOfDeadCells (uint32_t detId, float nNpixCells)
 
bool setNumberOfDigis (uint32_t detId, float mean, float rms, float emPtn)
 
void setNumberOfEvents (unsigned int numberOfEvents)
 
bool setNumberOfNoisCells (uint32_t detId, float nNpixCells)
 
bool setNumberOfOffTrackClusters (uint32_t detId, float nClusters)
 
bool setNumberOfOnTrackClusters (uint32_t detId, float nClusters)
 
bool setNumberOfPixelHitsInTrackFit (uint32_t detId, float nPixelHits)
 
bool setNumberOfRecHits (uint32_t detId, float mean, float rms, float emPtn)
 
bool setRawDataErrorType (uint32_t detId, int bin, float nErrors)
 
bool setResidualX (uint32_t detId, float mean, float rms, float emPtn)
 
bool setResidualY (uint32_t detId, float mean, float rms, float emPtn)
 
void setRunNumber (unsigned int runNumber)
 
void setTimeStamp (unsigned long long timeStamp)
 
 SiPixelPerformanceSummary (const SiPixelPerformanceSummary &)
 
 SiPixelPerformanceSummary ()
 
unsigned int size ()
 
 ~SiPixelPerformanceSummary ()
 

Private Member Functions

float getValue (uint32_t detId, int index)
 
std::pair< bool, std::vector< DetSummary >::iterator > initDet (const uint32_t detId)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 
std::pair< bool, std::vector< DetSummary >::iterator > setDet (const uint32_t detId, const std::vector< float > &performanceValues)
 
bool setValue (uint32_t detId, int index, float performanceValue)
 

Private Attributes

std::vector< DetSummaryallDetSummaries_
 
unsigned int luminosityBlock_
 
unsigned int numberOfEvents_
 
unsigned int runNumber_
 
unsigned long long timeStamp_
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Definition at line 14 of file SiPixelPerformanceSummary.h.

Constructor & Destructor Documentation

◆ SiPixelPerformanceSummary() [1/2]

SiPixelPerformanceSummary::SiPixelPerformanceSummary ( const SiPixelPerformanceSummary performanceSummary)

Definition at line 13 of file SiPixelPerformanceSummary.cc.

References allDetSummaries_, getAllDetSummaries(), getLuminosityBlock(), getNumberOfEvents(), getRunNumber(), getTimeStamp(), luminosityBlock_, numberOfEvents_, runNumber_, and timeStamp_.

13  {
14  timeStamp_ = performanceSummary.getTimeStamp();
15  runNumber_ = performanceSummary.getRunNumber();
16  luminosityBlock_ = performanceSummary.getLuminosityBlock();
17  numberOfEvents_ = performanceSummary.getNumberOfEvents();
18  allDetSummaries_ = performanceSummary.getAllDetSummaries();
19 }
unsigned long long getTimeStamp() const
std::vector< DetSummary > allDetSummaries_
unsigned int getNumberOfEvents() const
unsigned int getLuminosityBlock() const
std::vector< DetSummary > getAllDetSummaries() const

◆ SiPixelPerformanceSummary() [2/2]

SiPixelPerformanceSummary::SiPixelPerformanceSummary ( )

◆ ~SiPixelPerformanceSummary()

SiPixelPerformanceSummary::~SiPixelPerformanceSummary ( )

Definition at line 21 of file SiPixelPerformanceSummary.cc.

21 {}

Member Function Documentation

◆ clear()

void SiPixelPerformanceSummary::clear ( void  )

◆ getAllDetIds()

vector< uint32_t > SiPixelPerformanceSummary::getAllDetIds ( ) const

Definition at line 174 of file SiPixelPerformanceSummary.cc.

References allDetSummaries_.

Referenced by cms::SiPixelPerformanceSummaryReader::analyze().

174  {
175  vector<uint32_t> allDetIds;
176  for (vector<DetSummary>::const_iterator iDetSumm = allDetSummaries_.begin(); iDetSumm != allDetSummaries_.end();
177  ++iDetSumm)
178  allDetIds.push_back(iDetSumm->detId_);
179  return allDetIds;
180 }
std::vector< DetSummary > allDetSummaries_

◆ getAllDetSummaries()

std::vector<DetSummary> SiPixelPerformanceSummary::getAllDetSummaries ( ) const
inline

Definition at line 56 of file SiPixelPerformanceSummary.h.

References allDetSummaries_.

Referenced by SiPixelPerformanceSummary().

56 { return allDetSummaries_; }
std::vector< DetSummary > allDetSummaries_

◆ getDetSummary()

vector< float > SiPixelPerformanceSummary::getDetSummary ( uint32_t  detId) const

Definition at line 182 of file SiPixelPerformanceSummary.cc.

References allDetSummaries_, and gather_cfg::cout.

Referenced by getValue(), and print().

182  {
183  vector<DetSummary>::const_iterator iDetSumm =
184  find_if(allDetSummaries_.begin(), allDetSummaries_.end(), [&detId](const DetSummary& detSumm) -> bool {
185  return detSumm.detId_ == detId;
186  });
187  if (iDetSumm == allDetSummaries_.end()) {
188  vector<float> performanceValues;
189  cout << "cannot get DetSummary for detId = " << detId;
190  return performanceValues;
191  } else
192  return iDetSumm->performanceValues_;
193 }
std::vector< DetSummary > allDetSummaries_

◆ getLuminosityBlock()

unsigned int SiPixelPerformanceSummary::getLuminosityBlock ( ) const
inline

Definition at line 49 of file SiPixelPerformanceSummary.h.

References luminosityBlock_.

Referenced by SiPixelPerformanceSummary().

49 { return luminosityBlock_; };

◆ getNumberOfEvents()

unsigned int SiPixelPerformanceSummary::getNumberOfEvents ( ) const
inline

Definition at line 46 of file SiPixelPerformanceSummary.h.

References numberOfEvents_.

Referenced by SiPixelPerformanceSummary().

46 { return numberOfEvents_; }

◆ getRunNumber()

unsigned int SiPixelPerformanceSummary::getRunNumber ( ) const
inline

Definition at line 43 of file SiPixelPerformanceSummary.h.

References runNumber_.

Referenced by SiPixelPerformanceSummary().

43 { return runNumber_; }

◆ getTimeStamp()

unsigned long long SiPixelPerformanceSummary::getTimeStamp ( ) const
inline

Definition at line 40 of file SiPixelPerformanceSummary.h.

References timeStamp_.

Referenced by SiPixelPerformanceSummary().

40 { return timeStamp_; }

◆ getValue()

float SiPixelPerformanceSummary::getValue ( uint32_t  detId,
int  index 
)
private

Definition at line 78 of file SiPixelPerformanceSummary.cc.

References gather_cfg::cout, getDetSummary(), kDefaultValue, and kDetSummarySize.

78  {
79  if (index > kDetSummarySize) {
80  cout << "cannot get value for detId = " << detId << " index = " << index << " > " << kDetSummarySize;
81  return kDefaultValue;
82  }
83  vector<float> performanceValues = getDetSummary(detId);
84  if (performanceValues.size() == kDetSummarySize)
85  return performanceValues[index];
86  else
87  return kDefaultValue;
88 }
#define kDefaultValue
#define kDetSummarySize
std::vector< float > getDetSummary(uint32_t detId) const

◆ initDet()

pair< bool, vector< SiPixelPerformanceSummary::DetSummary >::iterator > SiPixelPerformanceSummary::initDet ( const uint32_t  detId)
private

Definition at line 31 of file SiPixelPerformanceSummary.cc.

References mps_fire::i, kDefaultValue, kDetSummarySize, and setDet().

Referenced by setValue().

32  {
33  vector<float> performanceValues;
34  performanceValues.reserve(kDetSummarySize);
35  for (int i = 0; i < kDetSummarySize; ++i)
36  performanceValues.push_back(kDefaultValue);
37  return setDet(detId, performanceValues);
38 }
std::pair< bool, std::vector< DetSummary >::iterator > setDet(const uint32_t detId, const std::vector< float > &performanceValues)
#define kDefaultValue
#define kDetSummarySize

◆ print() [1/2]

void SiPixelPerformanceSummary::print ( void  ) const

Definition at line 203 of file SiPixelPerformanceSummary.cc.

References allDetSummaries_, gather_cfg::cout, luminosityBlock_, numberOfEvents_, runNumber_, and timeStamp_.

Referenced by cms::SiPixelPerformanceSummaryReader::analyze(), cms::SiPixelPerformanceSummaryBuilder::analyze(), and printAll().

203  {
204  cout << "SiPixelPerformanceSummary size (allDets) = " << allDetSummaries_.size() << ", "
205  << "time stamp = " << timeStamp_ << ", "
206  << "run number = " << runNumber_ << ", "
207  << "luminosity section = " << luminosityBlock_ << ", "
208  << "number of events = " << numberOfEvents_ << endl;
209 }
std::vector< DetSummary > allDetSummaries_

◆ print() [2/2]

void SiPixelPerformanceSummary::print ( const uint32_t  detId) const

Definition at line 195 of file SiPixelPerformanceSummary.cc.

References gather_cfg::cout, getDetSummary(), and findQualityFiles::v.

195  {
196  vector<float> performanceValues = getDetSummary(detId);
197  cout << "DetSummary for detId " << detId << " : ";
198  for (vector<float>::const_iterator v = performanceValues.begin(); v != performanceValues.end(); ++v)
199  cout << " " << *v;
200  cout << endl;
201 }
std::vector< float > getDetSummary(uint32_t detId) const

◆ printAll()

void SiPixelPerformanceSummary::printAll ( ) const

Definition at line 211 of file SiPixelPerformanceSummary.cc.

References allDetSummaries_, and print().

Referenced by cms::SiPixelPerformanceSummaryReader::analyze().

211  {
212  print();
213  for (vector<DetSummary>::const_iterator iDetSumm = allDetSummaries_.begin(); iDetSumm != allDetSummaries_.end();
214  ++iDetSumm)
215  print(iDetSumm->detId_);
216 }
std::vector< DetSummary > allDetSummaries_

◆ serialize()

template<class Archive >
void SiPixelPerformanceSummary::serialize ( Archive &  ar,
const unsigned int  version 
)
private

◆ setADC()

bool SiPixelPerformanceSummary::setADC ( uint32_t  detId,
float  mean,
float  rms,
float  emPtn 
)

Definition at line 98 of file SiPixelPerformanceSummary.cc.

References SiStripPI::mean, SiStripPI::rms, and setValue().

98  {
99  return (setValue(detId, 18, mean) && setValue(detId, 19, rms) && setValue(detId, 20, emPtn));
100 }
bool setValue(uint32_t detId, int index, float performanceValue)

◆ setClusterCharge()

bool SiPixelPerformanceSummary::setClusterCharge ( uint32_t  detId,
float  mean,
float  rms,
float  emPtn 
)

Definition at line 106 of file SiPixelPerformanceSummary.cc.

References SiStripPI::mean, SiStripPI::rms, and setValue().

106  {
107  return (setValue(detId, 24, mean) && setValue(detId, 25, rms) && setValue(detId, 26, emPtn));
108 }
bool setValue(uint32_t detId, int index, float performanceValue)

◆ setClusterChargeOffTrack()

bool SiPixelPerformanceSummary::setClusterChargeOffTrack ( uint32_t  detId,
float  mean,
float  rms 
)

Definition at line 162 of file SiPixelPerformanceSummary.cc.

References SiStripPI::mean, SiStripPI::rms, and setValue().

162  {
163  return (setValue(detId, 54, mean) && setValue(detId, 55, rms));
164 }
bool setValue(uint32_t detId, int index, float performanceValue)

◆ setClusterChargeOnTrack()

bool SiPixelPerformanceSummary::setClusterChargeOnTrack ( uint32_t  detId,
float  mean,
float  rms 
)

Definition at line 158 of file SiPixelPerformanceSummary.cc.

References SiStripPI::mean, SiStripPI::rms, and setValue().

158  {
159  return (setValue(detId, 52, mean) && setValue(detId, 53, rms));
160 }
bool setValue(uint32_t detId, int index, float performanceValue)

◆ setClusterSize()

bool SiPixelPerformanceSummary::setClusterSize ( uint32_t  detId,
float  mean,
float  rms,
float  emPtn 
)

Definition at line 110 of file SiPixelPerformanceSummary.cc.

References SiStripPI::mean, SiStripPI::rms, and setValue().

110  {
111  return (setValue(detId, 27, mean) && setValue(detId, 28, rms) && setValue(detId, 29, emPtn));
112 }
bool setValue(uint32_t detId, int index, float performanceValue)

◆ setClusterSizeOffTrack()

bool SiPixelPerformanceSummary::setClusterSizeOffTrack ( uint32_t  detId,
float  mean,
float  rms 
)

Definition at line 170 of file SiPixelPerformanceSummary.cc.

References SiStripPI::mean, SiStripPI::rms, and setValue().

170  {
171  return (setValue(detId, 58, mean) && setValue(detId, 59, rms));
172 }
bool setValue(uint32_t detId, int index, float performanceValue)

◆ setClusterSizeOnTrack()

bool SiPixelPerformanceSummary::setClusterSizeOnTrack ( uint32_t  detId,
float  mean,
float  rms 
)

Definition at line 166 of file SiPixelPerformanceSummary.cc.

References SiStripPI::mean, SiStripPI::rms, and setValue().

166  {
167  return (setValue(detId, 56, mean) && setValue(detId, 57, rms));
168 }
bool setValue(uint32_t detId, int index, float performanceValue)

◆ setClusterSizeX()

bool SiPixelPerformanceSummary::setClusterSizeX ( uint32_t  detId,
float  mean,
float  rms,
float  emPtn 
)

Definition at line 114 of file SiPixelPerformanceSummary.cc.

References SiStripPI::mean, SiStripPI::rms, and setValue().

114  {
115  return (setValue(detId, 30, mean) && setValue(detId, 31, rms) && setValue(detId, 32, emPtn));
116 }
bool setValue(uint32_t detId, int index, float performanceValue)

◆ setClusterSizeY()

bool SiPixelPerformanceSummary::setClusterSizeY ( uint32_t  detId,
float  mean,
float  rms,
float  emPtn 
)

Definition at line 118 of file SiPixelPerformanceSummary.cc.

References SiStripPI::mean, SiStripPI::rms, and setValue().

118  {
119  return (setValue(detId, 33, mean) && setValue(detId, 34, rms) && setValue(detId, 35, emPtn));
120 }
bool setValue(uint32_t detId, int index, float performanceValue)

◆ setDet()

pair< bool, vector< SiPixelPerformanceSummary::DetSummary >::iterator > SiPixelPerformanceSummary::setDet ( const uint32_t  detId,
const std::vector< float > &  performanceValues 
)
private

Definition at line 40 of file SiPixelPerformanceSummary.cc.

References allDetSummaries_, gather_cfg::cout, SiPixelPerformanceSummary::DetSummary::detId_, kDetSummarySize, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, and SiPixelPerformanceSummary::DetSummary::performanceValues_.

Referenced by initDet().

41  {
42  vector<DetSummary>::iterator iDetSumm = allDetSummaries_.end();
43 
44  if (performanceValues.size() != kDetSummarySize) { // for inappropriate input
45  cout << "not adding these " << performanceValues.size() << " values; "
46  << "SiPixelPerformanceSummary can only add " << kDetSummarySize << " values per DetSummary";
47  return make_pair(false, iDetSumm);
48  }
49  iDetSumm = lower_bound(
51 
52  if (iDetSumm != allDetSummaries_.end() && // for an existong entry
53  iDetSumm->detId_ == detId)
54  return make_pair(false, iDetSumm);
55 
56  DetSummary newDetSumm; // for a new entry, put at (position-1) returned by StrictWeakOrdering
57  newDetSumm.detId_ = detId;
58  newDetSumm.performanceValues_ = performanceValues;
59  return make_pair(true, allDetSummaries_.insert(iDetSumm, newDetSumm));
60 }
std::vector< DetSummary > allDetSummaries_
#define kDetSummarySize

◆ setFractionOfTracks()

bool SiPixelPerformanceSummary::setFractionOfTracks ( uint32_t  detId,
float  mean,
float  rms 
)

Definition at line 146 of file SiPixelPerformanceSummary.cc.

References SiStripPI::mean, SiStripPI::rms, and setValue().

146  {
147  return (setValue(detId, 48, mean) && setValue(detId, 49, rms));
148 }
bool setValue(uint32_t detId, int index, float performanceValue)

◆ setLuminosityBlock()

void SiPixelPerformanceSummary::setLuminosityBlock ( unsigned int  lumBlock)
inline

Definition at line 48 of file SiPixelPerformanceSummary.h.

References luminosityBlock_.

48 { luminosityBlock_ = lumBlock; }

◆ setNumberOfClusters()

bool SiPixelPerformanceSummary::setNumberOfClusters ( uint32_t  detId,
float  mean,
float  rms,
float  emPtn 
)

Definition at line 102 of file SiPixelPerformanceSummary.cc.

References SiStripPI::mean, SiStripPI::rms, and setValue().

102  {
103  return (setValue(detId, 21, mean) && setValue(detId, 22, rms) && setValue(detId, 23, emPtn));
104 }
bool setValue(uint32_t detId, int index, float performanceValue)

◆ setNumberOfDeadCells()

bool SiPixelPerformanceSummary::setNumberOfDeadCells ( uint32_t  detId,
float  nNpixCells 
)

Definition at line 138 of file SiPixelPerformanceSummary.cc.

References setValue().

138  {
139  return setValue(detId, 46, nNpixCells);
140 }
bool setValue(uint32_t detId, int index, float performanceValue)

◆ setNumberOfDigis()

bool SiPixelPerformanceSummary::setNumberOfDigis ( uint32_t  detId,
float  mean,
float  rms,
float  emPtn 
)

Definition at line 94 of file SiPixelPerformanceSummary.cc.

References SiStripPI::mean, SiStripPI::rms, and setValue().

Referenced by cms::SiPixelPerformanceSummaryBuilder::analyze().

94  {
95  return (setValue(detId, 15, mean) && setValue(detId, 16, rms) && setValue(detId, 17, emPtn));
96 }
bool setValue(uint32_t detId, int index, float performanceValue)

◆ setNumberOfEvents()

void SiPixelPerformanceSummary::setNumberOfEvents ( unsigned int  numberOfEvents)
inline

Definition at line 45 of file SiPixelPerformanceSummary.h.

References numberOfEvents_.

45 { numberOfEvents_ = numberOfEvents; }

◆ setNumberOfNoisCells()

bool SiPixelPerformanceSummary::setNumberOfNoisCells ( uint32_t  detId,
float  nNpixCells 
)

Definition at line 134 of file SiPixelPerformanceSummary.cc.

References setValue().

134  {
135  return setValue(detId, 45, nNpixCells);
136 }
bool setValue(uint32_t detId, int index, float performanceValue)

◆ setNumberOfOffTrackClusters()

bool SiPixelPerformanceSummary::setNumberOfOffTrackClusters ( uint32_t  detId,
float  nClusters 
)

Definition at line 154 of file SiPixelPerformanceSummary.cc.

References heavyionUCCDQM_cfi::nClusters, and setValue().

154  {
155  return setValue(detId, 51, nClusters);
156 }
bool setValue(uint32_t detId, int index, float performanceValue)

◆ setNumberOfOnTrackClusters()

bool SiPixelPerformanceSummary::setNumberOfOnTrackClusters ( uint32_t  detId,
float  nClusters 
)

Definition at line 150 of file SiPixelPerformanceSummary.cc.

References heavyionUCCDQM_cfi::nClusters, and setValue().

150  {
151  return setValue(detId, 50, nClusters);
152 }
bool setValue(uint32_t detId, int index, float performanceValue)

◆ setNumberOfPixelHitsInTrackFit()

bool SiPixelPerformanceSummary::setNumberOfPixelHitsInTrackFit ( uint32_t  detId,
float  nPixelHits 
)

Definition at line 142 of file SiPixelPerformanceSummary.cc.

References setValue().

142  {
143  return setValue(detId, 47, nPixelHits);
144 }
bool setValue(uint32_t detId, int index, float performanceValue)

◆ setNumberOfRecHits()

bool SiPixelPerformanceSummary::setNumberOfRecHits ( uint32_t  detId,
float  mean,
float  rms,
float  emPtn 
)

Definition at line 122 of file SiPixelPerformanceSummary.cc.

References SiStripPI::mean, SiStripPI::rms, and setValue().

122  {
123  return (setValue(detId, 36, mean) && setValue(detId, 37, rms) && setValue(detId, 38, emPtn));
124 }
bool setValue(uint32_t detId, int index, float performanceValue)

◆ setRawDataErrorType()

bool SiPixelPerformanceSummary::setRawDataErrorType ( uint32_t  detId,
int  bin,
float  nErrors 
)

Definition at line 90 of file SiPixelPerformanceSummary.cc.

References newFWLiteAna::bin, and setValue().

90  {
91  return setValue(detId, bin, nErrors);
92 }
bool setValue(uint32_t detId, int index, float performanceValue)

◆ setResidualX()

bool SiPixelPerformanceSummary::setResidualX ( uint32_t  detId,
float  mean,
float  rms,
float  emPtn 
)

Definition at line 126 of file SiPixelPerformanceSummary.cc.

References SiStripPI::mean, SiStripPI::rms, and setValue().

126  {
127  return (setValue(detId, 39, mean) && setValue(detId, 40, rms) && setValue(detId, 41, emPtn));
128 }
bool setValue(uint32_t detId, int index, float performanceValue)

◆ setResidualY()

bool SiPixelPerformanceSummary::setResidualY ( uint32_t  detId,
float  mean,
float  rms,
float  emPtn 
)

Definition at line 130 of file SiPixelPerformanceSummary.cc.

References SiStripPI::mean, SiStripPI::rms, and setValue().

130  {
131  return (setValue(detId, 42, mean) && setValue(detId, 43, rms) && setValue(detId, 44, emPtn));
132 }
bool setValue(uint32_t detId, int index, float performanceValue)

◆ setRunNumber()

void SiPixelPerformanceSummary::setRunNumber ( unsigned int  runNumber)
inline

◆ setTimeStamp()

void SiPixelPerformanceSummary::setTimeStamp ( unsigned long long  timeStamp)
inline

Definition at line 39 of file SiPixelPerformanceSummary.h.

References timeStamp_.

Referenced by cms::SiPixelPerformanceSummaryBuilder::analyze().

39 { timeStamp_ = timeStamp; }

◆ setValue()

bool SiPixelPerformanceSummary::setValue ( uint32_t  detId,
int  index,
float  performanceValue 
)
private

Definition at line 62 of file SiPixelPerformanceSummary.cc.

References allDetSummaries_, gather_cfg::cout, initDet(), and kDetSummarySize.

Referenced by setADC(), setClusterCharge(), setClusterChargeOffTrack(), setClusterChargeOnTrack(), setClusterSize(), setClusterSizeOffTrack(), setClusterSizeOnTrack(), setClusterSizeX(), setClusterSizeY(), setFractionOfTracks(), setNumberOfClusters(), setNumberOfDeadCells(), setNumberOfDigis(), setNumberOfNoisCells(), setNumberOfOffTrackClusters(), setNumberOfOnTrackClusters(), setNumberOfPixelHitsInTrackFit(), setNumberOfRecHits(), setRawDataErrorType(), setResidualX(), and setResidualY().

62  {
63  if (index > kDetSummarySize) {
64  cout << "cannot set the performance value for index = " << index << " > " << kDetSummarySize;
65  return false;
66  }
67  pair<bool, vector<DetSummary>::iterator> initResult = initDet(detId);
68  if (initResult.first || initResult.second != allDetSummaries_.end()) {
69  initResult.second->performanceValues_[index] = performanceValue;
70  return true;
71  } else {
72  cout << "cannot set the performance value; cannot create new entry for detId = " << detId;
73  return false;
74  }
75  return true;
76 }
std::pair< bool, std::vector< DetSummary >::iterator > initDet(const uint32_t detId)
std::vector< DetSummary > allDetSummaries_
#define kDetSummarySize

◆ size()

unsigned int SiPixelPerformanceSummary::size ( void  )
inline

Definition at line 37 of file SiPixelPerformanceSummary.h.

References allDetSummaries_.

Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().

37 { return allDetSummaries_.size(); }
std::vector< DetSummary > allDetSummaries_

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 103 of file SiPixelPerformanceSummary.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 103 of file SiPixelPerformanceSummary.h.

Member Data Documentation

◆ allDetSummaries_

std::vector<DetSummary> SiPixelPerformanceSummary::allDetSummaries_
private

◆ luminosityBlock_

unsigned int SiPixelPerformanceSummary::luminosityBlock_
private

◆ numberOfEvents_

unsigned int SiPixelPerformanceSummary::numberOfEvents_
private

◆ runNumber_

unsigned int SiPixelPerformanceSummary::runNumber_
private

◆ timeStamp_

unsigned long long SiPixelPerformanceSummary::timeStamp_
private