Skip to content

Commit

Permalink
apply code checks and format recommendation
Browse files Browse the repository at this point in the history
  • Loading branch information
ywkao committed Dec 19, 2024
1 parent 59617bc commit 07470c1
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions DQMServices/FwkIO/plugins/DQMRootSource.cc
Original file line number Diff line number Diff line change
Expand Up @@ -450,22 +450,24 @@ DQMRootSource::DQMRootSource(edm::ParameterSet const& iPSet, const edm::InputSou
if (m_catalog.fileNames(0).empty()) {
m_nextItemType = edm::InputSource::ItemType::IsStop;
} else {
m_treeReaders[kIntIndex].reset(new TreeSimpleReader<Long64_t>(MonitorElementData::Kind::INT, m_rescope));
m_treeReaders[kFloatIndex].reset(new TreeSimpleReader<double>(MonitorElementData::Kind::REAL, m_rescope));
m_treeReaders[kStringIndex].reset(new TreeStringReader(MonitorElementData::Kind::STRING, m_rescope));
m_treeReaders[kTH1FIndex].reset(new TreeObjectReader<TH1F>(MonitorElementData::Kind::TH1F, m_rescope));
m_treeReaders[kTH1SIndex].reset(new TreeObjectReader<TH1S>(MonitorElementData::Kind::TH1S, m_rescope));
m_treeReaders[kTH1DIndex].reset(new TreeObjectReader<TH1D>(MonitorElementData::Kind::TH1D, m_rescope));
m_treeReaders[kTH1IIndex].reset(new TreeObjectReader<TH1I>(MonitorElementData::Kind::TH1I, m_rescope));
m_treeReaders[kTH2FIndex].reset(new TreeObjectReader<TH2F>(MonitorElementData::Kind::TH2F, m_rescope));
m_treeReaders[kTH2SIndex].reset(new TreeObjectReader<TH2S>(MonitorElementData::Kind::TH2S, m_rescope));
m_treeReaders[kTH2DIndex].reset(new TreeObjectReader<TH2D>(MonitorElementData::Kind::TH2D, m_rescope));
m_treeReaders[kTH2PolyIndex].reset(new TreeObjectReader<TH2Poly>(MonitorElementData::Kind::TH2Poly, m_rescope));
m_treeReaders[kTH2IIndex].reset(new TreeObjectReader<TH2I>(MonitorElementData::Kind::TH2I, m_rescope));
m_treeReaders[kTH3FIndex].reset(new TreeObjectReader<TH3F>(MonitorElementData::Kind::TH3F, m_rescope));
m_treeReaders[kTProfileIndex].reset(new TreeObjectReader<TProfile>(MonitorElementData::Kind::TPROFILE, m_rescope));
m_treeReaders[kTProfile2DIndex].reset(
new TreeObjectReader<TProfile2D>(MonitorElementData::Kind::TPROFILE2D, m_rescope));
m_treeReaders[kIntIndex] = std::make_shared<TreeSimpleReader<Long64_t>>(MonitorElementData::Kind::INT, m_rescope);
m_treeReaders[kFloatIndex] = std::make_shared<TreeSimpleReader<double>>(MonitorElementData::Kind::REAL, m_rescope);
m_treeReaders[kStringIndex] = std::make_shared<TreeStringReader>(MonitorElementData::Kind::STRING, m_rescope);
m_treeReaders[kTH1FIndex] = std::make_shared<TreeObjectReader<TH1F>>(MonitorElementData::Kind::TH1F, m_rescope);
m_treeReaders[kTH1SIndex] = std::make_shared<TreeObjectReader<TH1S>>(MonitorElementData::Kind::TH1S, m_rescope);
m_treeReaders[kTH1DIndex] = std::make_shared<TreeObjectReader<TH1D>>(MonitorElementData::Kind::TH1D, m_rescope);
m_treeReaders[kTH1IIndex] = std::make_shared<TreeObjectReader<TH1I>>(MonitorElementData::Kind::TH1I, m_rescope);
m_treeReaders[kTH2FIndex] = std::make_shared<TreeObjectReader<TH2F>>(MonitorElementData::Kind::TH2F, m_rescope);
m_treeReaders[kTH2SIndex] = std::make_shared<TreeObjectReader<TH2S>>(MonitorElementData::Kind::TH2S, m_rescope);
m_treeReaders[kTH2DIndex] = std::make_shared<TreeObjectReader<TH2D>>(MonitorElementData::Kind::TH2D, m_rescope);
m_treeReaders[kTH2PolyIndex] =
std::make_shared<TreeObjectReader<TH2Poly>>(MonitorElementData::Kind::TH2Poly, m_rescope);
m_treeReaders[kTH2IIndex] = std::make_shared<TreeObjectReader<TH2I>>(MonitorElementData::Kind::TH2I, m_rescope);
m_treeReaders[kTH3FIndex] = std::make_shared<TreeObjectReader<TH3F>>(MonitorElementData::Kind::TH3F, m_rescope);
m_treeReaders[kTProfileIndex] =
std::make_shared<TreeObjectReader<TProfile>>(MonitorElementData::Kind::TPROFILE, m_rescope);
m_treeReaders[kTProfile2DIndex] =
std::make_shared<TreeObjectReader<TProfile2D>>(MonitorElementData::Kind::TPROFILE2D, m_rescope);
}

produces<DQMToken, edm::Transition::BeginRun>("DQMGenerationRecoRun");
Expand Down

0 comments on commit 07470c1

Please sign in to comment.