Skip to content

Commit

Permalink
Merge pull request #21303 from pieterdavid/revert-sistripdetvoffbuild…
Browse files Browse the repository at this point in the history
…erhandlerchange-stripdcso2o_94X

Revert accidentally committed changes in CalibTracker/SiStripDCS [94X]
  • Loading branch information
cmsbuild committed Nov 21, 2017
2 parents f20ff96 + 3b39f3f commit 7c5eda0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
3 changes: 1 addition & 2 deletions CalibTracker/SiStripDCS/interface/SiStripDetVOffBuilder.h
Expand Up @@ -22,7 +22,6 @@
#include "CondFormats/Common/interface/TimeConversions.h"
//#include "DataFormats/Provenance/interface/Timestamp.h"

class TrackerTopology;

#include <fstream>
#include <iostream>
Expand All @@ -47,7 +46,7 @@ class SiStripDetVOffBuilder
/** Default constructor. */
SiStripDetVOffBuilder(const edm::ParameterSet&,const edm::ActivityRegistry&);
/** Build the SiStripDetVOff object for transfer. */
void BuildDetVOffObj(const TrackerTopology* trackerTopo);
void BuildDetVOffObj();
/** Return modules Off vector of objects. */
std::vector< std::pair<SiStripDetVOff*,cond::Time_t> > getModulesVOff() {
reduction(deltaTmin_, maxIOVlength_);
Expand Down
5 changes: 1 addition & 4 deletions CalibTracker/SiStripDCS/plugins/SiStripDetVOffHandler.cc
Expand Up @@ -72,13 +72,10 @@ void SiStripDetVOffHandler::analyze(const edm::Event& evt, const edm::EventSetup
}
condDbSession.transaction().commit();

edm::ESHandle<TrackerTopology> tTopo;
evtSetup.get<TrackerTopologyRcd>().get(tTopo);

// build the object!
newPayloads.clear();
modHVBuilder->setLastSiStripDetVOff( lastPayload.get(), lastIov );
modHVBuilder->BuildDetVOffObj(tTopo.product());
modHVBuilder->BuildDetVOffObj();
newPayloads = modHVBuilder->getModulesVOff();
edm::LogInfo("SiStripDetVOffHandler") << "[SiStripDetVOffHandler::" << __func__ << "] "
<< "Finished building " << newPayloads.size() << " new payloads.";
Expand Down
3 changes: 1 addition & 2 deletions CalibTracker/SiStripDCS/src/SiStripDetVOffBuilder.cc
@@ -1,7 +1,6 @@
#include "CalibTracker/SiStripDCS/interface/SiStripDetVOffBuilder.h"
#include "boost/foreach.hpp"
#include <sys/stat.h>
#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"

// constructor
SiStripDetVOffBuilder::SiStripDetVOffBuilder(const edm::ParameterSet& pset, const edm::ActivityRegistry&) :
Expand Down Expand Up @@ -88,7 +87,7 @@ void SiStripDetVOffBuilder::printPar(std::stringstream& ss, const std::vector<in
}
}

void SiStripDetVOffBuilder::BuildDetVOffObj(const TrackerTopology* trackerTopo)
void SiStripDetVOffBuilder::BuildDetVOffObj()
{
// vectors for storing output from DB or text file
TimesAndValues timesAndValues;
Expand Down

0 comments on commit 7c5eda0

Please sign in to comment.