Skip to content

Commit 0418447

Browse files
committed
Fix sensitiveVolume function in TPC
This aligns/uniformizes the definition of TPC sensitive volumes with how its done for other detectors. In fact TPC was the only one overriding a FairRoot interface for this which is now going to be deprecated. This commit fixes a compile error for defaults-fairroot-dev.
1 parent 053ca5c commit 0418447

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Detectors/TPC/simulation/include/TPCSimulation/Detector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class Detector: public o2::Base::DetImpl<Detector> {
163163
void ConstructTPCGeometry();
164164

165165
/** Define the sensitive volumes of the geometry */
166-
void DefineSensitiveVolumes() override;
166+
void defineSensitiveVolumes();
167167

168168
/** container for produced hits */
169169
std::vector<HitGroup>* mHitsPerSectorCollection[Sector::MAXSECTOR]; //! container that keeps track-grouped hits per sector

Detectors/TPC/simulation/src/Detector.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Detector::~Detector()
9595
void Detector::InitializeO2Detector()
9696
{
9797
// Define the list of sensitive volumes
98-
DefineSensitiveVolumes();
98+
defineSensitiveVolumes();
9999
}
100100

101101
void Detector::SetSpecialPhysicsCuts()
@@ -3027,7 +3027,7 @@ void Detector::LoadGeometryFromFile()
30273027
alice->AddNode(tpcVolume, 1);
30283028
}
30293029

3030-
void Detector::DefineSensitiveVolumes()
3030+
void Detector::defineSensitiveVolumes()
30313031
{
30323032
TGeoManager* geoManager = gGeoManager;
30333033
TGeoVolume* v = nullptr;

0 commit comments

Comments
 (0)