Skip to content

Commit

Permalink
Add LumiIDC data member to TPCFastTransform
Browse files Browse the repository at this point in the history
  • Loading branch information
shahor02 committed Jul 18, 2024
1 parent 4a2eae2 commit 73187e4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion GPU/TPCFastTransformation/TPCFastTransform.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
using namespace GPUCA_NAMESPACE::gpu;

TPCFastTransform::TPCFastTransform()
: FlatObject(), mTimeStamp(0), mCorrection(), mApplyCorrection(1), mT0(0.f), mVdrift(0.f), mVdriftCorrY(0.f), mLdriftCorr(0.f), mTOFcorr(0.f), mPrimVtxZ(0.f), mLumi(0.f), mLumiError(0.f), mLumiScaleFactor(1.0f)
: FlatObject(), mTimeStamp(0), mCorrection(), mApplyCorrection(1), mT0(0.f), mVdrift(0.f), mVdriftCorrY(0.f), mLdriftCorr(0.f), mTOFcorr(0.f), mPrimVtxZ(0.f), mLumiIDC(0.f), mLumi(0.f), mLumiError(0.f), mLumiScaleFactor(1.0f)
{
// Default Constructor: creates an empty uninitialized object
}
Expand All @@ -58,6 +58,7 @@ void TPCFastTransform::cloneFromObject(const TPCFastTransform& obj, char* newFla
mLdriftCorr = obj.mLdriftCorr;
mTOFcorr = obj.mTOFcorr;
mPrimVtxZ = obj.mPrimVtxZ;
mLumiIDC = obj.mLumiIDC;
mLumi = obj.mLumi;
mLumiError = obj.mLumiError;
mLumiScaleFactor = obj.mLumiScaleFactor;
Expand Down Expand Up @@ -108,6 +109,7 @@ void TPCFastTransform::startConstruction(const TPCFastSpaceChargeCorrection& cor
mLdriftCorr = 0.f;
mTOFcorr = 0.f;
mPrimVtxZ = 0.f;
mLumiIDC = 0.f;
mLumi = 0.f;
mLumiError = 0.f;
mLumiScaleFactor = 1.f;
Expand Down Expand Up @@ -158,6 +160,7 @@ void TPCFastTransform::print() const
LOG(info) << "mLdriftCorr = " << mLdriftCorr;
LOG(info) << "mTOFcorr = " << mTOFcorr;
LOG(info) << "mPrimVtxZ = " << mPrimVtxZ;
LOG(info) << "mLumiIDC = " << mLumiIDC;
LOG(info) << "mLumi = " << mLumi;
LOG(info) << "mLumiError = " << mLumiError;
LOG(info) << "mLumiScaleFactor = " << mLumiScaleFactor;
Expand Down
7 changes: 6 additions & 1 deletion GPU/TPCFastTransformation/TPCFastTransform.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ class TPCFastTransform : public FlatObject

/// Set Lumi info
void setLumi(float l) { mLumi = l; }
void setLumiIDC(float l) { mLumiIDC = l; }
void setLumiError(float e) { mLumiError = e; }
void setLumiScaleFactor(float s) { mLumiScaleFactor = s; }

Expand Down Expand Up @@ -256,6 +257,9 @@ class TPCFastTransform : public FlatObject
/// Return map lumi
GPUd() float getLumi() const { return mLumi; }

/// Return map lumiIDC
GPUd() float getLumiIDC() const { return mLumiIDC; }

/// Return map lumi error
GPUd() float getLumiError() const { return mLumiError; }

Expand Down Expand Up @@ -335,6 +339,7 @@ class TPCFastTransform : public FlatObject

float mPrimVtxZ; ///< Z of the primary vertex, needed for the Time-Of-Flight correction

float mLumiIDC; ///< luminosity estimator in IDC units
float mLumi; ///< luminosity estimator
float mLumiError; ///< error on luminosity
float mLumiScaleFactor; ///< user correction factor for lumi (e.g. normalization, efficiency correction etc.)
Expand All @@ -345,7 +350,7 @@ class TPCFastTransform : public FlatObject
GPUd() void TransformInternal(int slice, int row, float& u, float& v, float& x, const TPCFastTransform* ref, const TPCFastTransform* ref2, float scale, float scale2, int scaleMode) const;

#ifndef GPUCA_ALIROOT_LIB
ClassDefNV(TPCFastTransform, 3);
ClassDefNV(TPCFastTransform, 4);
#endif
};

Expand Down

0 comments on commit 73187e4

Please sign in to comment.