1818
1919#pragma once
2020
21- #include " FairTask.h"
21+ #include < FairTask.h>
2222
2323class R3BTCalPar ;
2424class TClonesArray ;
@@ -40,7 +40,7 @@ class R3BTofDMapped2CalPar : public FairTask
4040 * @param name a name of the task.
4141 * @param iVerbose a verbosity level.
4242 */
43- R3BTofDMapped2CalPar (const char *, Int_t = 1 );
43+ explicit R3BTofDMapped2CalPar (const char *, int = 1 );
4444
4545 /* *
4646 * Destructor.
@@ -54,26 +54,26 @@ class R3BTofDMapped2CalPar : public FairTask
5454 * the event loop.
5555 * @return Initialization status. kSUCCESS, kERROR or kFATAL.
5656 */
57- InitStatus Init ();
57+ InitStatus Init () override ;
5858
5959 /* *
6060 * Method for event loop implementation.
6161 * Is called by the framework every time a new event is read.
6262 * @param option an execution option.
6363 */
64- void Exec (Option_t*);
64+ void Exec (Option_t*) override ;
6565
6666 /* *
6767 * Method for finish of the task execution.
6868 * Is called by the framework after processing the event loop.
6969 */
70- void FinishTask ();
70+ void FinishTask () override ;
7171
7272 /* *
7373 * Method for setting the update rate for control histograms
7474 * @param rate an update rate value (events).
7575 */
76- void SetUpdateRate (Int_t );
76+ inline void SetUpdateRate (UInt_t );
7777
7878 /* *
7979 * Method for setting minimum required statistics per module.
@@ -82,28 +82,28 @@ class R3BTofDMapped2CalPar : public FairTask
8282 * calibrated.
8383 * @param minStats a value of minimum statistics required.
8484 */
85- void SetMinStats (Int_t );
85+ inline void SetMinStats (UInt_t );
8686
8787 /* *
8888 * Method for setting number of TofD detectors and paddles.
8989 */
90- void SetNofModules (Int_t, Int_t);
90+ inline void SetNofModules (Int_t, Int_t);
9191
9292 private:
93- Int_t fUpdateRate ; /* *< An update rate. */
94- Int_t fMinStats ; /* *< Minimum statistics required per module. */
95- Int_t Icount[5 ][48 ][4 ];
93+ UInt_t fUpdateRate = 1000000 ; // An update rate
94+ UInt_t fMinStats = 100 ; // Minimum statistics required per module
95+ UInt_t Icount[5 ][48 ][4 ]; // NOLINT
9696
97- UInt_t fNofPlanes ; /* *< Number of planes. */
98- UInt_t fPaddlesPerPlane ; /* *< Number of bars per plane. */
99- UInt_t fNofModules ; /* *< Total number of modules (=edges) to calibrate */
97+ UInt_t fNofPlanes = 5 ;
98+ UInt_t fPaddlesPerPlane = 48 ;
99+ UInt_t fNofModules = fNofPlanes * fPaddlesPerPlane * 4 ;
100100
101- R3BTCalPar* fCalPar ; /* *< Parameter container. */
102- TClonesArray* fMapped ; /* *< Array with mapped data - input data. */
103- TClonesArray* fMappedTrigger ; /* *< Array with mapped trigger data - input data. */
101+ R3BTCalPar* fCalPar = nullptr ;
102+ TClonesArray* fMapped = nullptr ;
103+ TClonesArray* fMappedTrigger = nullptr ;
104104
105- R3BTCalEngine* fEngine ; /* *< Instance of the TCAL engine. */
105+ R3BTCalEngine* fEngine = nullptr ;
106106
107107 public:
108- ClassDef (R3BTofDMapped2CalPar, 1 )
108+ ClassDefOverride (R3BTofDMapped2CalPar, 1 ); // NOLINT
109109};
0 commit comments