Skip to content

Commit bcab866

Browse files
committed
FIT: clang-format and cleanup
1 parent 9f2b159 commit bcab866

File tree

5 files changed

+8
-114
lines changed

5 files changed

+8
-114
lines changed

Detectors/FIT/simulation/include/FITSimulation/#DigitizerTask.h#

Lines changed: 0 additions & 80 deletions
This file was deleted.

Detectors/FIT/simulation/include/FITSimulation/Digitizer.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ class Digitizer
4040

4141
void init();
4242
void finish();
43-
// void setMCLabels(o2::dataformats::MCTruthContainer<o2::MCCompLabel>* mclb) { mMCLabels = mclb; }
4443
void setMCLabels(o2::dataformats::MCTruthContainer<o2::fit::MCLabel>* mclb) { mMCLabels = mclb; }
4544

4645
private:

Detectors/FIT/simulation/include/FITSimulation/MCLabel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class MCLabel : public o2::MCCompLabel
2626

2727
public:
2828
MCLabel() = default;
29-
MCLabel(Int_t trackID, Int_t eventID, Int_t srcID, Int_t qID)
29+
MCLabel(Int_t trackID, Int_t eventID, Int_t srcID, Int_t qID)
3030
: o2::MCCompLabel(trackID, eventID, srcID), mDetID(qID) {}
3131
Int_t getDetID() const { return mDetID; }
3232

Detectors/FIT/simulation/src/Detector.cxx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ void Detector::InitializeO2Detector()
5050
{
5151
// FIXME: we need to register the sensitive volumes with FairRoot
5252
TGeoVolume* v = gGeoManager->GetVolume("0REG");
53-
if (v == nullptr)
54-
printf("@@@@ Sensitive volume 0REG not found!!!!!!!!");
55-
else {
53+
if (v == nullptr) {
54+
LOG(WARN) << "@@@@ Sensitive volume 0REG not found!!!!!!!!";
55+
} else {
5656
AddSensitiveVolume(v);
5757
}
5858
}
@@ -74,10 +74,10 @@ void Detector::ConstructGeometry()
7474

7575
int nCellsA = Geometry::NCellsA;
7676
int nCellsC = Geometry::NCellsC;
77-
77+
7878
Geometry geometry;
7979
TVector3 centerMCP = geometry.centerMCP(2);
80-
80+
8181
Matrix(idrotm[901], 90., 0., 90., 90., 180., 0.);
8282

8383
// C side Concave Geometry
@@ -247,7 +247,7 @@ void Detector::SetOneMCP(TGeoVolume* ins)
247247
topref->AddNode(rfv, 1, new TGeoTranslation(xinv, 0, 0));
248248
xinv = ptop[0] + prfv[0];
249249
topref->AddNode(rfv, 2, new TGeoTranslation(xinv, 0, 0));
250-
yinv = -ptop[1] - prfh[1];
250+
yinv = -ptop[1] - prfh[1];
251251
topref->AddNode(rfh, 1, new TGeoTranslation(0, yinv, 0));
252252
yinv = ptop[1] + prfh[1];
253253
topref->AddNode(rfh, 2, new TGeoTranslation(0, yinv, 0));
@@ -260,7 +260,7 @@ void Detector::SetOneMCP(TGeoVolume* ins)
260260
yin = -pinstart[1] + 0.3 + (iy + 0.5) * 2 * ptopref[1];
261261
ntops++;
262262
ins->AddNode(topref, ntops, new TGeoTranslation(xin, yin, z));
263-
z = -pinstart[2] + 2 * pal[2] + 2 * ptopref[2] + preg[2];
263+
z = -pinstart[2] + 2 * pal[2] + 2 * ptopref[2] + preg[2];
264264
ins->AddNode(cat, ntops, new TGeoTranslation(xin, yin, z));
265265
// cat->Print();
266266
}

Detectors/FIT/simulation/src/MCLabel.cxx

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)