Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ struct TrackMCStudyConfig : o2::conf::ConfigurableParamHelper<TrackMCStudyConfig
float rejectClustersResStat = 0.1;
float maxTPCRefExtrap = 2; // max dX to extrapolate the track ref when extrapolating track true posions
int minITSClForITSoutput = 7; // create special ITS otput only for long enough tracks
int decayPDG[5] = {310, 3122, 411, 421, -1}; // decays to study, must end by -1
int decayPDG[10] = {310, 3122, 411, 421, 3312, 3334, -1}; // decays to study, must end by -1. A neutral prong (e.g. Lambda of Xi/Omega) is allowed only if its decay is also in the list
O2ParamDef(TrackMCStudyConfig, "trmcconf");
};
} // namespace o2::trackstudy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,20 @@ struct TrackPairInfo {
};

struct TrackFamily { // set of tracks related to the same MC label
// recTracks are sorted such that the tracks of the same type are contiguous: first the tracks with both ITS and TPC contributions,
// then standalone ITS tracks, then standalone TPC tracks, then the rest (e.g. TPC-TRD, TPC-TOF...).
// For every stored global track its standalone ITS and TPC contributors (if any) are stored too.
MCTrackInfo mcTrackInfo{};
std::vector<RecTrack> recTracks{};
o2::track::TrackParCov trackITSProp{};
o2::track::TrackParCov trackTPCProp{};
int8_t entITS = -1;
int8_t entTPC = -1;
int8_t entITSTPC = -1;
int8_t entITSFound = -1; // ITS track for this MC track, regardless if it was matched to TPC of another track
int8_t entITS = -1; // 1st entry of standalone ITS tracks
int8_t entTPC = -1; // 1st entry of standalone TPC tracks
int8_t entITSTPC = -1; // 1st entry of tracks with both ITS and TPC contributions
int8_t entITSFound = -1; // standalone ITS track for this MC track, regardless if it was matched to TPC of another track
int8_t nEntITS = 0; // number of standalone ITS tracks
int8_t nEntTPC = 0; // number of standalone TPC tracks
int8_t nEntITSTPC = 0; // number of tracks with both ITS and TPC contributions
int8_t flags = 0;
float tpcT0 = -999.;

Expand All @@ -158,9 +164,9 @@ struct TrackFamily { // set of tracks related to the same MC label
}
return false;
}
const RecTrack& getTrackWithITS() const { return entITS < 0 ? dummyRecTrack : recTracks[entITS]; }
const RecTrack& getTrackWithTPC() const { return entTPC < 0 ? dummyRecTrack : recTracks[entTPC]; }
const RecTrack& getTrackWithITSTPC() const { return entITSTPC < 0 ? dummyRecTrack : recTracks[entITSTPC]; }
const RecTrack& getTrackWithITS(int id = 0) const { return (id >= 0 && id < nEntITS) ? recTracks[entITS + id] : dummyRecTrack; }
const RecTrack& getTrackWithTPC(int id = 0) const { return (id >= 0 && id < nEntTPC) ? recTracks[entTPC + id] : dummyRecTrack; }
const RecTrack& getTrackWithITSTPC(int id = 0) const { return (id >= 0 && id < nEntITSTPC) ? recTracks[entITSTPC + id] : dummyRecTrack; }
const RecTrack& getTrackWithITSFound() const { return entITSFound < 0 ? dummyRecTrack : recTracks[entITSFound]; }
const RecTrack& getLongestTPCTrack() const
{
Expand All @@ -171,7 +177,7 @@ struct TrackFamily { // set of tracks related to the same MC label
int getNTPCClones() const;
static RecTrack dummyRecTrack; //

ClassDefNV(TrackFamily, 1);
ClassDefNV(TrackFamily, 2);
};

struct ClResTPCCont {
Expand Down
Loading