Skip to content

Commit

Permalink
change the logic used to create the IOV so that the smaller processed…
Browse files Browse the repository at this point in the history
… run is used as first since
  • Loading branch information
cerminar committed Sep 25, 2015
1 parent 7acb2fb commit 23f0057
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Expand Up @@ -83,7 +83,8 @@ ::PCLTrackerAlProducer(const edm::ParameterSet& config) :
tjTkAssociationMapTag_ (config.getParameter<edm::InputTag>("tjTkAssociationMapTag")),
beamSpotTag_ (config.getParameter<edm::InputTag>("beamSpotTag")),
tkLasBeamTag_ (config.getParameter<edm::InputTag>("tkLasBeamTag")),
clusterValueMapTag_ (config.getParameter<edm::InputTag>("hitPrescaleMapTag"))
clusterValueMapTag_ (config.getParameter<edm::InputTag>("hitPrescaleMapTag")),
theFirstRun (cond::timeTypeSpecs[cond::runnumber].endValue)
{
createAlignmentAlgorithm(config);
createCalibrations (config);
Expand Down Expand Up @@ -175,6 +176,11 @@ ::beginRun(const edm::Run& run, const edm::EventSetup& setup)
if (setupChanged(setup)) {
initAlignmentAlgorithm(setup);
}

//store the first run analyzed to be used for setting the IOV
if(theFirstRun > (cond::Time_t) run.id().run()) {
theFirstRun = (cond::Time_t) run.id().run();
}


}
Expand Down Expand Up @@ -1089,7 +1095,7 @@ ::makeNonOverlappingRunRanges(const edm::VParameterSet& RunRangeSelectionVPSet)
}

} else {
uniqueRunRanges.push_back(std::pair<RunNumber,RunNumber>(beginValue, endValue));
uniqueRunRanges.push_back(std::pair<RunNumber,RunNumber>(theFirstRun, endValue));
}

return uniqueRunRanges;
Expand Down
Expand Up @@ -280,12 +280,14 @@ class PCLTrackerAlProducer : public edm::EDAnalyzer {
edm::ESWatcher<CSCSurveyErrorExtendedRcd> watchCSCSurveyErrExtRcd;


cond::Time_t theFirstRun;

/*** Survey stuff ***/

size_t theSurveyIndex;
const Alignments* theSurveyValues;
const SurveyErrors* theSurveyErrors;

};

#endif

0 comments on commit 23f0057

Please sign in to comment.