22 SiStripApvGainsValue() :
cond::payloadInspector::Histogram1D<
SiStripApvGain>(
"SiStripApv Gains values",
23 "SiStripApv Gains values", 200,0.0,2.0){
27 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
28 for (
auto const & iov: iovs) {
32 std::vector<uint32_t> detid;
33 payload->getDetIds(detid);
35 for (
const auto &
d : detid) {
37 for(
int it=0;it<range.second-range.first;it++){
56 SiStripApvGainByRunMeans() :
cond::payloadInspector::HistoryPlot<
SiStripApvGain,
float>(
"SiStripApv Gains average",
"average Strip APV gain value"){}
57 virtual ~SiStripApvGainByRunMeans() =
default;
61 std::vector<uint32_t> detid;
67 for (
const auto &
d : detid) {
69 for(
int it=0;it<range.second-range.first;it++){
75 return sumOfGains/nAPVs;
85 SiStripApvTIBGainByRunMeans() :
cond::payloadInspector::HistoryPlot<
SiStripApvGain,
float>(
"SiStripApv Gains average",
"average Tracker Inner Barrel APV gain value"){}
86 virtual ~SiStripApvTIBGainByRunMeans() =
default;
90 std::vector<uint32_t> detid;
96 for (
const auto &
d : detid) {
99 if(subid!=3)
continue;
102 for(
int it=0;it<range.second-range.first;it++){
108 return sumOfGains/nAPVs;
119 SiStripApvTOBGainByRunMeans() :
cond::payloadInspector::HistoryPlot<
SiStripApvGain,
float>(
"SiStripApv Gains average",
"average Tracker Outer Barrel gain value"){}
120 virtual ~SiStripApvTOBGainByRunMeans() =
default;
124 std::vector<uint32_t> detid;
130 for (
const auto &
d : detid) {
133 if(subid!=5)
continue;
136 for(
int it=0;it<range.second-range.first;it++){
142 return sumOfGains/nAPVs;
153 SiStripApvTIDGainByRunMeans() :
cond::payloadInspector::HistoryPlot<
SiStripApvGain,
float>(
"SiStripApv Gains average",
"average Tracker Inner Disks APV gain value"){}
154 virtual ~SiStripApvTIDGainByRunMeans() =
default;
158 std::vector<uint32_t> detid;
163 for (
const auto &
d : detid) {
166 if(subid!=4)
continue;
169 for(
int it=0;it<range.second-range.first;it++){
175 return sumOfGains/nAPVs;
186 SiStripApvTECGainByRunMeans() :
cond::payloadInspector::HistoryPlot<
SiStripApvGain,
float>(
"SiStripApv Gains average in TEC",
"average Tracker Endcaps APV gain value"){}
187 virtual ~SiStripApvTECGainByRunMeans() =
default;
191 std::vector<uint32_t> detid;
197 for (
const auto &
d : detid) {
200 if(subid!=6)
continue;
203 for(
int it=0;it<range.second-range.first;it++){
209 return sumOfGains/nAPVs;
static float getApvGain(uint16_t apv, const Range &range)
void getDetIds(std::vector< uint32_t > &DetIds_) const
#define PAYLOAD_INSPECTOR_CLASS(CLASS_NAME)
payload
payload postfix for testing
std::pair< ContainerIterator, ContainerIterator > Range
void fillWithValue(float value, float weight=1)
virtual bool fill(const std::vector< std::tuple< cond::Time_t, cond::Hash > > &iovs) override
#define PAYLOAD_INSPECTOR_MODULE(PAYLOAD_TYPENAME)
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
std::shared_ptr< PayloadType > fetchPayload(const cond::Hash &payloadHash)
void setSingleIov(bool flag)
const Range getRange(const uint32_t detID) const