Commit e0171b15 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia Committed by Graeme Stewart
Browse files

LArG4Identifier by reference (LArG4FCAL-00-00-44)

	* LArG4Identifier by reference
parent 1b9c0247
......@@ -38,7 +38,7 @@ class LArFCALCalculatorBase : public LArVCalculator
virtual G4float OOTcut() const { return m_OOTcut; }
virtual G4bool Process(const G4Step*);
virtual LArG4Identifier identifier(int i=0) const {
virtual const LArG4Identifier& identifier(int i=0) const {
if (i!=0) throw std::range_error("Multiple hits not yet implemented");
return m_identifier;
}
......
......@@ -55,7 +55,7 @@ namespace LArG4 {
const eCalculatorProcessing p = kEnergyAndID);
// The cell identifier determined by the Process method.
virtual LArG4Identifier identifier() const { return m_identifier; }
virtual const LArG4Identifier& identifier() const { return m_identifier; }
virtual G4float OOTcut() const { return m_OOTcut; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment