Skip to content

Commit 4021e69

Browse files
committed
delegate constructor
1 parent 266814a commit 4021e69

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

StRoot/StEvent/StEpdHit.cxx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,15 @@
2424

2525
ClassImp(StEpdHit);
2626

27-
StEpdHit::StEpdHit() : StEpdHit(0, 0, 0, 0, 0, 0, false, 0.0, false, 0, 0, 0.0)
27+
StEpdHit::StEpdHit() : StEpdHit(0, 0, 0, 0, 0, 0, false, 0.0, false, 0)
2828
{
2929
/* no-op */
3030
}
3131

3232
StEpdHit::StEpdHit(int position, int tile,
3333
short EW, int ADC, int TAC,
3434
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)
35+
bool statusIsGood, int truthId) : StEpdHit(position, tile, EW, ADC, TAC, TDC, hasTAC, nMIP, statusIsGood, truthId, 0, 0)
4036
{
4137
/* no-op */
4238
}

StRoot/StEvent/StEpdHit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +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);
68+
StEpdHit(int position, int tile, short EW, int ADC, int TAC, int TDC, bool hasTAC, float nMIP, bool statusIsGood, int truthId);
6969
/// \param DEPdata raw DEP data, in summed ADCs - added May 2023
7070
/// \param nMIP_DEP gain-calibrated signal from DEP; energy loss in terms of MPV of Landau for a MIP - added May 2023
7171
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)