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

LArG4Identifier by reference (LArG4Code-00-07-04)

	* LArG4Identifier by reference
parent 1e5d201c
......@@ -53,7 +53,7 @@ namespace LArG4 {
const eCalculatorProcessing = 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.
......
......@@ -51,7 +51,7 @@ public:
virtual int getNumHits() const {return 1;}
// The cell identifier determined by the Process method.
virtual LArG4Identifier identifier(int i=0) const = 0;
virtual const LArG4Identifier& identifier(int i=0) const = 0;
// Routines added 09-Jan-2002 WGS: For some detectors, the
// determination of the time, energy deposition, or whether the hit
......
......@@ -30,10 +30,10 @@ class LArVCalibHitMerger
virtual void BeginOfEvent() = 0;
// Do the actual job here
virtual bool process(LArG4Identifier ident,
virtual bool process(const LArG4Identifier& ident,
const std::vector<G4double>& energies) = 0;
// Do the actual job here
virtual bool process(LArG4Identifier ident,
virtual bool process(const LArG4Identifier& ident,
const std::vector<G4double>& energies, unsigned int particleID) = 0;
// Distribute hits created during the event between global containers
......
......@@ -27,7 +27,7 @@ class LArVHitMerger
// Do the actual job here
virtual bool process(G4Step* step,
LArG4Identifier ident,
const LArG4Identifier& ident,
G4double time,
G4double energy) = 0;
......
......@@ -47,7 +47,7 @@ namespace LArG4 {
const eCalculatorProcessing = kEnergyAndID) = 0;
// The cell identifier determined by the Process method.
virtual LArG4Identifier identifier() const = 0;
virtual const LArG4Identifier& identifier() const = 0;
// 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