Skip to content

Commit e7dbd61

Browse files
authored
Merge pull request #7 from alibuild/alibot-cleanup-15600
Please consider the following formatting changes to #15600
2 parents 7b078a9 + ad8ce62 commit e7dbd61

6 files changed

Lines changed: 34 additions & 37 deletions

File tree

DataFormats/Detectors/EMCAL/include/DataFormatsEMCAL/CellLabel.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#ifndef ALICEO2_EMCAL_CELLLABEL_H_
1313
#define ALICEO2_EMCAL_CELLLABEL_H_
1414

15-
1615
#include <cstddef>
1716
#include <cstdint>
1817
#include <span>

DataFormats/Detectors/EMCAL/include/DataFormatsEMCAL/MCLabel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ class MCLabel : public o2::MCCompLabel
3636

3737
ClassDefNV(MCLabel, 2);
3838
};
39-
} //namespace o2::emcal
39+
} // namespace o2::emcal
4040

4141
#endif

DataFormats/Detectors/EMCAL/src/Cell.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ const float
6262
}
6363
} // namespace EnergyEncoding
6464

65-
6665
namespace DecodingV0
6766
{
6867
struct __attribute__((packed)) CellDataPacked {

Detectors/EMCAL/base/include/EMCALBase/Geometry.h

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ class Geometry
473473
{
474474
if (GetSMType(nSupMod) == EMCAL_HALF) {
475475
return mNPhi / 2;
476-
}
476+
}
477477
if (GetSMType(nSupMod) == EMCAL_THIRD || GetSMType(nSupMod) == DCAL_EXT) {
478478
return mNPhi / 3;
479479
}
@@ -633,12 +633,12 @@ class Geometry
633633
std::tuple<int, int, int, int> CalculateCellIndex(Int_t absId) const;
634634

635635
std::string mGeoName; ///< Geometry name string
636-
Int_t mKey110DEG = 0; ///< For calculation abs cell id; 19-oct-05
637-
Int_t mnSupModInDCAL = 0; ///< For calculation abs cell id; 06-nov-12
638-
Int_t mNCellsInSupMod = 0; ///< Number cell in super module
639-
Int_t mNETAdiv = 0; ///< Number eta division of module
640-
Int_t mNPHIdiv = 0; ///< Number phi division of module
641-
Int_t mNCellsInModule = 0; ///< Number cell in module
636+
Int_t mKey110DEG = 0; ///< For calculation abs cell id; 19-oct-05
637+
Int_t mnSupModInDCAL = 0; ///< For calculation abs cell id; 06-nov-12
638+
Int_t mNCellsInSupMod = 0; ///< Number cell in super module
639+
Int_t mNETAdiv = 0; ///< Number eta division of module
640+
Int_t mNPHIdiv = 0; ///< Number phi division of module
641+
Int_t mNCellsInModule = 0; ///< Number cell in module
642642
std::vector<Double_t> mPhiBoundariesOfSM; ///< Phi boundaries of SM in rad; size is fNumberOfSuperModules;
643643
std::vector<Double_t> mPhiCentersOfSM; ///< Phi of centers of SM; size is fNumberOfSuperModules/2
644644
std::vector<Double_t> mPhiCentersOfSMSec; ///< Phi of centers of section where SM lies; size is fNumberOfSuperModules/2
@@ -649,30 +649,30 @@ class Geometry
649649
std::vector<Double_t> mCentersOfCellsPhiDir; ///< Size fNPhi*fNPHIdiv (for TRD1 only) (phi or y in SM, in cm)
650650
std::vector<Double_t>
651651
mEtaCentersOfCells; ///< [fNEta*fNETAdiv*fNPhi*fNPHIdiv], positive direction (eta>0); eta depend from phi position;
652-
Int_t mNCells = 0; ///< Number of cells in calo
653-
Int_t mNPhi = 0; ///< Number of Towers in the PHI direction
652+
Int_t mNCells = 0; ///< Number of cells in calo
653+
Int_t mNPhi = 0; ///< Number of Towers in the PHI direction
654654
std::vector<Double_t> mCentersOfCellsXDir; ///< Size fNEta*fNETAdiv (for TRD1 only) ( x in SM, in cm)
655655
std::array<float, 3> mEnvelop{}; ///< The GEANT TUB for the detector
656-
Float_t mArm1EtaMin = 0; ///< Minimum pseudorapidity position of EMCAL in Eta
657-
Float_t mArm1EtaMax = 0; ///< Maximum pseudorapidity position of EMCAL in Eta
658-
Float_t mArm1PhiMin = 0; ///< Minimum angular position of EMCAL in Phi (degrees)
659-
Float_t mArm1PhiMax = 0; ///< Maximum angular position of EMCAL in Phi (degrees)
660-
Float_t mEtaMaxOfTRD1 = 0; ///< Max eta in case of TRD1 geometry (see AliEMCALShishKebabTrd1Module)
661-
Float_t mDCALPhiMin = 0; ///< Minimum angular position of DCAL in Phi (degrees)
662-
Float_t mDCALPhiMax = 0; ///< Maximum angular position of DCAL in Phi (degrees)
663-
Float_t mEMCALPhiMax = 0; ///< Maximum angular position of EMCAL in Phi (degrees)
664-
Float_t mDCALStandardPhiMax = 0; ///< Special edge for the case that DCAL contian extension
665-
Float_t mDCALInnerExtandedEta = 0; ///< DCAL inner edge in Eta (with some extension)
666-
Float_t mDCALInnerEdge = 0; ///< Inner edge for DCAL
656+
Float_t mArm1EtaMin = 0; ///< Minimum pseudorapidity position of EMCAL in Eta
657+
Float_t mArm1EtaMax = 0; ///< Maximum pseudorapidity position of EMCAL in Eta
658+
Float_t mArm1PhiMin = 0; ///< Minimum angular position of EMCAL in Phi (degrees)
659+
Float_t mArm1PhiMax = 0; ///< Maximum angular position of EMCAL in Phi (degrees)
660+
Float_t mEtaMaxOfTRD1 = 0; ///< Max eta in case of TRD1 geometry (see AliEMCALShishKebabTrd1Module)
661+
Float_t mDCALPhiMin = 0; ///< Minimum angular position of DCAL in Phi (degrees)
662+
Float_t mDCALPhiMax = 0; ///< Maximum angular position of DCAL in Phi (degrees)
663+
Float_t mEMCALPhiMax = 0; ///< Maximum angular position of EMCAL in Phi (degrees)
664+
Float_t mDCALStandardPhiMax = 0; ///< Special edge for the case that DCAL contian extension
665+
Float_t mDCALInnerExtandedEta = 0; ///< DCAL inner edge in Eta (with some extension)
666+
Float_t mDCALInnerEdge = 0; ///< Inner edge for DCAL
667667
std::vector<ShishKebabTrd1Module> mShishKebabTrd1Modules; ///< List of modules
668668
std::array<float, 3> mParSM{}; ///< SM sizes as in GEANT (TRD1)
669-
Float_t mPhiModuleSize = 0; ///< Phi -> X
670-
Float_t mEtaModuleSize = 0; ///< Eta -> Y
671-
Float_t mPhiTileSize = 0; ///< Size of phi tile
672-
Float_t mEtaTileSize = 0; ///< Size of eta tile
673-
Int_t mNZ = 0; ///< Number of Towers in the Z direction
674-
Float_t mIPDistance = 0; ///< Radial Distance of the inner surface of the EMCAL
675-
Float_t mLongModuleSize = 0; ///< Size of long module
669+
Float_t mPhiModuleSize = 0; ///< Phi -> X
670+
Float_t mEtaModuleSize = 0; ///< Eta -> Y
671+
Float_t mPhiTileSize = 0; ///< Size of phi tile
672+
Float_t mEtaTileSize = 0; ///< Size of eta tile
673+
Int_t mNZ = 0; ///< Number of Towers in the Z direction
674+
Float_t mIPDistance = 0; ///< Radial Distance of the inner surface of the EMCAL
675+
Float_t mLongModuleSize = 0; ///< Size of long module
676676

677677
// Geometry Parameters
678678
Float_t mShellThickness = 0; ///< Total thickness in (x,y) direction

Detectors/EMCAL/base/src/ClusterFactory.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ float ClusterFactory<InputType>::GetCellWeight(float eCell, float eCluster) cons
817817
return std::max(0.f, mLogWeight + std::log(eCell / eCluster));
818818
}
819819
return std::log(eCluster / eCell);
820-
}
820+
}
821821
return 0.;
822822
}
823823

Detectors/EMCAL/base/src/Geometry.cxx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ Geometry* Geometry::GetInstanceFromRunNumber(Int_t runNumber, const std::string_
230230
"<<EMCAL_COMPLETE12SMV1>>";
231231
}
232232
return Geometry::GetInstance("EMCAL_COMPLETE12SMV1", mcname, mctitle);
233-
}
233+
}
234234
// Run 2
235235
// EMCAL + DCAL geometry, 20 SM. Year 2015 and on
236236

@@ -241,7 +241,7 @@ Geometry* Geometry::GetInstanceFromRunNumber(Int_t runNumber, const std::string_
241241
<< "\t In use <<EMCAL_COMPLETE12SMV1_DCAL_8SM>>, check run number and year";
242242
} else {
243243
LOG(info) << "o2::emcal::Geometry::GetInstanceFromRunNumber() - Initialized geometry with name "
244-
"<<EMCAL_COMPLETE12SMV1_DCAL_8SM>>";
244+
"<<EMCAL_COMPLETE12SMV1_DCAL_8SM>>";
245245
}
246246
return Geometry::GetInstance("EMCAL_COMPLETE12SMV1_DCAL_8SM", mcname, mctitle);
247247
}
@@ -873,7 +873,7 @@ Int_t Geometry::SuperModuleNumberFromEtaPhi(Double_t eta, Double_t phi) const
873873
}
874874

875875
if (GetSMType(nSupMod) == DCAL_STANDARD) { // Gap between DCAL
876-
const Int_t nEtaThird = GetNEta() / 3; // integer division intended: truncate to whole eta-bin count
876+
const Int_t nEtaThird = GetNEta() / 3; // integer division intended: truncate to whole eta-bin count
877877
if (TMath::Abs(eta) < nEtaThird * mTrd1Angle * TMath::DegToRad()) {
878878
throw InvalidPositionException(eta, phi);
879879
}
@@ -1508,15 +1508,14 @@ o2::emcal::AcceptanceType_t Geometry::IsInEMCALOrDCAL(const math_utils::Point3D<
15081508

15091509
if (phi >= mArm1PhiMin && phi <= mEMCALPhiMax) {
15101510
return EMCAL_ACCEPTANCE;
1511-
}
1511+
}
15121512
if (phi >= mDCALPhiMin && phi <= mDCALStandardPhiMax && TMath::Abs(eta) > mDCALInnerExtandedEta) {
15131513
return DCAL_ACCEPTANCE;
1514-
}
1514+
}
15151515
if (phi > mDCALStandardPhiMax && phi <= mDCALPhiMax) {
15161516
return DCAL_ACCEPTANCE;
15171517
}
15181518
return NON_ACCEPTANCE;
1519-
15201519
}
15211520

15221521
const TGeoHMatrix* Geometry::GetMatrixForSuperModule(Int_t smod) const

0 commit comments

Comments
 (0)