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

LArG4Identifier by reference (LArG4EC-00-01-27)

	* LArG4Identifier by reference
parent 3bf32072
......@@ -66,7 +66,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.
......
......@@ -62,7 +62,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.
......
......@@ -62,7 +62,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.
......
......@@ -60,7 +60,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.
......
......@@ -56,7 +56,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.
......
......@@ -54,7 +54,7 @@ class EnergyCalculator
virtual G4bool Process(const G4Step*);
virtual G4bool FindIdentifier(const G4Step *, G4ThreeVector &,
G4ThreeVector &);
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;
}
......
......@@ -43,7 +43,7 @@ public:
virtual void SetOutOfTimeCut(G4double o){ m_OOTcut = o; }
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;
}
......
......@@ -59,7 +59,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.
......
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