Skip to content

Commit

Permalink
code format updates in CalibTracker/SiPixelESProducers
Browse files Browse the repository at this point in the history
  • Loading branch information
ferencek committed Nov 24, 2020
1 parent b17511b commit b409f0b
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ class PixelFEDChannelCollectionMapTestReader : public edm::one::EDAnalyzer<> {
// ----------member data ---------------------------
const bool printdebug_;
const std::string formatedOutput_;
edm::ESGetToken<PixelFEDChannelCollectionMap, SiPixelFEDChannelContainerESProducerRcd> pixelFEDChannelCollectionMapToken_;
edm::ESGetToken<PixelFEDChannelCollectionMap, SiPixelFEDChannelContainerESProducerRcd>
pixelFEDChannelCollectionMapToken_;
};

PixelFEDChannelCollectionMapTestReader::PixelFEDChannelCollectionMapTestReader(edm::ParameterSet const& p)
: printdebug_(p.getUntrackedParameter<bool>("printDebug", true)),
formatedOutput_(p.getUntrackedParameter<std::string>("outputFile", "")),
pixelFEDChannelCollectionMapToken_(esConsumes<PixelFEDChannelCollectionMap, SiPixelFEDChannelContainerESProducerRcd>()) {
pixelFEDChannelCollectionMapToken_(
esConsumes<PixelFEDChannelCollectionMap, SiPixelFEDChannelContainerESProducerRcd>()) {
edm::LogInfo("PixelFEDChannelCollectionMapTestReader") << "PixelFEDChannelCollectionMapTestReader" << std::endl;
}

Expand All @@ -52,7 +54,8 @@ void PixelFEDChannelCollectionMapTestReader::analyze(const edm::Event& e, const
}

//this part gets the handle of the event source and the record (i.e. the Database)
edm::ESHandle<PixelFEDChannelCollectionMap> PixelFEDChannelCollectionMapHandle = context.getHandle(pixelFEDChannelCollectionMapToken_);
edm::ESHandle<PixelFEDChannelCollectionMap> PixelFEDChannelCollectionMapHandle =
context.getHandle(pixelFEDChannelCollectionMapToken_);
edm::LogInfo("PixelFEDChannelCollectionMapTestReader") << "got eshandle and context" << std::endl;

const PixelFEDChannelCollectionMap* thePixelFEDChannelCollectionMap = PixelFEDChannelCollectionMapHandle.product();
Expand Down

0 comments on commit b409f0b

Please sign in to comment.