Skip to content

Commit 266814a

Browse files
committed
restore original constructor
[skip ci]
1 parent e7fca62 commit 266814a

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

StRoot/StEvent/StEpdHit.cxx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,18 @@ StEpdHit::StEpdHit() : StEpdHit(0, 0, 0, 0, 0, 0, false, 0.0, false, 0, 0, 0.0)
2929
/* no-op */
3030
}
3131

32+
StEpdHit::StEpdHit(int position, int tile,
33+
short EW, int ADC, int TAC,
34+
int TDC, bool hasTAC, float nMIP,
35+
bool statusIsGood, int truthId) :
36+
mId( (100*position + tile)*EW ),
37+
mQTdata( (ADC & 0x0FFF) | (TAC & 0x0FFF) << 12 | (TDC & 0x001F) << 24 | hasTAC << 29 | statusIsGood << 30 ),
38+
mnMIP(nMIP),
39+
mTruthId(truthId)
40+
{
41+
/* no-op */
42+
}
43+
3244
// March 2023:
3345
// * add arguments for DEPdata and nMIP_DEP
3446
StEpdHit::StEpdHit(int position, int tile,
@@ -45,5 +57,3 @@ StEpdHit::StEpdHit(int position, int tile,
4557
{
4658
/* no-op */
4759
}
48-
49-

StRoot/StEvent/StEpdHit.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ class StEpdHit : public StObject
6565
/// \param nMIP gain-calibrated signal from QT; energy loss in terms of MPV of Landau for a MIP
6666
/// \param statusIsGood good status, according to database
6767
/// \param truthId particle id of particle most responsible for energy loss (simulation)
68+
StEpdHit(int position, int tile, short EW, int ADC, int TAC, int TDC, bool hasTAC, float nMIP_QT, bool statusIsGood, int truthId);
6869
/// \param DEPdata raw DEP data, in summed ADCs - added May 2023
6970
/// \param nMIP_DEP gain-calibrated signal from DEP; energy loss in terms of MPV of Landau for a MIP - added May 2023
7071
StEpdHit(int position, int tile, short EW, int ADC, int TAC, int TDC, bool hasTAC, float nMIP_QT, bool statusIsGood, int truthId, unsigned short DEPdata, float nMIP_DEP);

0 commit comments

Comments
 (0)