Skip to content

Commit b3271e1

Browse files
clang changes
Signed-off-by: AdityaPandeyCN <[email protected]>
1 parent 41e08aa commit b3271e1

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

src/ramcore/RAMNTupleView.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,7 @@ Long64_t ramntupleview(const char *file, const char *query, bool cache, bool per
179179
}
180180

181181
stopwatch.Print();
182-
std::cout << "Found " << static_cast<long long>(count) << " records in region "
183-
<< (query ? query : "") << std::endl;
182+
std::cout << "Found " << static_cast<long long>(count) << " records in region " << (query ? query : "") << std::endl;
184183
return count;
185184
}
186185

src/ramcore/SamToNTuple.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ void samtoramntuple(const char *datafile,
3434
TStopwatch stopwatch;
3535
stopwatch.Start();
3636

37-
auto rootFile = std::unique_ptr<TFile>(TFile::Open(treefile, "RECREATE"));
38-
if (!rootFile || !rootFile->IsOpen()) {
39-
std::cerr << "Failed to create RAM file " << treefile << std::endl;
40-
return;
37+
auto rootFile = std::unique_ptr<TFile>(TFile::Open(treefile, "RECREATE"));
38+
if (!rootFile || !rootFile->IsOpen()) {
39+
std::cerr << "Failed to create RAM file " << treefile << std::endl;
40+
return;
4141
}
4242

4343
RAMNTupleRecord::InitializeRefs();

tools/ramview.cxx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ Long64_t ramview(const char *file, const char *query, bool cache = true, bool pe
6565
auto start_entry = RAMRecord::GetIndex()->GetRow(refid, rs0);
6666
auto end_entry = RAMRecord::GetIndex()->GetRow(refid, re0);
6767

68-
printf("ramview: %s:%d (%lld) - %d (%lld)\n", rname.Data(), range_start, start_entry,
69-
range_end, end_entry);
68+
printf("ramview: %s:%d (%lld) - %d (%lld)\n", rname.Data(), range_start, start_entry, range_end, end_entry);
7069

7170
if (b->GetSplitLevel() > 0)
7271
t->SetBranchStatus("RAMRecord.*", 0);
@@ -119,8 +118,7 @@ Long64_t ramview(const char *file, const char *query, bool cache = true, bool pe
119118

120119
std::string region_str =
121120
std::string(rname.Data()) + ":" + std::to_string(range_start) + "-" + std::to_string(range_end);
122-
std::cout << "Found " << static_cast<long long>(count) << " records in region "
123-
<< region_str << std::endl;
121+
std::cout << "Found " << static_cast<long long>(count) << " records in region " << region_str << std::endl;
124122

125123
if (perfstats) {
126124
ps->SaveAs(perfstatsfilename);

0 commit comments

Comments
 (0)