Skip to content

Commit

Permalink
Merge branch 'AliceO2Group:dev' into new-detector4
Browse files Browse the repository at this point in the history
  • Loading branch information
pkurash authored Dec 16, 2024
2 parents 76eaa66 + a14603d commit 49b8490
Show file tree
Hide file tree
Showing 45 changed files with 1,099 additions and 118 deletions.
3 changes: 2 additions & 1 deletion DataFormats/Detectors/ZDC/include/DataFormatsZDC/BCData.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ struct BCData {
o2::dataformats::RangeRefComp<6> ref;
o2::InteractionRecord ir;
std::array<uint16_t, NModules> moduleTriggers{};
// N.B. channels and triggers have geographical addressing (0x1 << (NChPerModule * im + ic)
uint32_t channels = 0; // pattern of channels it refers to
uint32_t triggers = 0; // pattern of triggered channels (not necessarily stored) in this BC
uint32_t triggers = 0; // pattern of triggered channels (not necessarily stored) in this BC (i.e. with Hit bit on)
uint8_t ext_triggers = 0; // pattern of ALICE triggers

BCData() = default;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class MatchInfoTOF
using GTrackID = o2::dataformats::GlobalTrackID;

public:
MatchInfoTOF(int idLocal, int idxTOFCl, double time, float chi2, o2::track::TrackLTIntegral trkIntLT, GTrackID idxTrack, float dt = 0, float z = 0, float dx = 0, float dz = 0) : mIdLocal(idLocal), mIdxTOFCl(idxTOFCl), mSignal(time), mChi2(chi2), mIntLT(trkIntLT), mIdxTrack(idxTrack), mDeltaT(dt), mZatTOF(z), mDXatTOF(dx), mDZatTOF(dz){};
MatchInfoTOF(int idLocal, int idxTOFCl, double time, float chi2, o2::track::TrackLTIntegral trkIntLT, GTrackID idxTrack, float dt = 0, float z = 0, float dx = 0, float dz = 0, float dy = 0) : mIdLocal(idLocal), mIdxTOFCl(idxTOFCl), mSignal(time), mChi2(chi2), mIntLT(trkIntLT), mIdxTrack(idxTrack), mDeltaT(dt), mZatTOF(z), mDXatTOF(dx), mDZatTOF(dz), mDYatTOF(dy){};
MatchInfoTOF() = default;
void setIdxTOFCl(int index) { mIdxTOFCl = index; }
void setIdxTrack(GTrackID index) { mIdxTrack = index; }
Expand Down Expand Up @@ -59,6 +59,8 @@ class MatchInfoTOF
float getDZatTOF() const { return mDZatTOF; }
void setDXatTOF(float val) { mDXatTOF = val; }
float getDXatTOF() const { return mDXatTOF; }
void setDYatTOF(float val) { mDYatTOF = val; }
float getDYatTOF() const { return mDYatTOF; }
void setSignal(double time) { mSignal = time; }
double getSignal() const { return mSignal; }

Expand All @@ -78,6 +80,7 @@ class MatchInfoTOF
float mZatTOF = 0.0; ///< Z position at TOF
float mDXatTOF = 0.0; ///< DX position at TOF
float mDZatTOF = 0.0; ///< DZ position at TOF
float mDYatTOF = 0.0; ///< DY 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class MatchInfoTOFReco : public MatchInfoTOF
ITSTPCTRD,
SIZEALL };

MatchInfoTOFReco(int idLocal, int idxTOFCl, double time, float chi2, o2::track::TrackLTIntegral trkIntLT, GTrackID idxTrack, TrackType trkType, float dt = 0, float z = 0, float dx = 0, float dz = 0) : MatchInfoTOF(idLocal, idxTOFCl, time, chi2, trkIntLT, idxTrack, dt, z, dx, dz), mTrackType(trkType){};
MatchInfoTOFReco(int idLocal, int idxTOFCl, double time, float chi2, o2::track::TrackLTIntegral trkIntLT, GTrackID idxTrack, TrackType trkType, float dt = 0, float z = 0, float dx = 0, float dz = 0, float dy = 0) : MatchInfoTOF(idLocal, idxTOFCl, time, chi2, trkIntLT, idxTrack, dt, z, dx, dz, dy), mTrackType(trkType){};

MatchInfoTOFReco() = default;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ class TrackParametrizationWithError : public TrackParametrization<value_T>

template <typename T>
GPUd() value_t getPredictedChi2(const BaseCluster<T>& p) const;
template <typename T>
GPUd() value_t getPredictedChi2Quiet(const BaseCluster<T>& p) const;

GPUd() void buildCombinedCovMatrix(const TrackParametrizationWithError& rhs, MatrixDSym5& cov) const;
GPUd() value_t getPredictedChi2(const TrackParametrizationWithError& rhs, MatrixDSym5& covToSet) const;
Expand Down Expand Up @@ -315,6 +317,16 @@ GPUdi() auto TrackParametrizationWithError<value_T>::getPredictedChi2(const Base
return getPredictedChi2(pyz, cov);
}

//__________________________________________________________________________
template <typename value_T>
template <typename T>
GPUdi() auto TrackParametrizationWithError<value_T>::getPredictedChi2Quiet(const BaseCluster<T>& p) const -> value_t
{
const dim2_t pyz = {value_T(p.getY()), value_T(p.getZ())};
const dim3_t cov = {value_T(p.getSigmaY2()), value_T(p.getSigmaYZ()), value_T(p.getSigmaZ2())};
return getPredictedChi2Quiet(pyz, cov);
}

//______________________________________________
template <typename value_T>
GPUdi() auto TrackParametrizationWithError<value_T>::getPredictedChi2(const dim2_t& p, const dim3_t& cov) const -> value_t
Expand Down
2 changes: 1 addition & 1 deletion Detectors/DCS/testWorkflow/src/dcs-config-proxy.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
using namespace o2::framework;
using DetID = o2::detectors::DetID;

std::array<o2::header::DataOrigin, 1> exceptionsDetID{"GRP"};
std::array<o2::header::DataOrigin, 2> exceptionsDetID{"GRP", "AGD"};

void sendAnswer(const std::string& what, const std::string& ack_chan, fair::mq::Device& device)
{
Expand Down
2 changes: 2 additions & 0 deletions Detectors/GlobalTracking/include/GlobalTracking/MatchTOF.h
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ class MatchTOF
void BestMatchesHP(std::vector<o2::dataformats::MatchInfoTOFReco>& matchedTracksPairs, std::vector<o2::dataformats::MatchInfoTOF>* matchedTracks, std::vector<int>* matchedTracksIndex, int* matchedClustersIndex, const gsl::span<const o2::ft0::RecPoints>& FITRecPoints, const std::vector<Cluster>& TOFClusWork, std::vector<o2::dataformats::CalibInfoTOF>& CalibInfoTOF, unsigned long Timestamp, bool MCTruthON, const o2::dataformats::MCTruthContainer<o2::MCCompLabel>* TOFClusLabels, const std::vector<o2::MCCompLabel>* TracksLblWork, std::vector<o2::MCCompLabel>* OutTOFLabels);
bool propagateToRefX(o2::track::TrackParCov& trc, float xRef /*in cm*/, float stepInCm /*in cm*/, o2::track::TrackLTIntegral& intLT);
bool propagateToRefXWithoutCov(const o2::track::TrackParCov& trc, float xRef /*in cm*/, float stepInCm /*in cm*/, float bz);
bool propagateToRefXWithoutCov(const o2::track::TrackParCov& trc, float xRef /*in cm*/, float stepInCm /*in cm*/, float bz, float pos[3]);
void updateTL(o2::track::TrackLTIntegral& intLT, float deltal);

void updateTimeDependentParams();

Expand Down
Loading

0 comments on commit 49b8490

Please sign in to comment.