Belle II Software development
TEclEnergyHit Class Reference

define class TEclEnergyHit More...

#include <ECLGeometryPar.h>

Classes

struct  greater_CellId
 struct greater_CellId More...
 
struct  greater_Energy
 struct greater_Energy
More...
 
struct  less_CellId
 struct less_CellId More...
 
struct  less_Energy
 struct less_Energy More...
 

Public Types

typedef EclIdentifier Identifier
 type define Identifier
 

Public Member Functions

 TEclEnergyHit ()
 Constructors and destructor.
 
 TEclEnergyHit (const TEclEnergyHit &ahit)
 Constructor of TEclEnergyHit.
 
 TEclEnergyHit (const Identifier hid, const EclGeV energy, const Identifier cid)
 Constructor of TEclEnergyHit.
 
virtual ~TEclEnergyHit ()
 destructor
 
TEclEnergyHitoperator= (const TEclEnergyHit &hit)
 assignment operator(s)
 
Identifier Id (void) const
 get Id
 
Identifier Id (Identifier id)
 set Id
 
Identifier CellId (void) const
 get Cell Id
 
Identifier CellId (int cId)
 set Cell Id
 
EclGeV Energy (void) const
 get Energy

 
EclGeV Energy (EclGeV energy)
 set Energy

 
bool operator< (const TEclEnergyHit &rhs) const
 comparison operators
 
bool operator> (const TEclEnergyHit &rhs) const
 comparison operators
 
bool operator== (const TEclEnergyHit &rhs) const
 comparison operators
 
bool operator!= (const TEclEnergyHit &rhs) const
 comparison operators
 

Private Attributes

Identifier fId
 data members
 
EclGeV fEnergy
 Energy

 
int fCellId
 Cell Id

 

Detailed Description

define class TEclEnergyHit

Definition at line 229 of file ECLGeometryPar.h.

Member Typedef Documentation

◆ Identifier

typedef EclIdentifier Identifier

type define Identifier

Definition at line 236 of file ECLGeometryPar.h.

Constructor & Destructor Documentation

◆ TEclEnergyHit() [1/3]

TEclEnergyHit ( )
inline

Constructors and destructor.

Constructor of TEclEnergyHit

Definition at line 240 of file ECLGeometryPar.h.

240 : fId(0), fEnergy(0), fCellId(0)
241 {
242 }
Identifier fId
data members

◆ TEclEnergyHit() [2/3]

TEclEnergyHit ( const TEclEnergyHit ahit)
inline

Constructor of TEclEnergyHit.

Definition at line 244 of file ECLGeometryPar.h.

245 : fId(ahit.Id()), fEnergy(ahit.Energy()), fCellId(ahit.CellId())
246 {
247 }

◆ TEclEnergyHit() [3/3]

TEclEnergyHit ( const Identifier  hid,
const EclGeV  energy,
const Identifier  cid 
)
inline

Constructor of TEclEnergyHit.

Definition at line 249 of file ECLGeometryPar.h.

251 : fId(hid), fEnergy(energy), fCellId(cid)
252 {
253 }

◆ ~TEclEnergyHit()

virtual ~TEclEnergyHit ( )
inlinevirtual

destructor

Definition at line 255 of file ECLGeometryPar.h.

255{ }

Member Function Documentation

◆ CellId() [1/2]

Identifier CellId ( int  cId)
inline

set Cell Id

Definition at line 285 of file ECLGeometryPar.h.

286 {
287 return fCellId = cId;
288 }

◆ CellId() [2/2]

Identifier CellId ( void  ) const
inline

get Cell Id

Definition at line 280 of file ECLGeometryPar.h.

281 {
282 return fCellId;
283 }

◆ Energy() [1/2]

EclGeV Energy ( EclGeV  energy)
inline

set Energy

Definition at line 298 of file ECLGeometryPar.h.

299 {
300 return fEnergy = energy;
301 }

◆ Energy() [2/2]

EclGeV Energy ( void  ) const
inline

get Energy

Definition at line 293 of file ECLGeometryPar.h.

294 {
295 return fEnergy;
296 }

◆ Id() [1/2]

Identifier Id ( Identifier  id)
inline

set Id

Definition at line 275 of file ECLGeometryPar.h.

276 {
277 return fId = id;
278 }

◆ Id() [2/2]

Identifier Id ( void  ) const
inline

get Id

Definition at line 270 of file ECLGeometryPar.h.

271 {
272 return fId;
273 }

◆ operator!=()

bool operator!= ( const TEclEnergyHit rhs) const
inline

comparison operators

Definition at line 329 of file ECLGeometryPar.h.

330 {
331 return
332 (fId != rhs.Id())
333 || (fEnergy != rhs.Energy())
334 || (fCellId != rhs.CellId())
335 ;
336 }

◆ operator<()

bool operator< ( const TEclEnergyHit rhs) const
inline

comparison operators

Definition at line 308 of file ECLGeometryPar.h.

309 {
310 return
311 fId < rhs.Id();
312 }

◆ operator=()

TEclEnergyHit & operator= ( const TEclEnergyHit hit)
inline

assignment operator(s)

Definition at line 258 of file ECLGeometryPar.h.

259 {
260 if (this != &hit) {
261 fId = hit.fId;
262 fEnergy = hit.fEnergy;
263 fCellId = hit.fCellId;
264 }
265 return *this;
266 }

◆ operator==()

bool operator== ( const TEclEnergyHit rhs) const
inline

comparison operators

Definition at line 320 of file ECLGeometryPar.h.

321 {
322 return
323 (fId == rhs.Id())
324 && (fEnergy == rhs.Energy())
325 && (fCellId == rhs.CellId())
326 ;
327 }

◆ operator>()

bool operator> ( const TEclEnergyHit rhs) const
inline

comparison operators

Definition at line 314 of file ECLGeometryPar.h.

315 {
316 return
317 fId > rhs.Id();
318 }

Member Data Documentation

◆ fCellId

int fCellId
private

Cell Id

Definition at line 397 of file ECLGeometryPar.h.

◆ fEnergy

EclGeV fEnergy
private

Energy

Definition at line 396 of file ECLGeometryPar.h.

◆ fId

Identifier fId
private

data members

Id

Definition at line 395 of file ECLGeometryPar.h.


The documentation for this class was generated from the following file: