Skip to content
Open
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 @@ namespace Acts
{
class Surface;
class BoundTrackParameters;
}
} // namespace Acts
namespace o2::trk
{
/// Configuration for the ACTS-based tracker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace Acts
{
class Surface;
class BoundTrackParameters;
}
} // namespace Acts
namespace o2::trk
{
/// Configuration for the ACTS-based tracker
Expand All @@ -66,9 +66,9 @@ struct TrackerACTSConfig {
float maxSeedsPerMiddleSP = 2;
float deltaPhiMax = 0.1f; ///< Maximum phi difference for doublets
// Optional debug output. No ROOT file or histogram is created by default.
bool writeDebugTrees = false; ///< Cluster, seed and ROF summary trees
bool dumpTrackingGeometry = false; ///< Write a JSON volume/surface snapshot on first use
int debugMaxTimeFrames = 1; ///< 1 by default, -1 for all TFs
bool writeDebugTrees = false; ///< Cluster, seed and ROF summary trees
bool dumpTrackingGeometry = false; ///< Write a JSON volume/surface snapshot on first use
int debugMaxTimeFrames = 1; ///< 1 by default, -1 for all TFs
std::string debugFileName = "TrackerACTS_debug.root";
std::string geometryDumpFileName = "TrackerACTS_geometry.json";
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ void TrackerACTS<nLayers>::initDebugOutput()
mROFTree->Branch("nAcceptedTracks", &mDebugROF.nAcceptedTracks, "nAcceptedTracks/I");

mHistSpacePoints = std::make_unique<TH2F>("hSpacePoints", "Space points; x (cm); y (cm)",
200, -100, 100, 200, -100, 100);
200, -100, 100, 200, -100, 100);
mHistSpacePoints->SetDirectory(nullptr); // Owned by TrackerACTS, not by TFile.
LOG(info) << "ACTS debug trees enabled: " << mConfig.debugFileName;
}
Expand Down Expand Up @@ -333,7 +333,8 @@ void TrackerACTS<nLayers>::dumpGeometryOnce()
out << item.dump();
first = false;
++nSurfaces;
}, false); // Also include passive/non-sensitive surfaces where reachable.
},
false); // Also include passive/non-sensitive surfaces where reachable.
out << "\n ]\n}\n";
if (!out.good()) {
LOG(error) << "Error while writing ACTS geometry dump " << mConfig.geometryDumpFileName;
Expand Down Expand Up @@ -426,7 +427,8 @@ void TrackerACTS<nLayers>::buildSpacePoints(int rof)
mDebugCluster.externalId = mTimeFrame->getClusterExternalIndex(layer, clusterIndex);
mDebugCluster.sensorId = sensorID;
// 0: sensor ID missing; 1: ACTS surface missing; 2: mapped.
mDebugCluster.mappingStatus = !hasSensorID ? 0 : !surface ? 1 : 2;
mDebugCluster.mappingStatus = !hasSensorID ? 0 : !surface ? 1
: 2;
mDebugCluster.geometryId = surface ? surface->geometryId().value() : 0;
mDebugCluster.x = cluster.xCoordinate;
mDebugCluster.y = cluster.yCoordinate;
Expand Down