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

LArG4Identifier by reference (LArG4Barrel-00-01-24)

	* LArG4Identifier by reference
parent a4f1144f
......@@ -63,7 +63,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.
......
......@@ -64,7 +64,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.
......
......@@ -63,7 +63,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.
......
......@@ -52,7 +52,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.
......
......@@ -46,7 +46,7 @@ public:
virtual G4float OOTcut() const { return m_OOTcut; }
virtual int getNumHits() const {return m_nhits;}
virtual LArG4Identifier identifier(int i=0) const {
virtual const LArG4Identifier& identifier(int i=0) const {
if (i<0||i>=m_nhits) throw std::range_error("Hit asked is out of range");
return m_identifier[i]; }
virtual G4double time(int i=0) const {
......
......@@ -57,7 +57,7 @@ namespace Barrel {
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 int getNumHits() const {return m_nhits;}
virtual LArG4Identifier identifier(int i=0) const {
virtual const LArG4Identifier& identifier(int i=0) const {
if (i<0||i>=m_nhits) throw std::range_error("Hit asked is out of range");
return m_identifier[i]; }
virtual G4double time(int i=0) const {
......
......@@ -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.
......
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