30 EcalPedestalsEBMean12() :
cond::payloadInspector::Histogram1D<
EcalPedestals>(
"ECAL Barrel pedestal average gain12",
31 "ECAL Barrel pedestal average gain12", 200, 150, 250){
35 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
36 for (
auto const & iov: iovs) {
40 if (!payload->barrelItems().size())
return false;
49 if (payload->find(rawid) == payload->end())
continue;
50 if (!(*payload)[rawid].mean_x12 && !(*payload)[rawid].rms_x12)
continue;
66 EcalPedestalsEBMean6() :
cond::payloadInspector::Histogram1D<
EcalPedestals>(
"ECAL Barrel pedestal average gain6",
67 "ECAL Barrel pedestal average gain6", 200, 150, 250){
68 Base::setSingleIov(
true );
71 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
73 for(
auto const & iov : iovs ) {
75 std::shared_ptr<EcalPedestals> payload = Base::fetchPayload( std::get<1>(iov) );
78 if (!payload->barrelItems().size())
return false;
87 if (payload->find(rawid) == payload->end())
continue;
88 if (!(*payload)[rawid].mean_x6 && !(*payload)[rawid].rms_x6)
continue;
91 fillWithValue( (*payload)[rawid].mean_x6);
104 EcalPedestalsEBMean1() :
cond::payloadInspector::Histogram1D<
EcalPedestals>(
"ECAL Barrel pedestal average gain1",
105 "ECAL Barrel pedestal average gain1", 200, 150, 250){
106 Base::setSingleIov(
true );
109 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
110 for(
auto const & iov : iovs ) {
111 std::shared_ptr<EcalPedestals> payload = Base::fetchPayload( std::get<1>(iov) );
113 if (!payload->barrelItems().size())
return false;
121 if (payload->find(rawid) == payload->end())
continue;
122 if (!(*payload)[rawid].mean_x1 && !(*payload)[rawid].rms_x1)
continue;
125 fillWithValue( (*payload)[rawid].mean_x1);
137 static const int IX_MIN =1;
141 static const int IY_MIN =1;
145 static const int IX_MAX =100;
149 static const int IY_MAX =100;
150 EcalPedestalsEEMean12() :
cond::payloadInspector::Histogram1D<
EcalPedestals>(
"ECAL Endcap pedestal average gain12",
151 "ECAL Endcap pedestal average gain12", 200, 150, 250){
152 Base::setSingleIov(
true );
155 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
156 for(
auto const & iov : iovs ) {
157 std::shared_ptr<EcalPedestals> payload = Base::fetchPayload( std::get<1>(iov) );
160 if (!payload->endcapItems().size())
return false;
163 for(
int iz = -1; iz < 2; iz = iz + 2)
164 for(
int iy = IY_MIN; iy < IY_MAX+IY_MIN; iy++)
165 for(
int ix = IX_MIN; ix < IX_MAX+IX_MIN; ix++)
168 uint32_t rawid = myEEId.
rawId();
170 if (payload->find(rawid) == payload->end())
continue;
171 if (!(*payload)[rawid].mean_x12 && !(*payload)[rawid].rms_x12)
continue;
172 fillWithValue( (*payload)[rawid].mean_x12 );
185 static const int IX_MIN =1;
189 static const int IY_MIN =1;
193 static const int IX_MAX =100;
197 static const int IY_MAX =100;
198 EcalPedestalsEEMean6() :
cond::payloadInspector::Histogram1D<
EcalPedestals>(
"ECAL Endcap pedestal average gain6",
199 "ECAL Endcap pedestal average gain6", 200, 150, 250){
200 Base::setSingleIov(
true );
203 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
205 for(
auto const & iov : iovs ) {
207 std::shared_ptr<EcalPedestals> payload = Base::fetchPayload( std::get<1>(iov) );
210 if (!payload->endcapItems().size())
return false;
213 for(
int iz = -1; iz < 2; iz = iz + 2)
214 for(
int iy = IY_MIN; iy < IY_MAX+IY_MIN; iy++)
215 for(
int ix = IX_MIN; ix < IX_MAX+IX_MIN; ix++)
218 uint32_t rawid = myEEId.
rawId();
220 if (payload->find(rawid) == payload->end())
continue;
221 if (!(*payload)[rawid].mean_x6 && !(*payload)[rawid].rms_x6)
continue;
222 fillWithValue( (*payload)[rawid].mean_x6);
235 static const int IX_MIN =1;
239 static const int IY_MIN =1;
243 static const int IX_MAX =100;
247 static const int IY_MAX =100;
248 EcalPedestalsEEMean1() :
cond::payloadInspector::Histogram1D<
EcalPedestals>(
"ECAL Endcap pedestal average gain1",
249 "ECAL Endcap pedestal average gain1", 200, 150, 250){
250 Base::setSingleIov(
true );
253 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
254 for(
auto const & iov : iovs ) {
255 std::shared_ptr<EcalPedestals> payload = Base::fetchPayload( std::get<1>(iov) );
257 if (!payload->endcapItems().size())
return false;
260 for(
int iz = -1; iz < 2; iz = iz + 2)
261 for(
int iy = IY_MIN; iy < IY_MAX+IY_MIN; iy++)
262 for(
int ix = IX_MIN; ix < IX_MAX+IX_MIN; ix++)
265 uint32_t rawid = myEEId.
rawId();
267 if (payload->find(rawid) == payload->end())
continue;
268 if (!(*payload)[rawid].mean_x1 && !(*payload)[rawid].rms_x1)
continue;
269 fillWithValue( (*payload)[rawid].mean_x1);
281 EcalPedestalsEBRMS12() :
cond::payloadInspector::Histogram1D<
EcalPedestals>(
"ECAL Barrel noise average gain12",
282 "ECAL Barrel noise average gain12", 100, 0, 6){
283 Base::setSingleIov(
true );
286 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
287 for(
auto const & iov : iovs ) {
288 std::shared_ptr<EcalPedestals> payload = Base::fetchPayload( std::get<1>(iov) );
291 if (!payload->barrelItems().size())
return false;
300 if (payload->find(rawid) == payload->end())
continue;
301 if (!(*payload)[rawid].mean_x12 && !(*payload)[rawid].rms_x12)
continue;
304 fillWithValue( (*payload)[rawid].rms_x12 );
317 EcalPedestalsEBRMS6() :
cond::payloadInspector::Histogram1D<
EcalPedestals>(
"ECAL Barrel noise average gain6",
318 "ECAL Barrel noise average gain6", 100, 0, 3){
319 Base::setSingleIov(
true );
322 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
324 for(
auto const & iov : iovs ) {
326 std::shared_ptr<EcalPedestals> payload = Base::fetchPayload( std::get<1>(iov) );
329 if (!payload->barrelItems().size())
return false;
338 if (payload->find(rawid) == payload->end())
continue;
339 if (!(*payload)[rawid].mean_x6 && !(*payload)[rawid].rms_x6)
continue;
342 fillWithValue( (*payload)[rawid].rms_x6);
355 EcalPedestalsEBRMS1() :
cond::payloadInspector::Histogram1D<
EcalPedestals>(
"ECAL Barrel noise average gain1",
356 "ECAL Barrel noise average gain1", 100, 0, 2){
357 Base::setSingleIov(
true );
360 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
361 for(
auto const & iov : iovs ) {
362 std::shared_ptr<EcalPedestals> payload = Base::fetchPayload( std::get<1>(iov) );
364 if (!payload->barrelItems().size())
return false;
372 if (payload->find(rawid) == payload->end())
continue;
373 if (!(*payload)[rawid].mean_x1 && !(*payload)[rawid].rms_x1)
continue;
376 fillWithValue( (*payload)[rawid].rms_x1);
388 static const int IX_MIN =1;
392 static const int IY_MIN =1;
396 static const int IX_MAX =100;
400 static const int IY_MAX =100;
401 EcalPedestalsEERMS12() :
cond::payloadInspector::Histogram1D<
EcalPedestals>(
"ECAL Endcap noise average gain12",
402 "ECAL Endcap noise average gain12", 100, 0, 8){
403 Base::setSingleIov(
true );
406 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
407 for(
auto const & iov : iovs ) {
408 std::shared_ptr<EcalPedestals> payload = Base::fetchPayload( std::get<1>(iov) );
411 if (!payload->endcapItems().size())
return false;
414 for(
int iz = -1; iz < 2; iz = iz + 2)
415 for(
int iy = IY_MIN; iy < IY_MAX+IY_MIN; iy++)
416 for(
int ix = IX_MIN; ix < IX_MAX+IX_MIN; ix++)
419 uint32_t rawid = myEEId.
rawId();
421 if (payload->find(rawid) == payload->end())
continue;
422 if (!(*payload)[rawid].mean_x12 && !(*payload)[rawid].rms_x12)
continue;
423 fillWithValue( (*payload)[rawid].rms_x12 );
436 static const int IX_MIN =1;
440 static const int IY_MIN =1;
444 static const int IX_MAX =100;
448 static const int IY_MAX =100;
449 EcalPedestalsEERMS6() :
cond::payloadInspector::Histogram1D<
EcalPedestals>(
"ECAL Endcap noise average gain6",
450 "ECAL Endcap noise average gain6", 100, 0, 4){
451 Base::setSingleIov(
true );
454 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
456 for(
auto const & iov : iovs ) {
458 std::shared_ptr<EcalPedestals> payload = Base::fetchPayload( std::get<1>(iov) );
461 if (!payload->endcapItems().size())
return false;
464 for(
int iz = -1; iz < 2; iz = iz + 2)
465 for(
int iy = IY_MIN; iy < IY_MAX+IY_MIN; iy++)
466 for(
int ix = IX_MIN; ix < IX_MAX+IX_MIN; ix++)
469 uint32_t rawid = myEEId.
rawId();
471 if (payload->find(rawid) == payload->end())
continue;
472 if (!(*payload)[rawid].mean_x6 && !(*payload)[rawid].rms_x6)
continue;
473 fillWithValue( (*payload)[rawid].rms_x6);
486 static const int IX_MIN =1;
490 static const int IY_MIN =1;
494 static const int IX_MAX =100;
498 static const int IY_MAX =100;
499 EcalPedestalsEERMS1() :
cond::payloadInspector::Histogram1D<
EcalPedestals>(
"ECAL Endcap noise average gain1",
500 "ECAL Endcap noise average gain1", 100, 0, 3){
501 Base::setSingleIov(
true );
504 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
505 for(
auto const & iov : iovs ) {
506 std::shared_ptr<EcalPedestals> payload = Base::fetchPayload( std::get<1>(iov) );
508 if (!payload->endcapItems().size())
return false;
511 for(
int iz = -1; iz < 2; iz = iz + 2)
512 for(
int iy = IY_MIN; iy < IY_MAX+IY_MIN; iy++)
513 for(
int ix = IX_MIN; ix < IX_MAX+IX_MIN; ix++)
516 uint32_t rawid = myEEId.
rawId();
518 if (payload->find(rawid) == payload->end())
continue;
519 if (!(*payload)[rawid].mean_x1 && !(*payload)[rawid].rms_x1)
continue;
520 fillWithValue( (*payload)[rawid].rms_x1);
540 static const int MIN_IETA = 1;
541 static const int MIN_IPHI = 1;
542 static const int MAX_IETA = 85;
543 static const int MAX_IPHI = 360;
545 EcalPedestalsEBMean12Map() :
cond::payloadInspector::Histogram2D<
EcalPedestals>(
"ECAL Barrel pedestal gain12 - map",
546 "iphi", MAX_IPHI, MIN_IPHI, MAX_IPHI+MIN_IPHI,
"ieta", 2*MAX_IETA+1, -1*MAX_IETA, MAX_IETA+1) {
547 Base::setSingleIov(
true );
551 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
553 for(
auto const & iov : iovs ) {
554 std::shared_ptr<EcalPedestals> payload = Base::fetchPayload( std::get<1>(iov) );
557 if (!payload->barrelItems().size())
return false;
564 if (payload->find(rawid) == payload->end())
continue;
565 if (!(*payload)[rawid].mean_x12 && !(*payload)[rawid].rms_x12)
continue;
572 float valped = (*payload)[rawid].mean_x12;
573 if(valped > 250.) valped = 250.;
575 fillWithValue( (
EBDetId(rawid)).iphi(), (
EBDetId(rawid)).ieta(), valped);
586 static const int MIN_IETA = 1;
587 static const int MIN_IPHI = 1;
588 static const int MAX_IETA = 85;
589 static const int MAX_IPHI = 360;
590 EcalPedestalsEBMean6Map() :
cond::payloadInspector::Histogram2D<
EcalPedestals>(
"ECAL Barrel pedestal gain6 - map",
591 "iphi", MAX_IPHI, MIN_IPHI, MAX_IPHI+MIN_IPHI,
"ieta", 2*MAX_IETA+1, -1*MAX_IETA, MAX_IETA+1){
592 Base::setSingleIov(
true );
595 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
596 for(
auto const & iov : iovs ) {
597 std::shared_ptr<EcalPedestals> payload = Base::fetchPayload( std::get<1>(iov) );
600 if (!payload->barrelItems().size())
return false;
607 if (payload->find(rawid) == payload->end())
continue;
608 if (!(*payload)[rawid].mean_x6 && !(*payload)[rawid].rms_x6)
continue;
611 float valped = (*payload)[rawid].mean_x6;
612 if(valped > 250.) valped = 250.;
614 fillWithValue( (
EBDetId(rawid)).iphi(), (
EBDetId(rawid)).ieta(), valped);
625 static const int MIN_IETA = 1;
626 static const int MIN_IPHI = 1;
627 static const int MAX_IETA = 85;
628 static const int MAX_IPHI = 360;
629 EcalPedestalsEBMean1Map() :
cond::payloadInspector::Histogram2D<
EcalPedestals>(
"ECAL Barrel pedestal gain1 - map",
630 "iphi", MAX_IPHI, MIN_IPHI, MAX_IPHI+MIN_IPHI,
"ieta", 2*MAX_IETA+1, -1*MAX_IETA, MAX_IETA+1) {
631 Base::setSingleIov(
true );
634 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
635 for(
auto const & iov : iovs ) {
636 std::shared_ptr<EcalPedestals> payload = Base::fetchPayload( std::get<1>(iov) );
639 if (!payload->barrelItems().size())
return false;
646 if (payload->find(rawid) == payload->end())
continue;
647 if (!(*payload)[rawid].mean_x1 && !(*payload)[rawid].rms_x1)
continue;
650 float valped = (*payload)[rawid].mean_x1;
651 if(valped > 250.) valped = 250.;
653 fillWithValue( (
EBDetId(rawid)).iphi(), (
EBDetId(rawid)).ieta(), valped);
664 static const int IX_MIN =1;
668 static const int IY_MIN =1;
672 static const int IX_MAX =100;
676 static const int IY_MAX =100;
677 EcalPedestalsEEMean12Map() :
cond::payloadInspector::Histogram2D<
EcalPedestals>(
"ECAL Endcap pedestal gain12 - map",
678 "ix", 2.2*IX_MAX, IX_MIN, 2.2*IX_MAX+1,
"iy", IY_MAX, IY_MIN, IY_MAX+IY_MIN) {
679 Base::setSingleIov(
true );
683 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
685 for(
auto const & iov : iovs ) {
686 std::shared_ptr<EcalPedestals> payload = Base::fetchPayload( std::get<1>(iov) );
688 if (!payload->endcapItems().size())
return false;
691 for(
int iz = -1; iz < 2; iz = iz + 2)
692 for(
int iy = IY_MIN; iy < IY_MAX+IY_MIN; iy++)
693 for(
int ix = IX_MIN; ix < IX_MAX+IX_MIN; ix++)
696 uint32_t rawid = myEEId.
rawId();
698 if (payload->find(rawid) == payload->end())
continue;
699 if (!(*payload)[rawid].mean_x12 && !(*payload)[rawid].rms_x12)
continue;
701 float valped = (*payload)[rawid].mean_x12;
702 if(valped > 250.) valped = 250.;
705 fillWithValue(ix, iy, valped);
707 fillWithValue(ix + IX_MAX + 20, iy, valped);
719 static const int IX_MIN =1;
723 static const int IY_MIN =1;
727 static const int IX_MAX =100;
731 static const int IY_MAX =100;
732 EcalPedestalsEEMean6Map() :
cond::payloadInspector::Histogram2D<
EcalPedestals>(
"ECAL Endcap pedestal gain6 - map",
733 "ix", 2.2*IX_MAX, IX_MIN, 2.2*IX_MAX+1,
"iy", IY_MAX, IY_MIN, IY_MAX+IY_MIN) {
734 Base::setSingleIov(
true );
737 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
738 for(
auto const & iov : iovs ) {
739 std::shared_ptr<EcalPedestals> payload = Base::fetchPayload( std::get<1>(iov) );
741 if (!payload->endcapItems().size())
return false;
744 for(
int iz = -1; iz < 2; iz = iz + 2)
745 for(
int iy = IY_MIN; iy < IY_MAX+IY_MIN; iy++)
746 for(
int ix = IX_MIN; ix < IX_MAX+IX_MIN; ix++)
749 uint32_t rawid = myEEId.
rawId();
751 if (payload->find(rawid) == payload->end())
continue;
752 if (!(*payload)[rawid].mean_x6 && !(*payload)[rawid].rms_x6)
continue;
754 float valped = (*payload)[rawid].mean_x6;
755 if(valped > 250.) valped = 250.;
758 fillWithValue(ix, iy, valped);
760 fillWithValue(ix + IX_MAX + 20, iy, valped);
771 static const int IX_MIN =1;
775 static const int IY_MIN =1;
779 static const int IX_MAX =100;
783 static const int IY_MAX =100;
784 EcalPedestalsEEMean1Map() :
cond::payloadInspector::Histogram2D<
EcalPedestals>(
"ECAL Endcap pedestal gain1 - map",
785 "ix", 2.2*IX_MAX, IX_MIN, 2.2*IX_MAX+1,
"iy", IY_MAX, IY_MIN, IY_MAX+IY_MIN) { Base::setSingleIov(
true );
788 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
789 for(
auto const & iov : iovs ) {
790 std::shared_ptr<EcalPedestals> payload = Base::fetchPayload( std::get<1>(iov) );
792 if (!payload->endcapItems().size())
return false;
795 for(
int iz = -1; iz < 2; iz = iz + 2)
796 for(
int iy = IY_MIN; iy < IY_MAX+IY_MIN; iy++)
797 for(
int ix = IX_MIN; ix < IX_MAX+IX_MIN; ix++)
800 uint32_t rawid = myEEId.
rawId();
802 if (payload->find(rawid) == payload->end())
continue;
803 if (!(*payload)[rawid].mean_x1 && !(*payload)[rawid].rms_x12)
continue;
805 float valped = (*payload)[rawid].mean_x1;
806 if(valped > 250.) valped = 250.;
809 fillWithValue(ix, iy, valped);
811 fillWithValue(ix + IX_MAX + 20, iy, valped);
823 static const int MIN_IETA = 1;
824 static const int MIN_IPHI = 1;
825 static const int MAX_IETA = 85;
826 static const int MAX_IPHI = 360;
827 EcalPedestalsEBRMS12Map() :
cond::payloadInspector::Histogram2D<
EcalPedestals>(
"ECAL Barrel noise gain12 - map",
828 "iphi", MAX_IPHI, MIN_IPHI, MAX_IPHI+MIN_IPHI,
"ieta", 2*MAX_IETA+1, -1*MAX_IETA, MAX_IETA+1) { Base::setSingleIov(
true );
832 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
834 for(
auto const & iov : iovs ) {
835 std::shared_ptr<EcalPedestals> payload = Base::fetchPayload( std::get<1>(iov) );
838 if (!payload->barrelItems().size())
return false;
845 if (payload->find(rawid) == payload->end())
continue;
846 if (!(*payload)[rawid].mean_x12 && !(*payload)[rawid].rms_x12)
continue;
853 float valrms = (*payload)[rawid].rms_x12;
854 if(valrms > 2.2) valrms = 2.2;
855 fillWithValue( (
EBDetId(rawid)).iphi(), (
EBDetId(rawid)).ieta(), valrms);
866 static const int MIN_IETA = 1;
867 static const int MIN_IPHI = 1;
868 static const int MAX_IETA = 85;
869 static const int MAX_IPHI = 360;
870 EcalPedestalsEBRMS6Map() :
cond::payloadInspector::Histogram2D<
EcalPedestals>(
"ECAL Barrel noise gain6 - map",
871 "iphi", MAX_IPHI, MIN_IPHI, MAX_IPHI+MIN_IPHI,
"ieta", 2*MAX_IETA+1, -1*MAX_IETA, MAX_IETA+1) { Base::setSingleIov(
true );
874 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
875 for(
auto const & iov : iovs ) {
876 std::shared_ptr<EcalPedestals> payload = Base::fetchPayload( std::get<1>(iov) );
879 if (!payload->barrelItems().size())
return false;
886 if (payload->find(rawid) == payload->end())
continue;
887 if (!(*payload)[rawid].mean_x6 && !(*payload)[rawid].rms_x6)
continue;
890 float valrms = (*payload)[rawid].rms_x6;
891 if(valrms > 1.5) valrms = 1.5;
892 fillWithValue( (
EBDetId(rawid)).iphi(), (
EBDetId(rawid)).ieta(), valrms);
903 static const int MIN_IETA = 1;
904 static const int MIN_IPHI = 1;
905 static const int MAX_IETA = 85;
906 static const int MAX_IPHI = 360;
907 EcalPedestalsEBRMS1Map() :
cond::payloadInspector::Histogram2D<
EcalPedestals>(
"ECAL Barrel noise gain1 - map",
908 "iphi", MAX_IPHI, MIN_IPHI, MAX_IPHI+MIN_IPHI,
"ieta", 2*MAX_IETA+1, -1*MAX_IETA, MAX_IETA+1) { Base::setSingleIov(
true );
911 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
912 for(
auto const & iov : iovs ) {
913 std::shared_ptr<EcalPedestals> payload = Base::fetchPayload( std::get<1>(iov) );
916 if (!payload->barrelItems().size())
return false;
923 if (payload->find(rawid) == payload->end())
continue;
924 if (!(*payload)[rawid].mean_x1 && !(*payload)[rawid].rms_x1)
continue;
927 float valrms = (*payload)[rawid].rms_x1;
928 if(valrms > 1.0) valrms = 1.0;
929 fillWithValue( (
EBDetId(rawid)).iphi(), (
EBDetId(rawid)).ieta(), valrms);
939 static const int IX_MIN =1;
943 static const int IY_MIN =1;
947 static const int IX_MAX =100;
951 static const int IY_MAX =100;
952 EcalPedestalsEERMS12Map() :
cond::payloadInspector::Histogram2D<
EcalPedestals>(
"ECAL Endcap noise gain12 - map",
953 "ix", 2.2*IX_MAX, IX_MIN, 2.2*IX_MAX+1,
"iy", IY_MAX, IY_MIN, IY_MAX+IY_MIN) {
954 Base::setSingleIov(
true );
958 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
960 for(
auto const & iov : iovs ) {
961 std::shared_ptr<EcalPedestals> payload = Base::fetchPayload( std::get<1>(iov) );
963 if (!payload->endcapItems().size())
return false;
966 for(
int iz = -1; iz < 2; iz = iz + 2)
967 for(
int iy = IY_MIN; iy < IY_MAX+IY_MIN; iy++)
968 for(
int ix = IX_MIN; ix < IX_MAX+IX_MIN; ix++)
971 uint32_t rawid = myEEId.
rawId();
973 if (payload->find(rawid) == payload->end())
continue;
974 if (!(*payload)[rawid].mean_x12 && !(*payload)[rawid].rms_x12)
continue;
976 float valrms = (*payload)[rawid].rms_x12;
977 if(valrms > 3.5) valrms = 3.5;
979 fillWithValue(ix, iy, valrms);
981 fillWithValue(ix + IX_MAX + 20, iy, valrms);
993 static const int IX_MIN =1;
997 static const int IY_MIN =1;
1001 static const int IX_MAX =100;
1005 static const int IY_MAX =100;
1006 EcalPedestalsEERMS6Map() :
cond::payloadInspector::Histogram2D<
EcalPedestals>(
"ECAL Endcap noise gain6 - map",
1007 "ix", 2.2*IX_MAX, IX_MIN, 2.2*IX_MAX+1,
"iy", IY_MAX, IY_MIN, IY_MAX+IY_MIN) {
1008 Base::setSingleIov(
true );
1011 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
1012 for(
auto const & iov : iovs ) {
1013 std::shared_ptr<EcalPedestals> payload = Base::fetchPayload( std::get<1>(iov) );
1014 if( payload.get() ){
1015 if (!payload->endcapItems().size())
return false;
1018 for(
int iz = -1; iz < 2; iz = iz + 2)
1019 for(
int iy = IY_MIN; iy < IY_MAX+IY_MIN; iy++)
1020 for(
int ix = IX_MIN; ix < IX_MAX+IX_MIN; ix++)
1023 uint32_t rawid = myEEId.
rawId();
1025 if (payload->find(rawid) == payload->end())
continue;
1026 if (!(*payload)[rawid].mean_x6 && !(*payload)[rawid].rms_x6)
continue;
1028 float valrms = (*payload)[rawid].rms_x6;
1029 if(valrms > 2.0) valrms = 2.0;
1031 fillWithValue( ix, iy, valrms);
1033 fillWithValue( ix + IX_MAX + 20, iy, valrms);
1044 static const int IX_MIN =1;
1048 static const int IY_MIN =1;
1052 static const int IX_MAX =100;
1056 static const int IY_MAX =100;
1057 EcalPedestalsEERMS1Map() :
cond::payloadInspector::Histogram2D<
EcalPedestals>(
"ECAL Endcap noise gain1 - map",
1058 "ix", 2.2*IX_MAX, IX_MIN, 2.2*IX_MAX+1,
"iy", IY_MAX, IY_MIN, IY_MAX+IY_MIN) {
1059 Base::setSingleIov(
true );
1062 bool fill(
const std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ){
1063 for(
auto const & iov : iovs ) {
1064 std::shared_ptr<EcalPedestals> payload = Base::fetchPayload( std::get<1>(iov) );
1065 if( payload.get() ){
1066 if (!payload->endcapItems().size())
return false;
1069 for(
int iz = -1; iz < 2; iz = iz + 2)
1070 for(
int iy = IY_MIN; iy < IY_MAX+IY_MIN; iy++)
1071 for(
int ix = IX_MIN; ix < IX_MAX+IX_MIN; ix++)
1074 uint32_t rawid = myEEId.
rawId();
1076 if (payload->find(rawid) == payload->end())
continue;
1077 if (!(*payload)[rawid].mean_x1 && !(*payload)[rawid].rms_x12)
continue;
1079 float valrms = (*payload)[rawid].rms_x1;
1080 if(valrms > 1.5) valrms = 1.5;
1082 fillWithValue( ix, iy, valrms);
1084 fillWithValue( ix + IX_MAX + 20, iy, valrms);
uint32_t rawId() const
get the raw id
#define PAYLOAD_INSPECTOR_CLASS(CLASS_NAME)
payload
payload postfix for testing
static const int MIN_HASH
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)
std::shared_ptr< PayloadType > fetchPayload(const cond::Hash &payloadHash)
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
void setSingleIov(bool flag)
static EBDetId unhashIndex(int hi)
get a DetId from a compact index for arrays