Skip to content

Commit

Permalink
[ALCA] 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 dfd2283
Show file tree
Hide file tree
Showing 288 changed files with 664 additions and 666 deletions.
2 changes: 1 addition & 1 deletion Alignment/APEEstimation/interface/TrackerSectorStruct.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class TrackerSectorStruct {
PProbXVsVar(nullptr),
PSigmaXHitVsVar(nullptr),
PSigmaXTrkVsVar(nullptr),
PSigmaXVsVar(nullptr){};
PSigmaXVsVar(nullptr) {}

inline void fillCorrHists(const TString,
const TrackStruct::HitParameterStruct &hitParameterStruct,
Expand Down
4 changes: 2 additions & 2 deletions Alignment/APEEstimation/plugins/ApeEstimator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ class ApeEstimator : public edm::one::EDAnalyzer<> {

private:
struct PositionAndError2 {
PositionAndError2() : posX(-999.F), posY(-999.F), errX2(-999.F), errY2(-999.F){};
PositionAndError2(float x, float y, float eX, float eY) : posX(x), posY(y), errX2(eX), errY2(eY){};
PositionAndError2() : posX(-999.F), posY(-999.F), errX2(-999.F), errY2(-999.F) {}
PositionAndError2(float x, float y, float eX, float eY) : posX(x), posY(y), errX2(eX), errY2(eY) {}
float posX;
float posY;
float errX2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class CocoaMaterialElementary {
public:
//---------- Constructors / Destructor
CocoaMaterialElementary(ALIstring name, float density, ALIstring symbol, float A, ALIint Z);
~CocoaMaterialElementary(){};
~CocoaMaterialElementary() {}

ALIstring getName() const { return theName; }
float getDensity() const { return theDensity; }
Expand Down
2 changes: 1 addition & 1 deletion Alignment/CocoaDDLObjects/interface/CocoaSolidShape.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class CocoaSolidShape {
public:
//---------- Constructors / Destructor
CocoaSolidShape(ALIstring type);
virtual ~CocoaSolidShape(){};
virtual ~CocoaSolidShape() {}

ALIstring getType() const { return theType; }

Expand Down
2 changes: 1 addition & 1 deletion Alignment/CocoaDDLObjects/interface/CocoaSolidShapeBox.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class CocoaSolidShapeBox : public CocoaSolidShape {
public:
//---------- Constructors / Destructor
CocoaSolidShapeBox(ALIstring type, ALIfloat xdim, ALIfloat ydim, ALIfloat zdim);
~CocoaSolidShapeBox() override{};
~CocoaSolidShapeBox() override {}

ALIfloat getXHalfLength() const { return theXHalfLength; }
ALIfloat getYHalfLength() const { return theYHalfLength; }
Expand Down
2 changes: 1 addition & 1 deletion Alignment/CocoaDDLObjects/interface/CocoaSolidShapeTubs.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class CocoaSolidShapeTubs : public CocoaSolidShape {
ALIfloat pDz,
ALIfloat pSPhi = 0. * CLHEP::deg,
ALIfloat pDPhi = 360. * CLHEP::deg);
~CocoaSolidShapeTubs() override{};
~CocoaSolidShapeTubs() override {}
ALIfloat getInnerRadius() const { return theInnerRadius; }
ALIfloat getOuterRadius() const { return theOuterRadius; }
ALIfloat getZHalfLength() const { return theZHalfLength; }
Expand Down
4 changes: 2 additions & 2 deletions Alignment/CocoaDaq/interface/CocoaDaqReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ class OpticalAlignMeasurementInfo;

class CocoaDaqReader {
public:
CocoaDaqReader(){};
CocoaDaqReader() {}
static CocoaDaqReader* GetDaqReader() { return theDaqReader; }
static void SetDaqReader(CocoaDaqReader* reader);

virtual ~CocoaDaqReader(){};
virtual ~CocoaDaqReader() {}

virtual bool ReadNextEvent() = 0;
virtual bool ReadEvent(int nev) { return false; };
Expand Down
2 changes: 1 addition & 1 deletion Alignment/CocoaDaq/interface/CocoaDaqRootEvent.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class CocoaDaqRootEvent : public TObject {

public:
CocoaDaqRootEvent();
~CocoaDaqRootEvent() override{};
~CocoaDaqRootEvent() override {}
void SetHeader(int run, int evt) { Header->SetRunEvt(run, evt); }
void DumpIt();

Expand Down
4 changes: 2 additions & 2 deletions Alignment/CocoaFit/interface/Fit.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ enum FitQuality { FQsmallDistanceToMinimum, FQbigDistanceToMinimum, FQchiSquareW
class Fit {
public:
//----- Constructor / Destructor
Fit(){};
~Fit(){};
Fit() {}
~Fit() {}

//----- Gets the only instance of this class
static Fit& getInstance();
Expand Down
4 changes: 2 additions & 2 deletions Alignment/CocoaFit/interface/FittedEntriesManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
class FittedEntriesManager {
public:
//---------- Constructors / Destructor
FittedEntriesManager(){};
~FittedEntriesManager(){};
FittedEntriesManager() {}
~FittedEntriesManager() {}
static FittedEntriesManager* getInstance();
void AddFittedEntriesSet(FittedEntriesSet* fents);
void MakeHistos();
Expand Down
2 changes: 1 addition & 1 deletion Alignment/CocoaFit/interface/FittedEntriesSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class FittedEntriesSet {
FittedEntriesSet(const std::vector<ALIstring>& wl);
//---- Average a list of FittedEntriesSet's
FittedEntriesSet(const std::vector<FittedEntriesSet*>& vSets);
~FittedEntriesSet(){};
~FittedEntriesSet() {}
void Fill();
void FillEntries();
void FillCorrelations();
Expand Down
4 changes: 2 additions & 2 deletions Alignment/CocoaFit/interface/FittedEntry.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ class Entry;
class FittedEntry {
public:
//---------- Constructors / Destructor
FittedEntry(){};
FittedEntry() {}
FittedEntry(Entry* entry, ALIint order, ALIdouble sigma);
FittedEntry(ALIstring name, float value, float sigma);
FittedEntry(const std::vector<FittedEntry*>& vFEntry);
~FittedEntry(){};
~FittedEntry() {}

void BuildName();

Expand Down
4 changes: 2 additions & 2 deletions Alignment/CocoaFit/interface/HistoDef.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ class Entry;
class HistoDef {
public:
//---------- Constructors / Destructor
HistoDef(){};
HistoDef() {}
void init(ALIstring name);
~HistoDef(){};
~HistoDef() {}

ALIstring name() const { return theName; }
float minimum() const { return theMin; }
Expand Down
4 changes: 2 additions & 2 deletions Alignment/CocoaFit/interface/NtupleManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class TClonesArray;
class NtupleManager {
public:
//---------- Constructors / Destructor
NtupleManager(){};
~NtupleManager(){};
NtupleManager() {}
~NtupleManager() {}
static NtupleManager* getInstance();
void BookNtuple();
void InitNtuple();
Expand Down
4 changes: 2 additions & 2 deletions Alignment/CocoaModel/interface/ALILine.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class ALIPlane;

class ALILine {
public:
ALILine(){};
~ALILine(){};
ALILine() {}
~ALILine() {}
ALILine(const CLHEP::Hep3Vector& point, const CLHEP::Hep3Vector& direction);
// Next 1 line was added with 22 Mar 2001
// CLHEP::Hep3Vector ALILine( const ALILine& l2, bool notParallel = 0);
Expand Down
2 changes: 1 addition & 1 deletion Alignment/CocoaModel/interface/ALIRmDataFromFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ALIRmDataFromFile {
public:
//----- Constructor / destructor
ALIRmDataFromFile();
~ALIRmDataFromFile(){};
~ALIRmDataFromFile() {}

// Access DATA MEMBERS
ALIbool setAngle(const ALIstring& coord, const ALIdouble val);
Expand Down
4 changes: 2 additions & 2 deletions Alignment/CocoaModel/interface/DeviationSensor2D.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
class DeviationSensor2D {
public:
//---------- Constructors / Destructor
DeviationSensor2D(){};
DeviationSensor2D() {}
DeviationSensor2D(ALIdouble posDimFactor, ALIdouble angDimFactor);
~DeviationSensor2D(){};
~DeviationSensor2D() {}

// read file
void fillData(const std::vector<ALIstring>& wl);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class DeviationsFromFileSensor2D {
theOffsetX = 0.;
theOffsetY = 0.;
};
~DeviationsFromFileSensor2D(){};
~DeviationsFromFileSensor2D() {}

// read file
void readFile(ALIFileIn& ifdevi);
Expand Down
2 changes: 1 addition & 1 deletion Alignment/CocoaModel/interface/EntryAngle.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class EntryAngle : public Entry {
theDimType = ED_angle;
//- std::cout << "entryangle " << type << std::endl;
};
~EntryAngle() override{};
~EntryAngle() override {}

//----- Return value and sigma dimension factors
ALIdouble ValueDimensionFactor() const override { return ALIUtils::AngleValueDimensionFactor(); }
Expand Down
2 changes: 1 addition & 1 deletion Alignment/CocoaModel/interface/EntryAngleAffAngles.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
class EntryAngleAffAngles : public EntryAngle {
public:
EntryAngleAffAngles(const ALIstring& type);
~EntryAngleAffAngles() override{};
~EntryAngleAffAngles() override {}

virtual void FillName(const ALIstring& name);
void displace(ALIdouble disp) override;
Expand Down
2 changes: 1 addition & 1 deletion Alignment/CocoaModel/interface/EntryLength.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class EntryLength : public Entry {
// std::cout << "entrylength" << std::endl;
theDimType = ED_length;
};
~EntryLength() override{};
~EntryLength() override {}

//----- Return value and sigma dimension factors
ALIdouble ValueDimensionFactor() const override { return ALIUtils::LengthValueDimensionFactor(); }
Expand Down
2 changes: 1 addition & 1 deletion Alignment/CocoaModel/interface/EntryLengthAffCentre.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
class EntryLengthAffCentre : public EntryLength {
public:
EntryLengthAffCentre(const ALIstring& type);
~EntryLengthAffCentre() override{};
~EntryLengthAffCentre() override {}

virtual void FillName(const ALIstring& name);
void displace(ALIdouble disp) override;
Expand Down
2 changes: 1 addition & 1 deletion Alignment/CocoaModel/interface/EntryMgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class EntryData;

class EntryMgr {
private:
EntryMgr(){};
EntryMgr() {}

public:
static EntryMgr* getInstance();
Expand Down
2 changes: 1 addition & 1 deletion Alignment/CocoaModel/interface/EntryNoDim.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class EntryNoDim : public Entry {
theDimType = ED_nodim;
//std::cout << "entryNoDim" << std::endl;
};
~EntryNoDim() override{};
~EntryNoDim() override {}

// Access DATA MEMBERS
//----------- Return value and sigma dimension factors (1. as object of this class have no dimension)
Expand Down
2 changes: 1 addition & 1 deletion Alignment/CocoaModel/interface/ErrorCorrelationMgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ typedef std::map<ALIstring, ALIdouble, std::less<ALIstring> > msd;

class ErrorCorrelationMgr {
private:
ErrorCorrelationMgr(){};
ErrorCorrelationMgr() {}

public:
static ErrorCorrelationMgr* getInstance();
Expand Down
2 changes: 1 addition & 1 deletion Alignment/CocoaModel/interface/LightRay.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class LightRay {
// Make a light ray out of the centre_glob points of two OptO:'source' and 'pointLens'
LightRay(OpticalObject* p1, OpticalObject* p2);
LightRay(CLHEP::Hep3Vector& vec1, CLHEP::Hep3Vector& vec2);
~LightRay(){};
~LightRay() {}

//@@@@@@@@@@@@@@@@@@@@ Methods for each OptO
//----- Make a light ray out of the centre_glob and Z direction of one OptO: 'laser' or 'source'
Expand Down
8 changes: 4 additions & 4 deletions Alignment/CocoaModel/interface/Measurement.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Measurement {
public:
//----- Constructors / destructor
Measurement(const ALIint measdim, ALIstring& type, ALIstring& name);
Measurement(){};
Measurement() {}
virtual ~Measurement();

// construct Measurement reading date from file
Expand All @@ -47,7 +47,7 @@ class Measurement {
void addAffectingEntriesFromOptO(const OpticalObject* optoP);

// Get simulated value (called every time a parameter is displaced)
virtual void calculateSimulatedValue(ALIbool firstTime){};
virtual void calculateSimulatedValue(ALIbool firstTime) {}
// Get simulated value original (called every time a parameter value is changed: after getting values from file and every non-linear fit iteration )
void calculateOriginalSimulatedValue();

Expand All @@ -63,7 +63,7 @@ class Measurement {
// Get the previous OptOs in the list of OptO that take part in this measurement
const OpticalObject* getPreviousOptO(const OpticalObject* Popto) const;
//---------- Add any correction between the measurement data and the default format in COCOA
virtual void correctValueAndSigma(){};
virtual void correctValueAndSigma() {}

//---------- Convert from V to rad
virtual void setConversionFactor(const std::vector<ALIstring>& wordlist) {
Expand Down Expand Up @@ -155,7 +155,7 @@ class Measurement {
// Check is value is simulated
bool valueIsSimulated(ALIint coor) { return theValueIsSimulated[coor]; }

virtual void setXlaserLine(ALIuint ii, int val){};
virtual void setXlaserLine(ALIuint ii, int val) {}

static ALIdouble cameraScaleFactor;

Expand Down
4 changes: 2 additions & 2 deletions Alignment/CocoaModel/interface/MeasurementCOPS.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class MeasurementCOPS : public Measurement {
for (unsigned int ii = 0; ii < 4; ii++)
theXlaserLine[ii] = -1;
};
MeasurementCOPS(){};
~MeasurementCOPS() override{};
MeasurementCOPS() {}
~MeasurementCOPS() override {}

// Get simulated value (called every time a parameter is displaced)
void calculateSimulatedValue(ALIbool firstTime) override;
Expand Down
6 changes: 3 additions & 3 deletions Alignment/CocoaModel/interface/MeasurementDiffEntry.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

class MeasurementDiffEntry : public Measurement {
public:
MeasurementDiffEntry(const ALIint measdim, ALIstring& type, ALIstring& name) : Measurement(measdim, type, name){};
MeasurementDiffEntry(){};
~MeasurementDiffEntry() override{};
MeasurementDiffEntry(const ALIint measdim, ALIstring& type, ALIstring& name) : Measurement(measdim, type, name) {}
MeasurementDiffEntry() {}
~MeasurementDiffEntry() override {}

// separate OptO names and Entry names
void buildOptONamesList(const std::vector<ALIstring>& wl) override;
Expand Down
6 changes: 3 additions & 3 deletions Alignment/CocoaModel/interface/MeasurementDistancemeter.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
class MeasurementDistancemeter : public Measurement {
public:
MeasurementDistancemeter(const ALIint measdim, ALIstring& type, ALIstring& name)
: Measurement(measdim, type, name), theFactor(1.), theFactorSigma(0.){};
MeasurementDistancemeter(){};
~MeasurementDistancemeter() override{};
: Measurement(measdim, type, name), theFactor(1.), theFactorSigma(0.) {}
MeasurementDistancemeter() {}
~MeasurementDistancemeter() override {}

// Get simulated value (called every time a parameter is displaced)
void calculateSimulatedValue(ALIbool firstTime) override;
Expand Down
6 changes: 3 additions & 3 deletions Alignment/CocoaModel/interface/MeasurementDistancemeter3dim.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
class MeasurementDistancemeter3dim : public Measurement {
public:
MeasurementDistancemeter3dim(const ALIint measdim, ALIstring& type, ALIstring& name)
: Measurement(measdim, type, name), theFactor(1.), theFactorSigma(0.){};
MeasurementDistancemeter3dim(){};
~MeasurementDistancemeter3dim() override{};
: Measurement(measdim, type, name), theFactor(1.), theFactorSigma(0.) {}
MeasurementDistancemeter3dim() {}
~MeasurementDistancemeter3dim() override {}

// Get simulated value (called every time a parameter is displaced)
void calculateSimulatedValue(ALIbool firstTime) override;
Expand Down
6 changes: 3 additions & 3 deletions Alignment/CocoaModel/interface/MeasurementSensor2D.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

class MeasurementSensor2D : public Measurement {
public:
MeasurementSensor2D(const ALIint measdim, ALIstring& type, ALIstring& name) : Measurement(measdim, type, name){};
MeasurementSensor2D(){};
~MeasurementSensor2D() override{};
MeasurementSensor2D(const ALIint measdim, ALIstring& type, ALIstring& name) : Measurement(measdim, type, name) {}
MeasurementSensor2D() {}
~MeasurementSensor2D() override {}

// Get simulated value (called every time a parameter is displaced)
void calculateSimulatedValue(ALIbool firstTime) override;
Expand Down
6 changes: 3 additions & 3 deletions Alignment/CocoaModel/interface/MeasurementTiltmeter.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ class MeasurementTiltmeter : public Measurement {
theConstantTerm(0.),
theConstantTermSigma(0.),
thePedestal(0.),
thePedestalSigma(0.){};
MeasurementTiltmeter(){};
~MeasurementTiltmeter() override{};
thePedestalSigma(0.) {}
MeasurementTiltmeter() {}
~MeasurementTiltmeter() override {}

// Get simulated value (called every time a parameter is displaced)
void calculateSimulatedValue(ALIbool firstTime) override;
Expand Down
2 changes: 1 addition & 1 deletion Alignment/CocoaModel/interface/Model.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Model {
public:
//---------- Constructor / destructor
Model();
~Model(){};
~Model() {}

///---------- Gets the only instance of this class
static Model& getInstance();
Expand Down
6 changes: 3 additions & 3 deletions Alignment/CocoaModel/interface/OptOCOPS.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ class DeviationsFromFileSensor2D;
class OptOCOPS : public OpticalObject {
public:
//---------- Constructors / Destructor
OptOCOPS(){};
OptOCOPS() {}
OptOCOPS(OpticalObject* parent, const ALIstring& type, const ALIstring& name, const ALIbool copy_data)
: OpticalObject(parent, type, name, copy_data), fdevi_from_file(false){};
~OptOCOPS() override{};
: OpticalObject(parent, type, name, copy_data), fdevi_from_file(false) {}
~OptOCOPS() override {}

//---------- defaultBehaviour: make measurement
void defaultBehaviour(LightRay& lightray, Measurement& meas) override;
Expand Down
Loading

0 comments on commit dfd2283

Please sign in to comment.