Skip to content

Commit bad38c4

Browse files
authored
Tools/KFparticle Add Lc task (AliceO2Group#2428)
* Add Lc task with KF * Change data type to fix Megalinter error
1 parent b52c7b9 commit bad38c4

7 files changed

Lines changed: 1200 additions & 539 deletions

File tree

Tools/KFparticle/CMakeLists.txt

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Copyright 2019-2020 CERN and copyright holders of ALICE O2.
32
# See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
43
# All rights not expressly granted are reserved.
@@ -11,11 +10,16 @@
1110
# or submit itself to any jurisdiction.
1211

1312
o2physics_add_dpl_workflow(qa-kfparticle
14-
SOURCES qaKFParticle.cxx
15-
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2::DCAFitter KFParticle::KFParticle
16-
COMPONENT_NAME Analysis)
13+
SOURCES qaKFParticle.cxx
14+
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2::DCAFitter KFParticle::KFParticle
15+
COMPONENT_NAME Analysis)
16+
17+
o2physics_add_dpl_workflow(qa-kfparticle-lc
18+
SOURCES qaKFParticleLc.cxx
19+
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2::DCAFitter KFParticle::KFParticle
20+
COMPONENT_NAME Analysis)
1721

1822
o2physics_add_dpl_workflow(qa-kfeventtrack
19-
SOURCES qaKFEventTrack.cxx
20-
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2::DCAFitter KFParticle::KFParticle
21-
COMPONENT_NAME Analysis)
23+
SOURCES qaKFEventTrack.cxx
24+
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2::DCAFitter KFParticle::KFParticle
25+
COMPONENT_NAME Analysis)

Tools/KFparticle/KFUtilities.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ KFPVertex createKFPVertexFromCollision(const T& collision)
4343
kfpVertex.SetXYZ(collision.posX(), collision.posY(), collision.posZ());
4444
kfpVertex.SetCovarianceMatrix(collision.covXX(), collision.covXY(), collision.covYY(), collision.covXZ(), collision.covYZ(), collision.covZZ());
4545
kfpVertex.SetChi2(collision.chi2());
46-
kfpVertex.SetNDF(2 * collision.multNTracksPV() - 3);
47-
kfpVertex.SetNContributors(collision.multNTracksPV());
46+
kfpVertex.SetNDF(2 * collision.numContrib() - 3);
47+
kfpVertex.SetNContributors(collision.numContrib());
4848
return kfpVertex;
4949
}
5050

Tools/KFparticle/qaKFEventTrack.cxx

Lines changed: 169 additions & 151 deletions
Large diffs are not rendered by default.

Tools/KFparticle/qaKFEventTrack.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ DECLARE_SOA_COLUMN(ETA, Eta, float);
4444
DECLARE_SOA_COLUMN(PHI, Phi, float);
4545
DECLARE_SOA_COLUMN(TPCSIGNAL, Tpcsignal, float);
4646
DECLARE_SOA_COLUMN(RUNNUMBER, Runnumber, float);
47-
DECLARE_SOA_COLUMN(TIMECOLL, TimeColl, double);
47+
DECLARE_SOA_COLUMN(TIMECOLL, TimeColl, uint64_t);
4848
DECLARE_SOA_COLUMN(TIMESTAMP, TimeStamp, double);
4949
DECLARE_SOA_COLUMN(TIMEDIFF, TimeDiff, double);
50+
DECLARE_SOA_COLUMN(BCID, BCid, int);
51+
DECLARE_SOA_COLUMN(TFID, Tfid, int);
5052
DECLARE_SOA_COLUMN(XPV, Xpv, float);
5153
DECLARE_SOA_COLUMN(YPV, Ypv, float);
5254
DECLARE_SOA_COLUMN(ZPV, Zpv, float);
@@ -94,7 +96,9 @@ DECLARE_SOA_TABLE(TreeCollisions, "AOD", "TREECOLLISIONS",
9496
kfeventtrack::RUNNUMBER,
9597
kfeventtrack::TIMECOLL,
9698
kfeventtrack::TIMESTAMP,
97-
kfeventtrack::TIMEDIFF);
99+
kfeventtrack::TIMEDIFF,
100+
kfeventtrack::BCID,
101+
kfeventtrack::TFID);
98102
} // namespace o2::aod
99103

100104
#endif // TOOLS_KFPARTICLE_QAKFEVENTTRACK_H_

Tools/KFparticle/qaKFParticle.cxx

Lines changed: 274 additions & 377 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)