Skip to content

Commit

Permalink
minor white space adjustments
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
plexoos committed Mar 17, 2023
1 parent 8f88112 commit cac5cea
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions StRoot/StEvent/StEpdHit.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ StEpdHit::StEpdHit() : StEpdHit(0, 0, 0, 0, 0, 0, false, 0.0, false, 0, 0, 0.0)
// * add arguments for DEPdata and nMIP_DEP
StEpdHit::StEpdHit(int position, int tile,
short EW, int ADC, int TAC,
int TDC, bool hasTAC, float nMIP,
int TDC, bool hasTAC, float nMIP_QT,
bool statusIsGood, int truthId,
unsigned short DEPdata, float nMIP_DEP) :
mId( (100*position + tile)*EW ),
mQTdata( (ADC & 0x0FFF) | (TAC & 0x0FFF) << 12 | (TDC & 0x001F) << 24 | hasTAC << 29 | statusIsGood << 30 ),
mnMIP(nMIP),
mnMIP(nMIP_QT),
mTruthId(truthId),
mDEPdata(DEPdata),
mnMIP_DEP(nMIP_DEP)
Expand Down
28 changes: 14 additions & 14 deletions StRoot/StEvent/StEpdHit.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,13 @@ class StEpdHit : public StObject
ClassDef(StEpdHit, 2)
};

inline int StEpdHit::qtData() const {return mQTdata;}
inline float StEpdHit::nMIP() const {return (this->qtDataAvailable())?mnMIP:mnMIP_DEP;} // March 2023
inline void StEpdHit::setQTdata(int packedData) {mQTdata=packedData;}
inline void StEpdHit::setnMIP(float nMIP) {mnMIP = nMIP;}
inline void StEpdHit::setIdTruth(int id) {mTruthId = id;}
inline int StEpdHit::idTruth() const {return mTruthId;}
inline short StEpdHit::side() const { return mId < 0 ? -1 : +1;}
inline int StEpdHit::qtData() const {return mQTdata; }
inline float StEpdHit::nMIP() const { return qtDataAvailable() ? mnMIP : mnMIP_DEP; }
inline void StEpdHit::setQTdata(int packedData) { mQTdata = packedData; }
inline void StEpdHit::setnMIP(float nMIP) { mnMIP = nMIP; }
inline void StEpdHit::setIdTruth(int id) { mTruthId = id; }
inline int StEpdHit::idTruth() const { return mTruthId; }
inline short StEpdHit::side() const { return mId < 0 ? -1 : +1; }
inline short StEpdHit::id() const { return mId; }
inline int StEpdHit::position() const { return std::abs(mId / 100); }
inline int StEpdHit::tile() const { return std::abs(mId % 100); }
Expand All @@ -189,11 +189,11 @@ inline int StEpdHit::tac() const { return (mQTdata >> 12) & 0x0FFF; }
inline int StEpdHit::tdc() const { return (mQTdata >> 24) & 0x001F; }
inline bool StEpdHit::hasTac() const { return (mQTdata >> 29) & 0x1; }
inline bool StEpdHit::isGood() const { return (mQTdata >> 30) & 0x1; }
inline void StEpdHit::setDEPdata(unsigned short DEPdata) {mDEPdata=DEPdata;}
inline void StEpdHit::setnMIP_DEP(float nMIP_DEP) {mnMIP_DEP=nMIP_DEP;}
inline int StEpdHit::depData() const {return mDEPdata;}
inline float StEpdHit::nMIP_DEP() const {return mnMIP_DEP;}
inline bool StEpdHit::qtDataAvailable() const {return (this->adc()!=0);}
inline float StEpdHit::nMIP_QT() const {return mnMIP;}
inline void StEpdHit::setnMIP_QT(float nMIP_QT){mnMIP=nMIP_QT;}
inline void StEpdHit::setDEPdata(unsigned short DEPdata) { mDEPdata = DEPdata; }
inline void StEpdHit::setnMIP_DEP(float nMIP_DEP) { mnMIP_DEP = nMIP_DEP; }
inline int StEpdHit::depData() const { return mDEPdata; }
inline float StEpdHit::nMIP_DEP() const { return mnMIP_DEP; }
inline bool StEpdHit::qtDataAvailable() const { return adc() != 0; }
inline float StEpdHit::nMIP_QT() const { return mnMIP; }
inline void StEpdHit::setnMIP_QT(float nMIP_QT){ mnMIP = nMIP_QT; }
#endif

0 comments on commit cac5cea

Please sign in to comment.