Skip to content

Commit 303c84f

Browse files
authored
Merge branch 'AliceO2Group:dev' into new-detector4
2 parents e300281 + e440f48 commit 303c84f

File tree

35 files changed

+466
-909
lines changed

35 files changed

+466
-909
lines changed

Common/DCAFitter/include/DCAFitter/HelixHelper.h

Lines changed: 0 additions & 307 deletions
This file was deleted.

Detectors/AOD/src/AODProducerWorkflowSpec.cxx

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2063,16 +2063,11 @@ void AODProducerWorkflowDPL::run(ProcessingContext& pc)
20632063
const auto& mcRecords = mcReader->getDigitizationContext()->getEventRecords();
20642064
const auto& mcParts = mcReader->getDigitizationContext()->getEventParts();
20652065

2066-
// count all parts
2067-
int totalNParts = 0;
2068-
for (int iCol = 0; iCol < nMCCollisions; iCol++) {
2069-
totalNParts += mcParts[iCol].size();
2070-
2071-
// if signal filtering enabled, let's check if there are more than one source; otherwise fatalise
2072-
if (mUseSigFiltMC) {
2073-
std::vector<int> sourceIDs{};
2074-
auto& colParts = mcParts[iCol];
2075-
for (auto colPart : colParts) {
2066+
// if signal filtering enabled, let's check if there are more than one source; otherwise fatalise
2067+
if (mUseSigFiltMC) {
2068+
std::vector<int> sourceIDs{};
2069+
for (int iCol = 0; iCol < nMCCollisions; iCol++) {
2070+
for (auto const& colPart : mcParts[iCol]) {
20762071
int sourceID = colPart.sourceID;
20772072
if (std::find(sourceIDs.begin(), sourceIDs.end(), sourceID) == sourceIDs.end()) {
20782073
sourceIDs.push_back(sourceID);
@@ -2081,10 +2076,19 @@ void AODProducerWorkflowDPL::run(ProcessingContext& pc)
20812076
break;
20822077
}
20832078
}
2084-
if (sourceIDs.size() <= 1) {
2085-
LOGP(fatal, "Signal filtering cannot be enabled without embedding. Please fix the configuration either enabling the embedding, or turning off the signal filtering.");
2079+
if (sourceIDs.size() > 1) { // we found more than one, exit
2080+
break;
20862081
}
20872082
}
2083+
if (sourceIDs.size() <= 1) {
2084+
LOGP(fatal, "Signal filtering cannot be enabled without embedding. Please fix the configuration either enabling the embedding, or turning off the signal filtering.");
2085+
}
2086+
}
2087+
2088+
// count all parts
2089+
int totalNParts = 0;
2090+
for (int iCol = 0; iCol < nMCCollisions; iCol++) {
2091+
totalNParts += mcParts[iCol].size();
20882092
}
20892093
mcCollisionsCursor.reserve(totalNParts);
20902094

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/Passive/include/DetectorsPassive/PipeRun4.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class PipeRun4 : public PassiveBase
4646
TGeoPcon* makeMotherFromTemplate(const TGeoPcon* shape, int imin = -1, int imax = -1, float r0 = 0.,
4747
int nz = -1);
4848
TGeoPcon* makeInsulationFromTemplate(TGeoPcon* shape);
49-
TGeoVolume* makeBellow(const char* ext, int nc, float rMin, float rMax, float dU, float rPlie,
49+
TGeoVolume* makeBellow(const char* ext, int nc, float rMin, float rMax, float rPlie,
5050
float dPlie);
5151
TGeoVolume* makeBellowCside(const char* ext, int nc, float rMin, float rMax, float rPlie, float dPlie);
5252

0 commit comments

Comments
 (0)