Skip to content

Commit 0130307

Browse files
authored
Merge branch 'AliceO2Group:dev' into UpdateTRKA3
2 parents 57698aa + 6d76514 commit 0130307

File tree

13 files changed

+209
-126
lines changed

13 files changed

+209
-126
lines changed

Common/Constants/include/CommonConstants/PhysicsConstants.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ namespace o2::constants::physics
3131
/// \note Follow kCamelCase naming convention
3232
/// \link https://root.cern/doc/master/TPDGCode_8h.html
3333
enum Pdg {
34+
kEta = 221,
35+
kOmega = 223,
36+
kEtaPrime = 331,
3437
kB0 = 511,
3538
kB0Bar = -511,
3639
kBPlus = 521,
@@ -93,6 +96,9 @@ enum Pdg {
9396
};
9497

9598
/// \brief Declarations of masses for additional particles
99+
constexpr double MassEta = 0.547862;
100+
constexpr double MassOmega = 0.78266;
101+
constexpr double MassEtaPrime = 0.95778;
96102
constexpr double MassB0 = 5.27966;
97103
constexpr double MassB0Bar = 5.27966;
98104
constexpr double MassBPlus = 5.27934;

Common/Constants/include/CommonConstants/make_pdg_header.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ class PdgROOT(Enum):
8686

8787
# Enum of additional particles
8888
class Pdg(Enum):
89+
kEta = 221
90+
kOmega = 223
91+
kEtaPrime = 331
8992
kB0 = 511
9093
kB0Bar = -511
9194
kBPlus = 521

Detectors/GlobalTracking/src/MatchTPCITS.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ void MatchTPCITS::init()
245245
}
246246
#endif
247247

248-
if (mParams->runAfterBurner) { // only used in AfterBurner
249-
mRGHelper.init(); // prepare helper for TPC track / ITS clusters matching
248+
if (mParams->runAfterBurner) { // only used in AfterBurner
249+
mRGHelper.init(mParams->lowestLayerAB); // prepare helper for TPC track / ITS clusters matching
250250
}
251251

252252
clear();

Detectors/ITSMFT/ITS/reconstruction/include/ITSReconstruction/RecoGeomHelper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ struct RecoGeomHelper {
103103
static constexpr float ladderWidth() { return o2::itsmft::SegmentationAlpide::SensorSizeRows; }
104104
static constexpr float ladderWidthInv() { return 1. / ladderWidth(); }
105105

106-
void init();
106+
void init(int minLayer = 0, int maxLayer = getNLayers());
107107
void print() const;
108108

109109
ClassDefNV(RecoGeomHelper, 0);

Detectors/ITSMFT/ITS/reconstruction/src/RecoGeomHelper.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,9 @@ void RecoGeomHelper::RecoLayer::print() const
229229
}
230230

231231
//_____________________________________________________________________
232-
void RecoGeomHelper::init()
232+
void RecoGeomHelper::init(int minLayer, int maxLayer)
233233
{
234-
for (int il = int(layers.size()); il--;) {
234+
for (int il = maxLayer; --il >= minLayer;) {
235235
auto& lr = layers[il];
236236
lr.id = il;
237237
lr.init();

Detectors/TPC/calibration/SpacePoints/src/TrackInterpolation.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,6 @@ void TrackInterpolation::interpolateTrack(int iSeed)
640640
// skip masked cluster residual
641641
continue;
642642
}
643-
++nClValidated;
644643
const float tgPhi = clusterResiduals[iCl].snp / std::sqrt((1.f - clusterResiduals[iCl].snp) * (1.f + clusterResiduals[iCl].snp));
645644
const auto dy = clusterResiduals[iCl].dy;
646645
const auto dz = clusterResiduals[iCl].dz;
@@ -649,6 +648,7 @@ void TrackInterpolation::interpolateTrack(int iSeed)
649648
const auto sec = clusterResiduals[iCl].sec;
650649
if ((std::abs(dy) < param::MaxResid) && (std::abs(dz) < param::MaxResid) && (std::abs(y) < param::MaxY) && (std::abs(z) < param::MaxZ) && (std::abs(tgPhi) < param::MaxTgSlp)) {
651650
mClRes.emplace_back(dy, dz, tgPhi, y, z, iRow, sec);
651+
++nClValidated;
652652
} else {
653653
++mRejectedResiduals;
654654
}
@@ -875,7 +875,7 @@ void TrackInterpolation::extrapolateTrack(int iSeed)
875875

876876
TrackParams params; // for refitted track parameters and flagging rejected clusters
877877
if (clusterResiduals.size() > constants::MAXGLOBALPADROW) {
878-
LOGP(warn, "Extrapolated ITS-TPC track and found more reesiduals than possible ({})", clusterResiduals.size());
878+
LOGP(warn, "Extrapolated ITS-TPC track and found more residuals than possible ({})", clusterResiduals.size());
879879
return;
880880
}
881881

@@ -899,14 +899,14 @@ void TrackInterpolation::extrapolateTrack(int iSeed)
899899
if (iRow < param::NPadRows && params.flagRej[iCl]) { // skip masked cluster residual
900900
continue;
901901
}
902-
++nClValidated;
903902
const float tgPhi = clusterResiduals[iCl].snp / std::sqrt((1.f - clusterResiduals[iCl].snp) * (1.f + clusterResiduals[iCl].snp));
904903
const auto dy = clusterResiduals[iCl].dy;
905904
const auto dz = clusterResiduals[iCl].dz;
906905
const auto y = clusterResiduals[iCl].y;
907906
const auto z = clusterResiduals[iCl].z;
908907
if ((std::abs(dy) < param::MaxResid) && (std::abs(dz) < param::MaxResid) && (std::abs(y) < param::MaxY) && (std::abs(z) < param::MaxZ) && (std::abs(tgPhi) < param::MaxTgSlp)) {
909908
mClRes.emplace_back(dy, dz, tgPhi, y, z, iRow, clusterResiduals[iCl].sec);
909+
++nClValidated;
910910
} else {
911911
++mRejectedResiduals;
912912
}

Detectors/TPC/workflow/src/IDCToVectorSpec.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ class IDCToVectorDevice : public o2::framework::Task
7272
mWriteDebugOnError = ic.options().get<bool>("write-debug-on-error");
7373
mWriteRawDataOnError = ic.options().get<bool>("write-raw-data-on-error");
7474
mRawDataType = ic.options().get<int>("raw-data-type");
75+
o2::framework::RawParser<>::setCheckIncompleteHBF(ic.options().get<bool>("check-incomplete-hbf"));
7576

7677
mDebugStreamFileName = ic.options().get<std::string>("debug-file-name").data();
7778
mRawOutputFileName = ic.options().get<std::string>("raw-file-name").data();
@@ -606,9 +607,10 @@ o2::framework::DataProcessorSpec getIDCToVectorSpec(const std::string inputSpec,
606607
{"write-raw-data-on-error", VariantType::Bool, false, {"dump raw data in case errors occurred"}},
607608
{"raw-file-name", VariantType::String, "/tmp/idc_debug.{run}.{raw_type}", {"name of the raw output file"}},
608609
{"raw-data-type", VariantType::Int, 0, {"Which raw data to dump: 0-full TPC with DH, 1-full TPC with DH skip empty, 2-full TPC no DH, 3-full TPC no DH skip empty, 4-IDC raw only"}},
610+
{"check-incomplete-hbf", VariantType::Bool, false, {"false: don't chck; true: check and report"}},
609611
{"pedestal-url", VariantType::String, "ccdb-default", {"ccdb-default: load from NameConf::getCCDBServer() OR ccdb url (must contain 'ccdb' OR pedestal file name"}},
610612
{"swap-links", VariantType::Bool, false, {"swap links to circumvent bug in FW"}},
611613
} // end Options
612-
}; // end DataProcessorSpec
614+
}; // end DataProcessorSpec
613615
}
614616
} // namespace o2::tpc

Detectors/TPC/workflow/src/RecoWorkflow.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ framework::WorkflowSpec getWorkflow(CompletionPolicyData* policyData, std::vecto
553553
//
554554
// a writer process for compressed clusters container
555555
//
556-
// selected by output type 'compressed-clusters'
556+
// selected by output type 'compressed-clusters-root'
557557
if (produceCompClustersRoot && !isEnabled(OutputType::DisableWriter)) {
558558
// defining the track writer process using the generic RootTreeWriter and generator tool
559559
//

Detectors/TPC/workflow/src/tpc-reco-workflow.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
5757
using namespace o2::framework;
5858

5959
std::vector<ConfigParamSpec> options{
60-
{"input-type", VariantType::String, "digits", {"digitizer, digits, zsraw, clustershw, clusters, compressed-clusters-root, compressed-clusters-ctf, compressed-clusters-flat-for-encode, pass-through"}},
60+
{"input-type", VariantType::String, "digits", {"digitizer, digits, zsraw, clustershw, clusters, compressed-clusters-root, compressed-clusters-flat, compressed-clusters-flat-for-encode, pass-through"}},
6161
{"output-type", VariantType::String, "tracks", {"digits, zsraw, clustershw, clusters, tracks, compressed-clusters-root, compressed-clusters-flat, encoded-clusters, disable-writer, send-clusters-per-sector, qa, no-shared-cluster-map, tpc-triggers"}},
6262
{"disable-root-input", o2::framework::VariantType::Bool, false, {"disable root-files input reader"}},
6363
{"no-ca-clusterer", VariantType::Bool, false, {"Use HardwareClusterer instead of clusterer of GPUCATracking"}},

0 commit comments

Comments
 (0)