Skip to content

Commit c2032dc

Browse files
author
Belle II Software
committed
Merge branch 'feature/improve-memory-layout-of-arich-dataobjects' into 'main'
Improve memory layout of ARICH dataobjects. See merge request belle2/software/basf2!4004
2 parents 9960538 + a4c59c8 commit c2032dc

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

arich/dataobjects/include/ARICHThParam.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Belle2 {
2424
public:
2525

2626
//! Default constructor for ROOT IO.
27-
ARICHThParam() : m_index(-1), m_dth(-1), m_th0(0), m_nth(0)
27+
ARICHThParam()
2828
{
2929
/*! does nothing */
3030
}
@@ -87,11 +87,11 @@ namespace Belle2 {
8787

8888
private:
8989

90-
int m_index; /**< index */
91-
double m_dth; /**< dth */
92-
double m_th0; /**< th0 */
93-
int m_nth; /**< nth */
94-
ClassDef(ARICHThParam, 1); /**< the class title */
90+
double m_dth = -1; /**< dth */
91+
double m_th0 = 0; /**< th0 */
92+
int m_index = -1; /**< index */
93+
int m_nth = 0; /**< nth */
94+
ClassDef(ARICHThParam, 2); /**< the class title */
9595

9696
};
9797

arich/dataobjects/include/ARICHTrack.h

+4-5
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ namespace Belle2 {
189189

190190
private:
191191

192+
std::vector<ARICHPhoton> m_photons; /**< collection of ARICHPhotons associated with the track */
193+
192194
float m_x = 0; /**< Reconstructed position. */
193195
float m_y = 0; /**< Reconstructed position. */
194196
float m_z = 0; /**< Reconstructed position. */
@@ -197,14 +199,11 @@ namespace Belle2 {
197199
float m_dz = 0; /**< Reconstructed direction. */
198200
float m_momentum; /**< Reconstructed momentum. */
199201

200-
bool m_hitWin = 0; /**< true if track hits HAPD window */
201202
float m_winX = 0; /**< x position of track extrapolated to HAPD plane */
202203
float m_winY = 0; /**< y position of track extrapolated to HAPD plane */
204+
bool m_hitWin = 0; /**< true if track hits HAPD window */
203205

204-
205-
std::vector<ARICHPhoton> m_photons; /**< collection of ARICHPhotons associated with the track */
206-
207-
ClassDef(ARICHTrack, 2); /**< the class title */
206+
ClassDef(ARICHTrack, 3); /**< the class title */
208207

209208
};
210209
} // namespace Belle2

arich/dataobjects/include/linkdef.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
#pragma link C++ class Belle2::ARICHAeroHit+; // checksum=0x26572235, version=1
1010
#pragma link C++ class Belle2::ARICHDigit+; // checksum=0x3f0da20d, version=3
1111
#pragma link C++ class Belle2::ARICHLikelihood+; // checksum=0x1b86e8b5, version=3
12-
#pragma link C++ class Belle2::ARICHTrack+; // checksum=0xe97461b5, version=2
12+
#pragma link C++ class Belle2::ARICHTrack+; // checksum=0xa0de41fd, version=3
1313
#pragma link C++ class Belle2::ARICHHit+; // checksum=0xbd5a7d82, version=1
1414
#pragma link C++ class Belle2::ARICHPhoton+; // checksum=0xf6217c88, version=5
1515
#pragma link C++ class Belle2::ARICHRawDigit+; // checksum=0xbb397841, version=2
16-
#pragma link C++ class Belle2::ARICHThParam+; // checksum=0x3db70df8, version=1
16+
#pragma link C++ class Belle2::ARICHThParam+; // checksum=0x8f5562d0, version=2
1717
#pragma link C++ class Belle2::ARICHInfo+; // checksum=0x862f1d7c, version=4
1818

1919
#endif

0 commit comments

Comments
 (0)