Skip to content
Snippets Groups Projects
Commit 3babce8b authored by Administrator's avatar Administrator Committed by Florian Uhlig
Browse files

Correctly extract sensor number

parent 024997d9
Branches
Tags
1 merge request!1125Restructure MVD code
...@@ -50,7 +50,7 @@ public: ...@@ -50,7 +50,7 @@ public:
int32_t GetStationNr() { return (int32_t) GetAddress() / 1000; }; int32_t GetStationNr() { return (int32_t) GetAddress() / 1000; };
int32_t GetRefId() { return fRefId; }; int32_t GetRefId() { return fRefId; };
int32_t GetDetectorId() { return DetectorId(GetStationNr()); }; int32_t GetDetectorId() { return DetectorId(GetStationNr()); };
int32_t GetSensorNr() { return GetAddress() - (((int32_t) GetAddress() / 1000) * 1000); }; int32_t GetSensorNr() { return (GetAddress() % 1000); };
float GetClusterCharge() { return fClusterCharge; }; float GetClusterCharge() { return fClusterCharge; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment