Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a417e94

Browse filesBrowse files
committed
Fixing CI build errors
1 parent 402712f commit a417e94
Copy full SHA for a417e94

File tree

Expand file treeCollapse file tree

1 file changed

+28
-19
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+28
-19
lines changed
Open diff view settings
Collapse file

‎Detectors/MUON/MCH/Align/src/Aligner.cxx‎

Copy file name to clipboardExpand all lines: Detectors/MUON/MCH/Align/src/Aligner.cxx
+28-19Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class Array
100100

101101
public:
102102
/// contructor
103-
Array(void)
103+
Array()
104104
{
105105
for (int i = 0; i < Aligner::fNGlobal; ++i) {
106106
values[i] = 0;
@@ -131,8 +131,8 @@ Aligner::Aligner()
131131
fStartFac(65536),
132132
fResCutInitial(1000),
133133
fResCut(100),
134-
fMillepede(0L), // to be modified
135-
fCluster(0L),
134+
fMillepede(nullptr), // to be modified
135+
fCluster(nullptr),
136136
fNStdDev(3),
137137
fDetElemNumber(0),
138138
fGlobalParameterStatus(std::vector<int>(fNGlobal)),
@@ -150,11 +150,11 @@ Aligner::Aligner()
150150
// fGeoCombiTransInverse(),
151151
fDoEvaluation(false),
152152
mRead(false),
153-
fTrackParamOrig(0),
154-
fTrackParamNew(0),
155-
fTrkClRes(0),
156-
fTFile(0),
157-
fTTree(0)
153+
fTrackParamOrig(nullptr),
154+
fTrackParamNew(nullptr),
155+
fTrkClRes(nullptr),
156+
fTFile(nullptr),
157+
fTTree(nullptr)
158158
{
159159
/// constructor
160160
fSigma[0] = 1.5e-1;
@@ -272,8 +272,9 @@ void Aligner::init(TString DataRecFName, TString ConsRecFName)
272272
fGlobalParameterStatus[iPar] = fGlobalParameterStatus[iDeBase * fgNParCh + iParBase];
273273
LOG(info) << "Parameter " << iPar << " grouped to detector " << iDeBase << " (" << GetParameterMaskString(1 << iParBase).Data() << ")";
274274

275-
} else
275+
} else {
276276
LOG(fatal) << "Unrecognized parameter status for index " << iPar << ": " << fGlobalParameterStatus[iPar];
277+
}
277278
}
278279

279280
LOG(info) << "Free Parameters: " << nGlobal << " out of " << fNGlobal;
@@ -348,7 +349,7 @@ void Aligner::init(TString DataRecFName, TString ConsRecFName)
348349
}
349350

350351
//_____________________________________________________
351-
void Aligner::terminate(void)
352+
void Aligner::terminate()
352353
{
353354
mRecordWriter->terminate();
354355
fInitialized = kFALSE;
@@ -606,14 +607,18 @@ void Aligner::FixChamber(int iCh, unsigned int mask)
606607

607608
LOG(info) << "Fixing " << GetParameterMaskString(mask).Data() << " for detector element " << i;
608609

609-
if (mask & ParX)
610+
if (mask & ParX) {
610611
FixParameter(i, 0);
611-
if (mask & ParY)
612+
}
613+
if (mask & ParY) {
612614
FixParameter(i, 1);
613-
if (mask & ParTZ)
615+
}
616+
if (mask & ParTZ) {
614617
FixParameter(i, 2);
615-
if (mask & ParZ)
618+
}
619+
if (mask & ParZ) {
616620
FixParameter(i, 3);
621+
}
617622
}
618623
}
619624

@@ -622,14 +627,18 @@ void Aligner::FixDetElem(int iDetElemId, unsigned int mask)
622627
{
623628
/// fix parameters matching mask, for a given detector element, counting from 0
624629
const int iDet(GetDetElemNumber(iDetElemId));
625-
if (mask & ParX)
630+
if (mask & ParX) {
626631
FixParameter(iDet, 0);
627-
if (mask & ParY)
632+
}
633+
if (mask & ParY) {
628634
FixParameter(iDet, 1);
629-
if (mask & ParTZ)
635+
}
636+
if (mask & ParTZ) {
630637
FixParameter(iDet, 2);
631-
if (mask & ParZ)
638+
}
639+
if (mask & ParZ) {
632640
FixParameter(iDet, 3);
641+
}
633642
}
634643

635644
//_____________________________________________________________________
@@ -1422,7 +1431,7 @@ void Aligner::SetAlignmentResolution(const TClonesArray* misAlignArray, int rChI
14221431
mDECorrMatrix[0][0] = deResX * deResX;
14231432
mDECorrMatrix[1][1] = deResY * deResY;
14241433

1425-
o2::detectors::AlignParam* alignMat = 0x0;
1434+
o2::detectors::AlignParam* alignMat = nullptr;
14261435

14271436
for (int chId = 0; chId <= 9; ++chId) {
14281437

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.