25 : outputBase_(iConfig.getParameter<
ParameterSet>(
"SiPixelStatusManagerParameters")
26 .getUntrackedParameter<
std::
string>(
"outputBase")),
27 aveDigiOcc_(iConfig.getParameter<
edm::
ParameterSet>(
"SiPixelStatusManagerParameters")
28 .getUntrackedParameter<
int>(
"aveDigiOcc")),
29 nLumi_(iConfig.getParameter<
edm::
ParameterSet>(
"SiPixelStatusManagerParameters")
30 .getUntrackedParameter<
int>(
"resetEveryNLumi")),
31 moduleName_(iConfig.getParameter<
ParameterSet>(
"SiPixelStatusManagerParameters")
32 .getUntrackedParameter<
std::
string>(
"moduleName")),
33 label_(iConfig.getParameter<
ParameterSet>(
"SiPixelStatusManagerParameters")
34 .getUntrackedParameter<
std::
string>(
"label")) {
76 if (siPixelStatusHandle.
isValid()) {
82 edm::LogWarning(
"SiPixelStatusManager") <<
" SiPixelDetectorStatus is not valid for run " << iLumi.
run() <<
" lumi "
98 int iterationLumi = 0;
104 if (iterationLumi %
nLumi_ == 0) {
106 tmpSiPixelStatus = (*it);
110 if (iterationLumi %
nLumi_ > 0) {
112 tmpSiPixelStatus.
setLSRange(
int(tmpLumi), (*it).getLSRange().second);
118 if (iterationLumi %
nLumi_ ==
nLumi_ - 1 || nextIt == lastStatus) {
123 iterationLumi = iterationLumi + 1;
141 (iterBeforeLastIOV->second).updateDetectorStatus(iterLastIOV->second);
142 (iterBeforeLastIOV->second)
143 .setLSRange((iterBeforeLastIOV->second).getLSRange().first, (iterLastIOV->second).getLSRange().second);
154 bool isNewIOV =
true;
160 tmpSiPixelStatus = (*it);
163 tmpSiPixelStatus.
setLSRange(
int(tmpLumi), (*it).getLSRange().second);
189 if ((iterLastIOV->second).perRocDigiOcc() <
aveDigiOcc) {
193 (iterBeforeLastIOV->second).updateDetectorStatus(iterLastIOV->second);
194 (iterBeforeLastIOV->second)
195 .setLSRange((iterBeforeLastIOV->second).getLSRange().first, (iterLastIOV->second).getLSRange().second);
207 tmpSiPixelStatus.updateDetectorStatus((*it));
208 tmpSiPixelStatus.setLSRange(
int(tmpLumi), (*it).getLSRange().second);
214 LogInfo(
"SiPixelStatusManager") <<
"Unrecognized payload outputBase parameter: " <<
outputBase_ << endl;
228 bool sameAsLastIOV =
true;
237 std::map<int, std::vector<int> > tmpBadRocLists = tmpFEDerror25.
getFEDerror25Rocs();
239 std::map<int, SiPixelModuleStatus>::iterator itModEnd = tmpFEDerror25.end();
240 for (std::map<int, SiPixelModuleStatus>::iterator itMod = tmpFEDerror25.begin(); itMod != itModEnd; ++itMod) {
241 int detid = itMod->first;
243 if (tmpBadRocLists[detid] != (
FEDerror25Map_[previousLumi])[detid]) {
244 sameAsLastIOV =
false;
249 if (sameAsLastIOV ==
false) {
253 previousLumi = tmpLumi;
254 sameAsLastIOV =
true;