From 59b6cd65b9482e2015cbab3615953ae2597e25fa Mon Sep 17 00:00:00 2001
From: Florian Uhlig <f.uhlig@gsi.de>
Date: Fri, 12 May 2023 13:46:45 +0200
Subject: [PATCH] Clang-format

---
 .../SensorDataSheets/CbmMvdSensorDataSheet.h  | 54 +++++++++----------
 .../tasks/CbmMvdSensorClusterfinderTask.cxx   |  7 ++-
 .../tasks/CbmMvdSensorDigitizerTask.cxx       |  2 +-
 3 files changed, 31 insertions(+), 32 deletions(-)

diff --git a/core/detectors/mvd/SensorDataSheets/CbmMvdSensorDataSheet.h b/core/detectors/mvd/SensorDataSheets/CbmMvdSensorDataSheet.h
index 595e44753b..b92e80d64b 100644
--- a/core/detectors/mvd/SensorDataSheets/CbmMvdSensorDataSheet.h
+++ b/core/detectors/mvd/SensorDataSheets/CbmMvdSensorDataSheet.h
@@ -43,48 +43,48 @@ public:
 
 protected:
   /** Technical data of the sensor */
-  TString fMimosaName = "DefaulSensor"; // Clear name of the simulated sensor
-  Double_t fPixelPitchX = 18.4e-4;      // Pixel pitch of this sensor
-  Double_t fPixelPitchY = 18.4e-4;      // Pixel pitch of this sensor
-  Int_t fNPixelsX = 0;                  // Number of pixels in row
-  Int_t fNPixelsY = 0;                  // Number of pixels in col
-  Int_t fNPixels = 0;                   // Number of pixels in sensor
-  Int_t fPixelSignX = 1;                // Direction of the pixel count X.
+  TString fMimosaName   = "DefaulSensor";  // Clear name of the simulated sensor
+  Double_t fPixelPitchX = 18.4e-4;         // Pixel pitch of this sensor
+  Double_t fPixelPitchY = 18.4e-4;         // Pixel pitch of this sensor
+  Int_t fNPixelsX       = 0;               // Number of pixels in row
+  Int_t fNPixelsY       = 0;               // Number of pixels in col
+  Int_t fNPixels        = 0;               // Number of pixels in sensor
+  Int_t fPixelSignX     = 1;               // Direction of the pixel count X.
     // Defined according to pixelNumberX=fPixelSign * const * x
-  Int_t fPixelSignY = 1;                // Direction of the pixel count Y.
+  Int_t fPixelSignY = 1;  // Direction of the pixel count Y.
     // Defined according to pixelNumberY=fPixelSign * const * y
-  Int_t fShutterSign = 0;               // Direction of the rolling shutter.
-                              // 1 => parallel to y-axis, -1 => anti-parallel
-  Double_t fIntegrationTime = 50e3;  // Integration time of the pixels
-  Double_t fEpiTh = 14e-4;            // Thickness of the epitaxial layer
+  Int_t fShutterSign = 0;             // Direction of the rolling shutter.
+                                      // 1 => parallel to y-axis, -1 => anti-parallel
+  Double_t fIntegrationTime = 50e3;   // Integration time of the pixels
+  Double_t fEpiTh           = 14e-4;  // Thickness of the epitaxial layer
 
   Double_t fChargeThreshold = 0.;
-  Double_t fSignalRiseTime = nan("NotSet");
-  Double_t fSignalFallTime = nan("NotSet");
+  Double_t fSignalRiseTime  = nan("NotSet");
+  Double_t fSignalFallTime  = nan("NotSet");
 
 
   /** Description of the sensor for the digitizer **/
-  Double_t fNoise = 0.;        // Noise of the sensor
-  Double_t fLandauMPV = 8.62131e+02;    // Landau for digitizer
-  Double_t fLandauSigma = 2.e+02;  // Landau for digitizer
-  Double_t fLandauGain = 1.56;   // Landau for digitizer
+  Double_t fNoise       = 0.;           // Noise of the sensor
+  Double_t fLandauMPV   = 8.62131e+02;  // Landau for digitizer
+  Double_t fLandauSigma = 2.e+02;       // Landau for digitizer
+  Double_t fLandauGain  = 1.56;         // Landau for digitizer
   Double_t fLorentzPar0 = 4.12073e+02;  // Lorentz for digitizer
-  Double_t fLorentzPar1 = 0.8e+00;  // Lorentz for digitizer
-  Double_t fLorentzPar2 = 0.1;  // Lorentz for digitizer
+  Double_t fLorentzPar1 = 0.8e+00;      // Lorentz for digitizer
+  Double_t fLorentzPar2 = 0.1;          // Lorentz for digitizer
 
   /** ADC description, relevant for sensors with analog readout (not present in the CbmMvd) **/
 
-  Int_t fAdcDynamic = 150;
-  Int_t fAdcOffset = 0;
-  Int_t fAdcBits = 1;
-  Int_t fAdcSteps = TMath::Power(2, fAdcBits);
+  Int_t fAdcDynamic    = 150;
+  Int_t fAdcOffset     = 0;
+  Int_t fAdcBits       = 1;
+  Int_t fAdcSteps      = TMath::Power(2, fAdcBits);
   Float_t fAdcStepSize = fAdcDynamic / fAdcSteps;
 
   /** Sensor substructure, relevant for MIMOSA-26 (Prototype of the CbmMvd) **/
-  Int_t fStatesPerBank = 0;
-  Int_t fStatesPerLine = 0;
+  Int_t fStatesPerBank  = 0;
+  Int_t fStatesPerLine  = 0;
   Int_t fStatesPerFrame = 0;
-  Int_t fPixelsPerBank = 0;
+  Int_t fPixelsPerBank  = 0;
 
   /** Threshold of the in-pixel discriminator. Relevant for MIMOSIS **/
   Int_t fAnalogThreshold = -1;
diff --git a/reco/detectors/mvd/plugins/tasks/CbmMvdSensorClusterfinderTask.cxx b/reco/detectors/mvd/plugins/tasks/CbmMvdSensorClusterfinderTask.cxx
index 7eeee63fef..1416c5c953 100644
--- a/reco/detectors/mvd/plugins/tasks/CbmMvdSensorClusterfinderTask.cxx
+++ b/reco/detectors/mvd/plugins/tasks/CbmMvdSensorClusterfinderTask.cxx
@@ -126,11 +126,10 @@ void CbmMvdSensorClusterfinderTask::InitTask(CbmMvdSensor* mysensor)
     //}
 
 
-
     //Add charge collection histograms
     fPixelChargeHistos = new TObjArray();
-    size_t buf_size = 20;
-    char* histoName            = new char[buf_size];
+    size_t buf_size    = 20;
+    char* histoName    = new char[buf_size];
     TH1F* histo;
     for (Int_t i = 0; i < 49; i++) {
       snprintf(histoName, buf_size - 1, "ChargePixel%i", i + 1);
@@ -140,7 +139,7 @@ void CbmMvdSensorClusterfinderTask::InitTask(CbmMvdSensor* mysensor)
     delete[] histoName;
 
     fTotalChargeInNpixelsArray = new TObjArray();
-    buf_size = 50;
+    buf_size                   = 50;
     char* histoTotalChargeName = new char[buf_size];
     TH1F* histoTotalCharge;
     for (Int_t i = 0; i < 49; i++) {
diff --git a/sim/detectors/mvd/plugins/tasks/CbmMvdSensorDigitizerTask.cxx b/sim/detectors/mvd/plugins/tasks/CbmMvdSensorDigitizerTask.cxx
index f3c5838fcc..ab8e62a8c7 100644
--- a/sim/detectors/mvd/plugins/tasks/CbmMvdSensorDigitizerTask.cxx
+++ b/sim/detectors/mvd/plugins/tasks/CbmMvdSensorDigitizerTask.cxx
@@ -533,7 +533,7 @@ Bool_t CbmMvdSensorDigitizerTask::GetSignalAboveThreshold(CbmMvdPixelCharge* myP
    * Checks if pixel is above threshold.
    **/
 
-//  CbmMvdSensor* mySensor; // not used FU 12.05.23
+  //  CbmMvdSensor* mySensor; // not used FU 12.05.23
 
 
   return (GetPixelCharge(myPixel, readoutTime) > fsensorDataSheet->GetAnalogThreshold());
-- 
GitLab