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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ it in future.
* Add flags for `python/ScifiMapping.py`
* Fixed SiliconTarget detector identifier.
* fix(muon): Make muonHit copy constructor public for std::vector compatibility
* Fix the wrong methods in SND/MTC/MTCDetPoint.cxx to extract layer_id and layer_type for the MCPoint.

### Changed

Expand Down
10 changes: 0 additions & 10 deletions SND/MTC/MTCDetPoint.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,3 @@ void MTCDetPoint::Print() const
<< endl;
}
// -------------------------------------------------------------------------

Int_t MTCDetPoint::GetLayer() const
{
return (fDetectorID / 100000) % 100;
}

Int_t MTCDetPoint::GetLayerType() const
{
return fDetectorID / 10000000;
}
3 changes: 1 addition & 2 deletions SND/MTC/MTCDetPoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@ class MTCDetPoint : public FairMCPoint
/** Output to screen **/
virtual void Print() const;
Int_t PdgCode() const { return fPdgCode; }
Int_t GetLayer() const { return static_cast<int>(fDetectorID / 1000000) % 100; }
Int_t GetStationType() const { return static_cast<int>(fDetectorID / 100000) % 10; }
Int_t GetLayer() const;
Int_t GetLayerType() const;
Int_t fPdgCode;

ClassDef(MTCDetPoint, 3)
Expand Down
Loading