Skip to content

Commit

Permalink
add trk res in TOF match chi2
Browse files Browse the repository at this point in the history
  • Loading branch information
noferini committed May 13, 2024
1 parent b04a351 commit ddf7edd
Show file tree
Hide file tree
Showing 5 changed files with 189 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ class MatchInfoTOF

int getIdLocal() const { return mIdLocal; }

float getVz() const { return mVz; }
void setVz(float val) { mVz = val; }
int getChannel() const { return mChannel; }
void setChannel(int val) { mChannel = val; }

private:
int mIdLocal; // track id in sector of the pair track-TOFcluster
float mChi2; // chi2 of the pair track-TOFcluster
Expand All @@ -69,8 +74,10 @@ class MatchInfoTOF
float mDZatTOF = 0.0; ///< DZ position at TOF
float mDeltaT = 0.0; ///< tTOF - TPC (microsec)
double mSignal = 0.0; ///< TOF time in ps
float mVz = 0.0; ///< Vz from TOF match
int mChannel = -1; ///< channel

ClassDefNV(MatchInfoTOF, 5);
ClassDefNV(MatchInfoTOF, 6);
};
} // namespace dataformats
} // namespace o2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,24 @@ class MatchInfoTOFReco : public MatchInfoTOF
float pt() const { return mPt; }
void setPt(float pt) { mPt = pt; }

void setResX(float val) { mResX = val; }
void setResZ(float val) { mResZ = val; }
void setResT(float val) { mResT = val; }
float getResX() const { return mResX; }
float getResZ() const { return mResZ; }
float getResT() const { return mResT; }

void setTrackType(TrackType value) { mTrackType = value; }
TrackType getTrackType() const { return mTrackType; }

private:
TrackType mTrackType; ///< track type (TPC, ITSTPC, TPCTRD, ITSTPCTRD)
bool mFakeMC = false;
float mPt = 0;
ClassDefNV(MatchInfoTOFReco, 4);
float mResX = 1;
float mResZ = 1;
float mResT = 1;
ClassDefNV(MatchInfoTOFReco, 5);
};
} // namespace dataformats
} // namespace o2
Expand Down
3 changes: 2 additions & 1 deletion Detectors/GlobalTracking/include/GlobalTracking/MatchTOF.h
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ class MatchTOF
///< per sector indices of track entry in mTracksWork
std::array<std::vector<int>, o2::constants::math::NSectors> mTracksSectIndexCache[trkType::SIZE];
std::array<std::vector<int>, o2::constants::math::NSectors> mTracksSeed[trkType::SIZE];
std::vector<float> mVZtpcOnly[o2::constants::math::NSectors];

std::vector<float> mExtraTPCFwdTime[o2::constants::math::NSectors]; ///< track extra params for TPC tracks: Fws Max time
std::vector<Cluster> mTOFClusWork; ///< track params prepared for matching
Expand Down Expand Up @@ -347,7 +348,7 @@ class MatchTOF
TStopwatch mTimerMatchITSTPC;
TStopwatch mTimerMatchTPC;
TStopwatch mTimerDBG;
ClassDefNV(MatchTOF, 5);
ClassDefNV(MatchTOF, 6);
};
} // namespace globaltracking
} // namespace o2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ namespace globaltracking
{

struct MatchTOFParams : public o2::conf::ConfigurableParamHelper<MatchTOFParams> {
float calibMaxChi2 = 3.0;
float nsigmaTimeCut = 4.; // number of sigmas for non-TPC track time resolution to consider
float calibMaxChi2 = 3.0; // max value of Chi2 allowed for using matched tracks in calibration
float nsigmaTimeCut = 4.; // number of sigmas for non-TPC track time resolution to consider
float maxResX = 1.; // max value of track resolution (X dir) used in TOF matching (truncation to that in case it is larger)
float maxResZ = 1.; // max value of track resolution (Z dir) used in TOF matching (truncation to that in case it is larger)
float maxChi2 = 10.; // max value of Chi2 accepted for matching to TOF
bool applyPIDcutTPConly = true; // apply PID cut on TPC only tracks

O2ParamDef(MatchTOFParams, "MatchTOF");
};
Expand Down
Loading

0 comments on commit ddf7edd

Please sign in to comment.