Skip to content

Commit

Permalink
[DB] Changes suggested by new llvm18 clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Sep 5, 2024
1 parent 15ea9bb commit 7ef3d00
Show file tree
Hide file tree
Showing 116 changed files with 487 additions and 487 deletions.
8 changes: 4 additions & 4 deletions CaloOnlineTools/HcalOnlineDb/interface/HcalQIEManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

class HcalChannelId {
public:
HcalChannelId(){};
~HcalChannelId(){};
HcalChannelId() {}
~HcalChannelId() {}

int eta, phi, depth;
std::string subdetector;
Expand All @@ -30,8 +30,8 @@ class HcalChannelId {

class HcalQIECaps {
public:
HcalQIECaps(){};
~HcalQIECaps(){};
HcalQIECaps() {}
~HcalQIECaps() {}

// cap0 offset x 4, cap1 offset x 4...
// cap0 slope x 4, cap1 slope x 4...
Expand Down
10 changes: 5 additions & 5 deletions CaloOnlineTools/HcalOnlineDb/interface/LMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@

class LMapRow {
public:
LMapRow(){};
~LMapRow(){};
LMapRow() {}
~LMapRow() {}

int side;
int eta, phi, dphi, depth;
Expand All @@ -55,8 +55,8 @@ class LMapRow {

class LMapDetId {
public:
LMapDetId(){};
~LMapDetId(){};
LMapDetId() {}
~LMapDetId() {}

int side;
int eta, phi, depth;
Expand Down Expand Up @@ -110,7 +110,7 @@ class EMap {
zdc_channel = 0;
zdc_section = "UNKNOWN";
}
~EMapRow(){};
~EMapRow() {}

bool operator<(const EMapRow& other) const;

Expand Down
2 changes: 1 addition & 1 deletion CaloOnlineTools/HcalOnlineDb/plugins/HcalLutAnalyzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
class HcalLutAnalyzer : public edm::one::EDAnalyzer<edm::one::SharedResources> {
public:
explicit HcalLutAnalyzer(const edm::ParameterSet&);
~HcalLutAnalyzer() override{};
~HcalLutAnalyzer() override {}
static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);

private:
Expand Down
26 changes: 13 additions & 13 deletions CommonTools/ConditionDBWriter/interface/ConditionDBWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@
* The user can optionally implement the following methods
*
* //Will be called at the beginning of the job
* virtual void algoBeginJob(const edm::EventSetup&){};
* virtual void algoBeginJob(const edm::EventSetup&){}
* //Will be called at the beginning of each run in the job
* virtual void algoBeginRun(const edm::Run &, const edm::EventSetup &){};
* virtual void algoBeginRun(const edm::Run &, const edm::EventSetup &){}
* //Will be called at the beginning of each luminosity block in the run
* virtual void algoBeginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &){};
* virtual void algoBeginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &){}
* //Will be called at every event
* virtual void algoAnalyze(const edm::Event&, const edm::EventSetup&){};
* virtual void algoAnalyze(const edm::Event&, const edm::EventSetup&){}
* //Will be called at the end of each run in the job
* virtual void algoEndRun(const edm::Run &, const edm::EventSetup &){};
* virtual void algoEndRun(const edm::Run &, const edm::EventSetup &){}
* //Will be called at the end of the job
* virtual void algoEndJob(){};
* virtual void algoEndJob(){}
*
* where he can access information needed to build his object. For instance, if
* he is computing a calibration that is computed as the mean of a certain
Expand Down Expand Up @@ -202,17 +202,17 @@ class ConditionDBWriter
// Optional methods that may be implemented (technically "overridden") in the derived classes if needed

//Will be called at the beginning of the job
virtual void algoBeginJob(const edm::EventSetup &){};
virtual void algoBeginJob(const edm::EventSetup &) {}
//Will be called at the beginning of each run in the job
virtual void algoBeginRun(const edm::Run &, const edm::EventSetup &){};
virtual void algoBeginRun(const edm::Run &, const edm::EventSetup &) {}
//Will be called at the beginning of each luminosity block in the run
virtual void algoBeginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &){};
virtual void algoBeginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) {}
//Will be called at every event
virtual void algoAnalyze(const edm::Event &, const edm::EventSetup &){};
virtual void algoAnalyze(const edm::Event &, const edm::EventSetup &) {}
//Will be called at the end of each run in the job
virtual void algoEndRun(const edm::Run &, const edm::EventSetup &){};
virtual void algoEndRun(const edm::Run &, const edm::EventSetup &) {}
//Will be called at the end of the job
virtual void algoEndJob(){};
virtual void algoEndJob() {}

void beginJob() override {}

Expand Down Expand Up @@ -268,7 +268,7 @@ class ConditionDBWriter
}
}

virtual void algoEndLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &){};
virtual void algoEndLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) {}

void endRun(const edm::Run &run, const edm::EventSetup &es) override {
edm::LogInfo("ConditionDBWriter") << "endRun";
Expand Down
4 changes: 2 additions & 2 deletions CommonTools/ConditionDBWriter/plugins/PCLMetadataWriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class PCLMetadataWriter : public edm::one::EDAnalyzer<edm::one::WatchRuns> {
~PCLMetadataWriter() override = default;

// Operations
void analyze(const edm::Event &, const edm::EventSetup &) override{};
void beginRun(const edm::Run &, const edm::EventSetup &) override{};
void analyze(const edm::Event &, const edm::EventSetup &) override {}
void beginRun(const edm::Run &, const edm::EventSetup &) override {}
void endRun(const edm::Run &, const edm::EventSetup &) override;

protected:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1100,8 +1100,8 @@ namespace AlignmentPI {
edm::LogError("TrackerAlignment_PayloadInspector") << "Unrecognized coordinate " << coord << std::endl;
break;
} // switch on the coordinate
} // check on the same detID
} // loop on the components
} // check on the same detID
} // loop on the components
}

/*--------------------------------------------------------------------*/
Expand Down Expand Up @@ -1181,7 +1181,7 @@ namespace AlignmentPI {
}

} // if it's the same detid
} // loop on detids
} // loop on detids
}

/*--------------------------------------------------------------------*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ namespace {
// to be used to fill the histogram
fillWithValue(sqrt(errMatrix[indices.first][indices.second]) * AlignmentPI::cmToUm);
} // loop on the vector of modules
} // payload
} // iovs
} // payload
} // iovs
return true;
} // fill
};
Expand Down Expand Up @@ -430,7 +430,7 @@ namespace {
APE_spectraByRegion[hash]->Fill(sqrt(errMatrix[indices.first][indices.second]) * AlignmentPI::cmToUm);

} // loop on the coordinate indices
} // loop over detIds
} // loop over detIds

// plotting section

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1143,8 +1143,8 @@ namespace {
edm::LogError("TrackerAlignment_PayloadInspector") << "Unrecognized coordinate " << myCoord << std::endl;
break;
} // switch on the coordinate
} // check on the same detID
} // loop on the components
} // check on the same detID
} // loop on the components
}
};

Expand Down Expand Up @@ -1215,7 +1215,7 @@ namespace {
edm::LogError("TrackerAlignment_PayloadInspector") << "Unrecognized coordinate " << coord << std::endl;
break;
} // switch on the coordinate (only X,Y,Z are interesting)
} // ends loop on the alignments
} // ends loop on the alignments

edm::LogInfo("TrackerAlignment_PayloadInspector") << "barycenter (" << barycenter << ")/n. modules (" << nmodules
<< ") = " << barycenter / nmodules << std::endl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ namespace {
}

} // payload
} // iovs
} // iovs
return true;
} // fill
};
Expand Down Expand Up @@ -135,7 +135,7 @@ namespace {
summaries[nPar]->Fill(par);
nPar++;
} // ends loop on the parameters
} // ends loop on the item vector
} // ends loop on the item vector

TLatex t1;

Expand Down Expand Up @@ -603,8 +603,8 @@ namespace {
surfDefMap[f_entry.first] = delta;
}
} // if not phase-0
} // loop on the last payload map
} // loop on the first payload map
} // loop on the last payload map
} // loop on the first payload map

//=========================

Expand Down Expand Up @@ -772,8 +772,8 @@ namespace {
surfDefMap[f_entry.first] = delta;
}
} // if not phase-0
} // loop on the last payload map
} // loop on the first payload map
} // loop on the last payload map
} // loop on the first payload map

//=========================

Expand Down
2 changes: 1 addition & 1 deletion CondCore/CondDB/src/CoralMsgReporter.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace cond {
CoralMsgReporter();

/// Destructor
~CoralMsgReporter() override{};
~CoralMsgReporter() override {}

/// Release reference to reporter
void release() override { delete this; }
Expand Down
2 changes: 1 addition & 1 deletion CondCore/CondDB/src/blowfish.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ typedef unsigned int uInt32;
#endif

#ifndef S_ISREG
#define S_ISREG(x) (((x)&S_IFMT) == S_IFREG)
#define S_ISREG(x) (((x) & S_IFMT) == S_IFREG)
#endif

#define MAXKEYBYTES 56 /* 448 bits */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ namespace {
}
}
} // validHashIndex
} // payload
} // payload

gStyle->SetOptStat(0);
gStyle->SetPalette(1);
Expand Down Expand Up @@ -189,9 +189,9 @@ namespace {
}
}
} // 2nd IOV
} // validHashIndex
} // payload
} // loop over IOVs
} // validHashIndex
} // payload
} // loop over IOVs

gStyle->SetOptStat(0);
gStyle->SetPalette(1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ namespace {
valmin = value;
}
} // validHashIndex
} // payload
} // payload

gStyle->SetOptStat(0);
gStyle->SetPalette(1);
Expand Down Expand Up @@ -180,9 +180,9 @@ namespace {
valmin = diff;
}
} // 2nd IOV
} // validHashIndex
} // payload
} // loop over IOVs
} // validHashIndex
} // payload
} // loop over IOVs

gStyle->SetOptStat(0);
gStyle->SetPalette(1);
Expand Down Expand Up @@ -228,7 +228,7 @@ namespace {
canvas.SaveAs(ImageName.c_str());
return true;
} // fill method
}; // class ESIntercalibConstantsDiffBase
}; // class ESIntercalibConstantsDiffBase
using ESIntercalibConstantsDiffOneTag = ESIntercalibConstantsDiffBase<cond::payloadInspector::SINGLE_IOV, 1>;
using ESIntercalibConstantsDiffTwoTags = ESIntercalibConstantsDiffBase<cond::payloadInspector::SINGLE_IOV, 2>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace {
MIN_IPHI = 1,
MAX_IETA = 85,
MAX_IPHI = 360
}; // barrel (EB) lower and upper bounds on eta and phi
}; // barrel (EB) lower and upper bounds on eta and phi
enum { IX_MIN = 1, IY_MIN = 1, IX_MAX = 100, IY_MAX = 100 }; // endcaps (EE) lower and upper bounds on x and y

/*****************************************
Expand Down Expand Up @@ -257,7 +257,7 @@ namespace {
canvas.SaveAs(ImageName.c_str());
return true;
} // fill method
}; // class EcalAlignmentDiffBase
}; // class EcalAlignmentDiffBase
using EcalAlignmentDiffOneTag = EcalAlignmentDiffBase<cond::payloadInspector::SINGLE_IOV, 1>;
using EcalAlignmentDiffTwoTags = EcalAlignmentDiffBase<cond::payloadInspector::SINGLE_IOV, 2>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ namespace {
ebmap_coarse->Fill(phi, eta);
}
} // loop over cellid
} // if payload.get()
} // if payload.get()
else
return false;

Expand Down Expand Up @@ -181,7 +181,7 @@ namespace {
}
}
} // validDetId
} // payload
} // payload

gStyle->SetOptStat(0);
//set the background color to white
Expand Down Expand Up @@ -337,7 +337,7 @@ namespace {
}
}
} // loop over cellid
} // if payload.get()
} // if payload.get()
else
return false;
} // loop over IOV's
Expand Down Expand Up @@ -489,11 +489,11 @@ namespace {
eecount++;
eemap_coarse->Fill(ix + IX_MAX - 1, iy - 1, tmp3);
} // z side
} // any difference ?
} // 2nd IOV, fill the plots
} // validDetId
} // get the payload
} // loop over payloads
} // any difference ?
} // 2nd IOV, fill the plots
} // validDetId
} // get the payload
} // loop over payloads

gStyle->SetOptStat(0);
//set the background color to white
Expand Down
Loading

0 comments on commit 7ef3d00

Please sign in to comment.