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

LArG4Identifier by reference (LArG4HEC-00-00-85)

	* LArG4Identifier by reference
parent e0171b15
......@@ -58,7 +58,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; }
// The calibration energies as determined by the Process method for
// the current G4Step. Units are the native G4 unit of energy.
......
......@@ -44,7 +44,7 @@ public:
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;
}
......
......@@ -33,7 +33,7 @@ namespace LArG4 {
virtual G4bool Process (const G4Step* step,
const eCalculatorProcessing p = kEnergyAndID);
virtual LArG4Identifier identifier() const { return m_identifier; }
virtual const LArG4Identifier& identifier() const { return m_identifier; }
virtual const std::vector<G4double>& energies() const { return m_energies; }
......
......@@ -49,8 +49,8 @@ public:
virtual G4bool Process(const G4Step* a_step){ return Process(a_step,0, 4.*CLHEP::mm);}
virtual G4bool Process(const G4Step* a_step, int depthadd, double deadzone);
virtual LArG4Identifier identifier() const { return m_identifier; }
virtual LArG4Identifier identifier(int i) const {
virtual const LArG4Identifier& identifier() const { return m_identifier; }
virtual const LArG4Identifier& identifier(int i) const {
if (i!=0) throw std::range_error("Multiple hits not yet implemented");
return m_identifier;
}
......
......@@ -46,8 +46,8 @@ public:
virtual G4bool Process(const G4Step* a_step);
virtual LArG4Identifier identifier() const { return m_identifier; }
virtual LArG4Identifier identifier(int i) const {
virtual const LArG4Identifier& identifier() const { return m_identifier; }
virtual const LArG4Identifier& identifier(int i) const {
if (i!=0) throw std::range_error("Multiple hits not yet implemented");
return m_identifier;
}
......
......@@ -31,7 +31,7 @@ namespace LArG4 {
virtual G4bool Process (const G4Step* step,
const eCalculatorProcessing p = kEnergyAndID);
virtual LArG4Identifier identifier() const { return m_identifier; }
virtual const LArG4Identifier& identifier() const { return m_identifier; }
virtual const std::vector<G4double>& energies() const { return m_energies; }
......
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