Skip to content

Commit 629670c

Browse files
committed
feat(rolu):Update online histograms by Lukas et al
Minor change
1 parent dd0ff11 commit 629670c

6 files changed

Lines changed: 208 additions & 109 deletions

File tree

r3bdata/roluData/R3BRoluCalData.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111
* or submit itself to any jurisdiction. *
1212
******************************************************************************/
1313

14-
#ifndef R3BROLUCALITEM_H
15-
#define R3BROLUCALITEM_H
14+
#pragma once
1615

17-
#include "TObject.h"
16+
#include <TObject.h>
17+
18+
constexpr size_t rolu_nb_ch = 4;
1819

1920
// for the data analysis of the ROLU following LOS.
2021

@@ -25,10 +26,10 @@ class R3BRoluCalData : public TObject
2526
R3BRoluCalData();
2627

2728
// Standard Constructor
28-
R3BRoluCalData(UInt_t);
29+
explicit R3BRoluCalData(UInt_t);
2930

3031
// Destructor
31-
virtual ~R3BRoluCalData() {}
32+
virtual ~R3BRoluCalData() = default;
3233

3334
UInt_t GetDetector() const;
3435
UInt_t GetTAMEXLNcha();
@@ -41,15 +42,14 @@ class R3BRoluCalData : public TObject
4142
Double_t GetMeanTimeTAMEXL();
4243
Double_t GetMeanTimeTAMEXT();
4344

45+
Double_t fTimeL_ns[rolu_nb_ch]; // TAMEX leading
46+
Double_t fTimeT_ns[rolu_nb_ch]; // TAMEX trailing
47+
4448
private:
4549
UInt_t fDetector;
4650
void Reset();
4751

4852
public:
49-
Double_t fTimeL_ns[4]; // TAMEX leading
50-
Double_t fTimeT_ns[4]; // TAMEX trailing
51-
52-
ClassDef(R3BRoluCalData, 1)
53+
// Class definition
54+
ClassDef(R3BRoluCalData, 1); // NOLINT
5355
};
54-
55-
#endif // R3BROLUCALITEM_H

r3bdata/roluData/R3BRoluMappedData.h

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@
1111
* or submit itself to any jurisdiction. *
1212
******************************************************************************/
1313

14-
#ifndef R3BROLUMAPPEDITEM_H
15-
#define R3BROLUMAPPEDITEM_H
14+
#pragma once
1615

17-
#include "TObject.h"
16+
#include <TObject.h>
1817

1918
// for the data analysis of ROLU following LOS
2019

@@ -25,7 +24,7 @@ class R3BRoluMappedData : public TObject
2524
R3BRoluMappedData();
2625

2726
// Standard Constructor
28-
R3BRoluMappedData(UInt_t, UInt_t, Int_t, UInt_t, UInt_t);
27+
explicit R3BRoluMappedData(UInt_t, UInt_t, Int_t, UInt_t, UInt_t);
2928

3029
UInt_t GetDetector() const;
3130
UInt_t GetChannel() const;
@@ -41,7 +40,6 @@ class R3BRoluMappedData : public TObject
4140
UInt_t fTimeFine;
4241

4342
public:
44-
ClassDef(R3BRoluMappedData, 1)
43+
// Class definition
44+
ClassDef(R3BRoluMappedData, 1); // NOLINT
4545
};
46-
47-
#endif // R3BROLUMAPPEDITEM_H

rolu/CMakeLists.txt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,17 @@
1515
# the array. The extension is already found. Any number of sources could be
1616
# listed here.
1717

18-
set(SRCS R3BRoluMapped2Cal.cxx R3BRoluMapped2CalPar.cxx R3BRoluCal2Hit.cxx R3BRoluOnlineSpectra.cxx)
18+
set(SRCS
19+
R3BRoluMapped2Cal.cxx
20+
R3BRoluMapped2CalPar.cxx
21+
R3BRoluCal2Hit.cxx
22+
R3BRoluOnlineSpectra.cxx)
1923

20-
set(HEADERS R3BRoluMapped2Cal.h R3BRoluMapped2CalPar.h R3BRoluCal2Hit.h R3BRoluOnlineSpectra.h)
24+
set(HEADERS
25+
R3BRoluMapped2Cal.h
26+
R3BRoluMapped2CalPar.h
27+
R3BRoluCal2Hit.h
28+
R3BRoluOnlineSpectra.h)
2129

2230
add_library_with_dictionary(
2331
LIBNAME

rolu/R3BRoluMapped2Cal.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,4 +344,4 @@ void R3BRoluMapped2Cal::FinishEvent()
344344
}
345345
}
346346

347-
ClassImp(R3BRoluMapped2Cal);
347+
ClassImp(R3BRoluMapped2Cal)

0 commit comments

Comments
 (0)