BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
RecEmcHit Class Reference

#include <RecEmcHit.h>

Inheritance diagram for RecEmcHit:

Public Member Functions

virtual const CLID & clID () const
 RecEmcHit ()
 RecEmcHit (const RecEmcID &CellId, const RecEmcEnergy &Energy, const RecEmcTime &Time)
 ~RecEmcHit ()
bool operator< (const RecEmcHit &aHit) const
bool operator> (const RecEmcHit &aHit) const
RecEmcID getCellId () const
RecEmcEnergy getEnergy () const
RecEmcTime getTime () const
HepPoint3D getCenter () const
HepPoint3D getFrontCenter () const
RecEmcID CellId (const RecEmcID &CellId)
RecEmcEnergy Energy (const RecEmcEnergy &Energy)
RecEmcTime Time (const RecEmcTime &Time)
void Assign (const RecEmcID &CellId, const RecEmcEnergy &Energy, const RecEmcTime &Time)
void Dump () const
virtual const CLID & clID () const
 RecEmcHit ()
 RecEmcHit (const RecEmcID &CellId, const RecEmcEnergy &Energy, const RecEmcTime &Time)
 ~RecEmcHit ()
bool operator< (const RecEmcHit &aHit) const
bool operator> (const RecEmcHit &aHit) const
RecEmcID getCellId () const
RecEmcEnergy getEnergy () const
RecEmcTime getTime () const
HepPoint3D getCenter () const
HepPoint3D getFrontCenter () const
RecEmcID CellId (const RecEmcID &CellId)
RecEmcEnergy Energy (const RecEmcEnergy &Energy)
RecEmcTime Time (const RecEmcTime &Time)
void Assign (const RecEmcID &CellId, const RecEmcEnergy &Energy, const RecEmcTime &Time)
void Dump () const
virtual const CLID & clID () const
 RecEmcHit ()
 RecEmcHit (const RecEmcID &CellId, const RecEmcEnergy &Energy, const RecEmcTime &Time)
 ~RecEmcHit ()
bool operator< (const RecEmcHit &aHit) const
bool operator> (const RecEmcHit &aHit) const
RecEmcID getCellId () const
RecEmcEnergy getEnergy () const
RecEmcTime getTime () const
HepPoint3D getCenter () const
HepPoint3D getFrontCenter () const
RecEmcID CellId (const RecEmcID &CellId)
RecEmcEnergy Energy (const RecEmcEnergy &Energy)
RecEmcTime Time (const RecEmcTime &Time)
void Assign (const RecEmcID &CellId, const RecEmcEnergy &Energy, const RecEmcTime &Time)
void Dump () const

Static Public Member Functions

static const CLID & classID ()
static const CLID & classID ()
static const CLID & classID ()

Protected Attributes

RecEmcID fCellId
RecEmcEnergy fEnergy
RecEmcTime fTime

Detailed Description

Constructor & Destructor Documentation

◆ RecEmcHit() [1/6]

◆ RecEmcHit() [2/6]

RecEmcHit::RecEmcHit ( const RecEmcID & CellId,
const RecEmcEnergy & Energy,
const RecEmcTime & Time )

Definition at line 20 of file RecEmcHit.cxx.

21 {
24 fTime = Time;
25}
RecEmcEnergy Energy(const RecEmcEnergy &Energy)
Definition RecEmcHit.cxx:76
RecEmcID CellId(const RecEmcID &CellId)
Definition RecEmcHit.cxx:71
RecEmcTime Time(const RecEmcTime &Time)
Definition RecEmcHit.cxx:81

◆ ~RecEmcHit() [1/3]

RecEmcHit::~RecEmcHit ( )

Definition at line 27 of file RecEmcHit.cxx.

27 {
28 // Nothing to do
29}

◆ RecEmcHit() [3/6]

RecEmcHit::RecEmcHit ( )

◆ RecEmcHit() [4/6]

RecEmcHit::RecEmcHit ( const RecEmcID & CellId,
const RecEmcEnergy & Energy,
const RecEmcTime & Time )

◆ ~RecEmcHit() [2/3]

RecEmcHit::~RecEmcHit ( )

◆ RecEmcHit() [5/6]

RecEmcHit::RecEmcHit ( )

◆ RecEmcHit() [6/6]

RecEmcHit::RecEmcHit ( const RecEmcID & CellId,
const RecEmcEnergy & Energy,
const RecEmcTime & Time )

◆ ~RecEmcHit() [3/3]

RecEmcHit::~RecEmcHit ( )

Member Function Documentation

◆ Assign() [1/3]

void RecEmcHit::Assign ( const RecEmcID & CellId,
const RecEmcEnergy & Energy,
const RecEmcTime & Time )

Definition at line 86 of file RecEmcHit.cxx.

87 {
90 fTime = Time;
91}

Referenced by RecEmcHitCnv::TObjectToDataObject().

◆ Assign() [2/3]

void RecEmcHit::Assign ( const RecEmcID & CellId,
const RecEmcEnergy & Energy,
const RecEmcTime & Time )

◆ Assign() [3/3]

void RecEmcHit::Assign ( const RecEmcID & CellId,
const RecEmcEnergy & Energy,
const RecEmcTime & Time )

◆ CellId() [1/3]

RecEmcID RecEmcHit::CellId ( const RecEmcID & CellId)

Definition at line 71 of file RecEmcHit.cxx.

71 {
73 return fCellId;
74}

Referenced by Assign(), CellId(), EmcRecDigit2Hit::Convert(), and RecEmcHit().

◆ CellId() [2/3]

RecEmcID RecEmcHit::CellId ( const RecEmcID & CellId)

◆ CellId() [3/3]

RecEmcID RecEmcHit::CellId ( const RecEmcID & CellId)

◆ classID() [1/3]

const CLID & RecEmcHit::classID ( )
inlinestatic

Definition at line 22 of file Emc/EmcRecEventModel/include/EmcRecEventModel/RecEmcHit.h.

22{ return CLID_RecEmcHit; }
const CLID & CLID_RecEmcHit

Referenced by clID().

◆ classID() [2/3]

const CLID & RecEmcHit::classID ( )
inlinestatic

◆ classID() [3/3]

const CLID & RecEmcHit::classID ( )
inlinestatic

◆ clID() [1/3]

virtual const CLID & RecEmcHit::clID ( ) const
inlinevirtual

◆ clID() [2/3]

virtual const CLID & RecEmcHit::clID ( ) const
inlinevirtual

◆ clID() [3/3]

virtual const CLID & RecEmcHit::clID ( ) const
inlinevirtual

◆ Dump() [1/3]

void RecEmcHit::Dump ( ) const

Definition at line 93 of file RecEmcHit.cxx.

93 {
94 cout << "Hit: ";
95
96 cout << fCellId << ", ";
97
98 cout.width( 12 );
99 cout.setf( ios::right );
100 cout << fEnergy << ", ";
101
102 cout.width( 12 );
103 cout.setf( ios::right );
104 cout << fTime << endl;
105}

◆ Dump() [2/3]

void RecEmcHit::Dump ( ) const

◆ Dump() [3/3]

void RecEmcHit::Dump ( ) const

◆ Energy() [1/3]

RecEmcEnergy RecEmcHit::Energy ( const RecEmcEnergy & Energy)

Definition at line 76 of file RecEmcHit.cxx.

76 {
78 return fEnergy;
79}

Referenced by Assign(), EmcRecDigit2Hit::Convert(), Energy(), and RecEmcHit().

◆ Energy() [2/3]

RecEmcEnergy RecEmcHit::Energy ( const RecEmcEnergy & Energy)

◆ Energy() [3/3]

RecEmcEnergy RecEmcHit::Energy ( const RecEmcEnergy & Energy)

◆ getCellId() [1/3]

◆ getCellId() [2/3]

RecEmcID RecEmcHit::getCellId ( ) const
inline

◆ getCellId() [3/3]

RecEmcID RecEmcHit::getCellId ( ) const
inline

◆ getCenter() [1/3]

HepPoint3D RecEmcHit::getCenter ( ) const

Definition at line 53 of file RecEmcHit.cxx.

53 {
54 IEmcRecGeoSvc* iGeoSvc;
55 ISvcLocator* svcLocator = Gaudi::svcLocator();
56 StatusCode sc = svcLocator->service( "EmcRecGeoSvc", iGeoSvc );
57 if ( sc != StatusCode::SUCCESS ) { cout << "Error: Can't get EmcRecGeoSvc" << endl; }
58
59 return iGeoSvc->GetCCenter( fCellId );
60}
virtual HepPoint3D GetCCenter(const Identifier &id) const =0

◆ getCenter() [2/3]

HepPoint3D RecEmcHit::getCenter ( ) const

◆ getCenter() [3/3]

HepPoint3D RecEmcHit::getCenter ( ) const

◆ getEnergy() [1/3]

◆ getEnergy() [2/3]

RecEmcEnergy RecEmcHit::getEnergy ( ) const
inline

◆ getEnergy() [3/3]

RecEmcEnergy RecEmcHit::getEnergy ( ) const
inline

◆ getFrontCenter() [1/3]

HepPoint3D RecEmcHit::getFrontCenter ( ) const

Definition at line 62 of file RecEmcHit.cxx.

62 {
63 IEmcRecGeoSvc* iGeoSvc;
64 ISvcLocator* svcLocator = Gaudi::svcLocator();
65 StatusCode sc = svcLocator->service( "EmcRecGeoSvc", iGeoSvc );
66 if ( sc != StatusCode::SUCCESS ) { cout << "Error: Can't get EmcRecGeoSvc" << endl; }
67
68 return iGeoSvc->GetCFrontCenter( fCellId );
69}
virtual HepPoint3D GetCFrontCenter(const Identifier &id) const =0

◆ getFrontCenter() [2/3]

HepPoint3D RecEmcHit::getFrontCenter ( ) const

◆ getFrontCenter() [3/3]

HepPoint3D RecEmcHit::getFrontCenter ( ) const

◆ getTime() [1/3]

RecEmcTime RecEmcHit::getTime ( ) const
inline

Definition at line 41 of file Emc/EmcRecEventModel/include/EmcRecEventModel/RecEmcHit.h.

41{ return fTime; }

Referenced by operator<<(), and operator<<().

◆ getTime() [2/3]

RecEmcTime RecEmcHit::getTime ( ) const
inline

◆ getTime() [3/3]

RecEmcTime RecEmcHit::getTime ( ) const
inline

◆ operator<() [1/3]

bool RecEmcHit::operator< ( const RecEmcHit & aHit) const
inline

Definition at line 33 of file Emc/EmcRecEventModel/include/EmcRecEventModel/RecEmcHit.h.

33{ return fEnergy < aHit.fEnergy; }

◆ operator<() [2/3]

bool RecEmcHit::operator< ( const RecEmcHit & aHit) const
inline

◆ operator<() [3/3]

bool RecEmcHit::operator< ( const RecEmcHit & aHit) const
inline

◆ operator>() [1/3]

bool RecEmcHit::operator> ( const RecEmcHit & aHit) const
inline

Definition at line 35 of file Emc/EmcRecEventModel/include/EmcRecEventModel/RecEmcHit.h.

35{ return fEnergy > aHit.fEnergy; }

◆ operator>() [2/3]

bool RecEmcHit::operator> ( const RecEmcHit & aHit) const
inline

◆ operator>() [3/3]

bool RecEmcHit::operator> ( const RecEmcHit & aHit) const
inline

◆ Time() [1/3]

RecEmcTime RecEmcHit::Time ( const RecEmcTime & Time)

Definition at line 81 of file RecEmcHit.cxx.

81 {
82 fTime = Time;
83 return fTime;
84}

Referenced by Assign(), EmcRecDigit2Hit::Convert(), RecEmcHit(), and Time().

◆ Time() [2/3]

RecEmcTime RecEmcHit::Time ( const RecEmcTime & Time)

◆ Time() [3/3]

RecEmcTime RecEmcHit::Time ( const RecEmcTime & Time)

Member Data Documentation

◆ fCellId

◆ fEnergy

◆ fTime


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