From 7633560a969833d49aa7d8f1dbc40c25bde00592 Mon Sep 17 00:00:00 2001
From: Alexandru Bercuci <abercuci@niham.nipne.ro>
Date: Thu, 4 Nov 2021 15:03:56 +0200
Subject: [PATCH] fix format

---
 core/detectors/trd/CbmTrdGeoHandler.cxx            | 2 +-
 core/detectors/trd/CbmTrdGeoHandler.h              | 2 +-
 macro/mcbm/geometry/trd/Create_TRD_Geometry_v21b.C | 4 ++--
 sim/detectors/trd/CbmTrdDigitizer.cxx              | 2 +-
 sim/detectors/trd/CbmTrdDigitizer.h                | 2 +-
 sim/detectors/trd/CbmTrdModuleSimT.cxx             | 2 +-
 sim/detectors/trd/CbmTrdModuleSimT.h               | 7 ++++---
 7 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/core/detectors/trd/CbmTrdGeoHandler.cxx b/core/detectors/trd/CbmTrdGeoHandler.cxx
index e7e24345bc..ed59e65ece 100644
--- a/core/detectors/trd/CbmTrdGeoHandler.cxx
+++ b/core/detectors/trd/CbmTrdGeoHandler.cxx
@@ -233,7 +233,7 @@ void CbmTrdGeoHandler::NavigateTo(const TString& path)
         TString nDaughter(modulenode->GetDaughter(i)->GetName());
         if (!nDaughter.BeginsWith("radiator") && !nDaughter.BeginsWith("Radiator")) continue;
         fRadiatorType = 0;
-        // TODO define radiator (+ entrance window) types according to the naming convention 
+        // TODO define radiator (+ entrance window) types according to the naming convention
       }
     }
     else  // 2013 and earlier
diff --git a/core/detectors/trd/CbmTrdGeoHandler.h b/core/detectors/trd/CbmTrdGeoHandler.h
index 2201065db8..1f886e4d55 100644
--- a/core/detectors/trd/CbmTrdGeoHandler.h
+++ b/core/detectors/trd/CbmTrdGeoHandler.h
@@ -105,7 +105,7 @@ private:
   Int_t fLayerId;              //!
   Int_t fModuleId;             //!
   Int_t fModuleType;           //!
-  Int_t fRadiatorType;         //! radiator + chamber entrance window type 
+  Int_t fRadiatorType;         //! radiator + chamber entrance window type
   Int_t fRotation;             //! rotation angle 0,1,2,3
 
   // for backward compatibility
diff --git a/macro/mcbm/geometry/trd/Create_TRD_Geometry_v21b.C b/macro/mcbm/geometry/trd/Create_TRD_Geometry_v21b.C
index fd4adf5966..f117fa877a 100644
--- a/macro/mcbm/geometry/trd/Create_TRD_Geometry_v21b.C
+++ b/macro/mcbm/geometry/trd/Create_TRD_Geometry_v21b.C
@@ -414,8 +414,8 @@ Double_t asic_distance;
 //const Double_t FrameWidth[2]    = { 1.5, 2.0 };   // Width of detector frames in cm
 const Double_t FrameWidth[4] = {1.5, 1.5, 2.5, 1.5};  // Width of detector frames in cm
 // mini - production
-const Double_t DetectorSizeX[4] = {57., 95., 59.0, 23.04 + 3.};   // => 54 x 54 cm2 & 91 x 91 cm2 active area
-const Double_t DetectorSizeY[4] = {57., 95., 60.8, 8.16 + 3.};  // quadratic modules
+const Double_t DetectorSizeX[4] = {57., 95., 59.0, 23.04 + 3.};  // => 54 x 54 cm2 & 91 x 91 cm2 active area
+const Double_t DetectorSizeY[4] = {57., 95., 60.8, 8.16 + 3.};   // quadratic modules
 //// default
 //const Double_t DetectorSizeX[2] = { 60., 100.};   // => 57 x 57 cm2 & 96 x 96 cm2 active area
 //const Double_t DetectorSizeY[2] = { 60., 100.};   // quadratic modules
diff --git a/sim/detectors/trd/CbmTrdDigitizer.cxx b/sim/detectors/trd/CbmTrdDigitizer.cxx
index ac2177256a..59342ccc19 100644
--- a/sim/detectors/trd/CbmTrdDigitizer.cxx
+++ b/sim/detectors/trd/CbmTrdDigitizer.cxx
@@ -309,7 +309,7 @@ CbmTrdModuleSim* CbmTrdDigitizer::AddModule(Int_t detId)
       SetUseFASP();
     module = fModuleMap[moduleAddress] = new CbmTrdModuleSimT(moduleAddress, lyId, orientation, UseFASP());
     Int_t rType(-1);
-    if ( (rType = geoHandler.GetRadiatorType(path)) >= 0 ) {
+    if ((rType = geoHandler.GetRadiatorType(path)) >= 0) {
       if (!fRadiator2D) {  // strong TRD-2D entrance window
         //   const Char_t *ewin = "Al;C;Air;C;Al";
         const Char_t* ewin = "Al;C;HC;C;Al";
diff --git a/sim/detectors/trd/CbmTrdDigitizer.h b/sim/detectors/trd/CbmTrdDigitizer.h
index 642eee285e..a4fe738316 100644
--- a/sim/detectors/trd/CbmTrdDigitizer.h
+++ b/sim/detectors/trd/CbmTrdDigitizer.h
@@ -138,7 +138,7 @@ private:
   CbmTrdParSetGain* fGainPar;  ///< parameter list for keV->ADC gain conversion
   CbmTrdParSetGeo* fGeoPar;    ///< parameter list for geometry definitions
   CbmTrdRadiator* fRadiator;   ///< parametrization of radiator TR yield
-  CbmTrdRadiator* fRadiator2D; ///< parametrization of 2D radiator TR yield
+  CbmTrdRadiator* fRadiator2D;  ///< parametrization of 2D radiator TR yield
 
   CbmTrdRawToDigiR* fConverter;
   CbmTrdCheckUtil* fQA;
diff --git a/sim/detectors/trd/CbmTrdModuleSimT.cxx b/sim/detectors/trd/CbmTrdModuleSimT.cxx
index 9de8a685e4..94a181046e 100644
--- a/sim/detectors/trd/CbmTrdModuleSimT.cxx
+++ b/sim/detectors/trd/CbmTrdModuleSimT.cxx
@@ -43,7 +43,7 @@ using namespace std;
 //_________________________________________________________________________________
 CbmTrdModuleSimT::CbmTrdModuleSimT(Int_t mod, Int_t ly, Int_t rot, Bool_t FASP)
   : CbmTrdModuleSim(mod, ly, rot)
-  , fConfig( 0 )
+  , fConfig(0)
   , fTriangleBinning(NULL)
   , fFASP(NULL)
   , fTimeSlice(NULL)
diff --git a/sim/detectors/trd/CbmTrdModuleSimT.h b/sim/detectors/trd/CbmTrdModuleSimT.h
index 1308429d84..48013813ab 100644
--- a/sim/detectors/trd/CbmTrdModuleSimT.h
+++ b/sim/detectors/trd/CbmTrdModuleSimT.h
@@ -51,11 +51,12 @@ public:
   void SetGamma(Double_t /*gamma*/) { ; }
   void SetMessageConverter(CbmTrdRawToDigiR* conv = NULL) { (void) conv; }
   void SetQA(CbmTrdCheckUtil* qa = NULL) { (void) qa; }
-  void SetLabMeasurement(Bool_t set=kTRUE) {
+  void SetLabMeasurement(Bool_t set = kTRUE)
+  {
     set ? SETBIT(fConfig, kMeasurement) : CLRBIT(fConfig, kMeasurement);
     SetFeCalib(set);
   }
-  void SetFeCalib(Bool_t set = kTRUE) { set ? SETBIT(fConfig, kLab) : CLRBIT(fConfig, kLab);}
+  void SetFeCalib(Bool_t set = kTRUE) { set ? SETBIT(fConfig, kLab) : CLRBIT(fConfig, kLab); }
 
   /**
    * \brief Set the FEE type operating on the chamber
@@ -95,7 +96,7 @@ private:
    **/
   void DumpBuffer() const;
 
-  UChar_t fConfig;     ///< bit map for configuration. See class documentation
+  UChar_t fConfig;                      ///< bit map for configuration. See class documentation
   CbmTrdTrianglePRF* fTriangleBinning;  ///< Integration of PRF on triangular pad-plane geometry
   CbmTrdFASP* fFASP;                    ///< FASP simulator
   CbmTimeSlice* fTimeSlice;             ///< link to CBM time slice
-- 
GitLab