Skip to content

Commit

Permalink
restore original constructor
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
plexoos committed Mar 17, 2023
1 parent e7fca62 commit 266814a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
14 changes: 12 additions & 2 deletions StRoot/StEvent/StEpdHit.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ StEpdHit::StEpdHit() : StEpdHit(0, 0, 0, 0, 0, 0, false, 0.0, false, 0, 0, 0.0)
/* no-op */
}

StEpdHit::StEpdHit(int position, int tile,
short EW, int ADC, int TAC,
int TDC, bool hasTAC, float nMIP,
bool statusIsGood, int truthId) :
mId( (100*position + tile)*EW ),
mQTdata( (ADC & 0x0FFF) | (TAC & 0x0FFF) << 12 | (TDC & 0x001F) << 24 | hasTAC << 29 | statusIsGood << 30 ),
mnMIP(nMIP),
mTruthId(truthId)
{
/* no-op */
}

// March 2023:
// * add arguments for DEPdata and nMIP_DEP
StEpdHit::StEpdHit(int position, int tile,
Expand All @@ -45,5 +57,3 @@ StEpdHit::StEpdHit(int position, int tile,
{
/* no-op */
}


1 change: 1 addition & 0 deletions StRoot/StEvent/StEpdHit.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class StEpdHit : public StObject
/// \param nMIP gain-calibrated signal from QT; energy loss in terms of MPV of Landau for a MIP
/// \param statusIsGood good status, according to database
/// \param truthId particle id of particle most responsible for energy loss (simulation)
StEpdHit(int position, int tile, short EW, int ADC, int TAC, int TDC, bool hasTAC, float nMIP_QT, bool statusIsGood, int truthId);
/// \param DEPdata raw DEP data, in summed ADCs - added May 2023
/// \param nMIP_DEP gain-calibrated signal from DEP; energy loss in terms of MPV of Landau for a MIP - added May 2023
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);
Expand Down

0 comments on commit 266814a

Please sign in to comment.