Skip to content

Commit bc4dfc9

Browse files
author
miranov25
committed
O2-4592 - adding deltaT and vertex and TPC times in double precision
1 parent 8eed4c0 commit bc4dfc9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Detectors/TPC/workflow/src/TPCTimeSeriesSpec.cxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -206,14 +206,14 @@ class TPCTimeSeries : public Task
206206
indicesITSTPC[tracksITSTPC[i].getRefTPC().getIndex()] = {i, idxVtx};
207207
}
208208

209-
std::vector<std::tuple<int, float, float,o2::track::TrackLTIntegral,float,float>> idxTPCTrackToTOFCluster; // store for each tpc track index the index to the TOF cluster
209+
std::vector<std::tuple<int, float, float,o2::track::TrackLTIntegral,double,float>> idxTPCTrackToTOFCluster; // store for each tpc track index the index to the TOF cluster
210210

211211
// get matches to TOF in case skimmed data is produced
212212
if (mUnbinnedWriter) {
213213
// getLTIntegralOut(), ///< L,TOF integral calculated during the propagation
214214
// getSignal() mSignal = 0.0; ///< TOF time in ps
215215
o2::track::TrackLTIntegral defLT;
216-
idxTPCTrackToTOFCluster = std::vector<std::tuple<int, float, float,o2::track::TrackLTIntegral,float,float>>(tracksTPC.size(), {-1, -999, -999,defLT,0,0});
216+
idxTPCTrackToTOFCluster = std::vector<std::tuple<int, float, float,o2::track::TrackLTIntegral,double,float>>(tracksTPC.size(), {-1, -999, -999,defLT,0,0});
217217
const std::vector<gsl::span<const o2::dataformats::MatchInfoTOF>> tofMatches{recoData.getTPCTOFMatches(), recoData.getTPCTRDTOFMatches(), recoData.getITSTPCTOFMatches(), recoData.getITSTPCTRDTOFMatches()};
218218

219219
// loop over ITS-TPC-TRD-TOF and ITS-TPC-TOF tracks an store for each ITS-TPC track the TOF track index
@@ -222,7 +222,7 @@ class TPCTimeSeries : public Task
222222
auto refTPC = recoData.getTPCContributorGID(tpctofmatch.getTrackRef());
223223
if (refTPC.isIndexSet()) {
224224
o2::track::TrackLTIntegral ltIntegral=tpctofmatch.getLTIntegralOut();
225-
float signal=tpctofmatch.getSignal();
225+
double signal=tpctofmatch.getSignal();
226226
float deltaT=tpctofmatch.getDeltaT();
227227
idxTPCTrackToTOFCluster[refTPC] = {tpctofmatch.getIdxTOFCl(), tpctofmatch.getDXatTOF(), tpctofmatch.getDZatTOF(),ltIntegral,signal,deltaT};
228228
}
@@ -1055,7 +1055,7 @@ class TPCTimeSeries : public Task
10551055
return isGoodTrack;
10561056
}
10571057

1058-
void fillDCA(const gsl::span<const TrackTPC> tracksTPC, const gsl::span<const o2::dataformats::TrackTPCITS> tracksITSTPC, const gsl::span<const o2::dataformats::PrimaryVertex> vertices, const int iTrk, const int iThread, const std::unordered_map<unsigned int, std::array<int, 2>>& indicesITSTPC, const gsl::span<const o2::its::TrackITS> tracksITS, const std::vector<std::tuple<int, float, float,o2::track::TrackLTIntegral,float,float>>& idxTPCTrackToTOFCluster, const gsl::span<const o2::tof::Cluster> tofClusters)
1058+
void fillDCA(const gsl::span<const TrackTPC> tracksTPC, const gsl::span<const o2::dataformats::TrackTPCITS> tracksITSTPC, const gsl::span<const o2::dataformats::PrimaryVertex> vertices, const int iTrk, const int iThread, const std::unordered_map<unsigned int, std::array<int, 2>>& indicesITSTPC, const gsl::span<const o2::its::TrackITS> tracksITS, const std::vector<std::tuple<int, float, float,o2::track::TrackLTIntegral,double,float>>& idxTPCTrackToTOFCluster, const gsl::span<const o2::tof::Cluster> tofClusters)
10591059
{
10601060
const auto& trackFull = tracksTPC[iTrk];
10611061
const bool isGoodTrack = checkTrack(trackFull);
@@ -1360,8 +1360,8 @@ class TPCTimeSeries : public Task
13601360
}
13611361
}
13621362
}
1363-
float vertexTime=vertex.getTimeStamp().getTimeStamp();
1364-
float trackTime0=trackFull.getTime0();
1363+
double vertexTime=vertex.getTimeStamp().getTimeStamp();
1364+
double trackTime0=trackFull.getTime0();
13651365
*mStreamer[iThread] << "treeTimeSeries"
13661366
// DCAs
13671367
<< "triggerMask=" << triggerMask
@@ -1442,8 +1442,8 @@ class TPCTimeSeries : public Task
14421442
<< "mTOFLength=" << std::get<3>(idxTPCTrackToTOFCluster[iTrk])
14431443
<< "mTOFSignal=" << std::get<4>(idxTPCTrackToTOFCluster[iTrk])
14441444
<< "mDeltaTTOFTPC=" << std::get<5>(idxTPCTrackToTOFCluster[iTrk]) /// delta T- TPC TOF
1445-
<< "vertexTime" << vertexTime /// time stamp assigned to the vertex
1446-
<< "trackTime0" << trackTime0 /// time stamp assigned to the track
1445+
<< "vertexTime=" << vertexTime /// time stamp assigned to the vertex
1446+
<< "trackTime0=" << trackTime0 /// time stamp assigned to the track
14471447
// TPC delta param
14481448
<< "deltaTPCParamInOutTgl=" << deltaTPCParamInOutTgl
14491449
<< "deltaTPCParamInOutQPt=" << deltaTPCParamInOutQPt

0 commit comments

Comments
 (0)