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

#include <RecEmcFraction.h>

Inheritance diagram for RecEmcFraction:

Public Member Functions

 RecEmcFraction ()
 RecEmcFraction (const RecEmcHit &aHit)
 ~RecEmcFraction ()
bool operator< (const RecEmcFraction &aFraction) const
bool operator> (const RecEmcFraction &aFraction) const
RecEmcFrac getFraction () const
RecEmcFrac Fraction (const RecEmcFrac &Fraction)
double Distance (const RecEmcID id) const
void Dump () const
 RecEmcFraction ()
 RecEmcFraction (const RecEmcHit &aHit)
 ~RecEmcFraction ()
bool operator< (const RecEmcFraction &aFraction) const
bool operator> (const RecEmcFraction &aFraction) const
RecEmcFrac getFraction () const
RecEmcFrac Fraction (const RecEmcFrac &Fraction)
double Distance (const RecEmcID id) const
void Dump () const
 RecEmcFraction ()
 RecEmcFraction (const RecEmcHit &aHit)
 ~RecEmcFraction ()
bool operator< (const RecEmcFraction &aFraction) const
bool operator> (const RecEmcFraction &aFraction) const
RecEmcFrac getFraction () const
RecEmcFrac Fraction (const RecEmcFrac &Fraction)
double Distance (const RecEmcID id) const
void Dump () const
Public Member Functions inherited from RecEmcHit
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

Protected Attributes

RecEmcFrac fFraction
Protected Attributes inherited from RecEmcHit
RecEmcID fCellId
RecEmcEnergy fEnergy
RecEmcTime fTime

Additional Inherited Members

Static Public Member Functions inherited from RecEmcHit
static const CLID & classID ()
static const CLID & classID ()
static const CLID & classID ()

Detailed Description

Constructor & Destructor Documentation

◆ RecEmcFraction() [1/6]

RecEmcFraction::RecEmcFraction ( )

Definition at line 14 of file RecEmcFraction.cxx.

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

◆ RecEmcFraction() [2/6]

RecEmcFraction::RecEmcFraction ( const RecEmcHit & aHit)

Definition at line 16 of file RecEmcFraction.cxx.

16: RecEmcHit( aHit ) { fFraction = -1; }

◆ ~RecEmcFraction() [1/3]

RecEmcFraction::~RecEmcFraction ( )

Definition at line 18 of file RecEmcFraction.cxx.

18 {
19 // nothing to do
20}

◆ RecEmcFraction() [3/6]

RecEmcFraction::RecEmcFraction ( )

◆ RecEmcFraction() [4/6]

RecEmcFraction::RecEmcFraction ( const RecEmcHit & aHit)

◆ ~RecEmcFraction() [2/3]

RecEmcFraction::~RecEmcFraction ( )

◆ RecEmcFraction() [5/6]

RecEmcFraction::RecEmcFraction ( )

◆ RecEmcFraction() [6/6]

RecEmcFraction::RecEmcFraction ( const RecEmcHit & aHit)

◆ ~RecEmcFraction() [3/3]

RecEmcFraction::~RecEmcFraction ( )

Member Function Documentation

◆ Distance() [1/3]

double RecEmcFraction::Distance ( const RecEmcID id) const

Definition at line 55 of file RecEmcFraction.cxx.

55 {
56 unsigned int tht, phi;
57 unsigned int tht2, phi2;
58 unsigned int dtht, dphi;
59 double dist;
60
63 tht2 = EmcID::theta_module( id );
64 phi2 = EmcID::phi_module( id );
65
66 dtht = tht > tht2 ? tht - tht2 : tht2 - tht;
67 dphi = phi > phi2 ? phi - phi2 : phi2 - phi;
68 if ( dphi > ( EmcID::getPHI_BARREL_MAX() + 1 ) / 2 )
69 { dphi = EmcID::getPHI_BARREL_MAX() + 1 - dphi; }
70 dist = sqrt( double( dtht * dtht + dphi * dphi ) );
71
72 return dist;
73}
Double_t phi2
static unsigned int getPHI_BARREL_MAX()
Definition EmcID.cxx:83
static unsigned int theta_module(const Identifier &id)
Definition EmcID.cxx:41
static unsigned int phi_module(const Identifier &id)
Definition EmcID.cxx:46

◆ Distance() [2/3]

double RecEmcFraction::Distance ( const RecEmcID id) const

◆ Distance() [3/3]

double RecEmcFraction::Distance ( const RecEmcID id) const

◆ Dump() [1/3]

void RecEmcFraction::Dump ( ) const

Definition at line 76 of file RecEmcFraction.cxx.

76 {
77 cout << "Fraction: ";
78
79 cout << fCellId << ", ";
80
81 cout.width( 12 );
82 cout.setf( ios::right );
83 cout << fEnergy << ", ";
84
85 cout.width( 12 );
86 cout.setf( ios::right );
87 cout << fTime << ", ";
88
89 cout.width( 12 );
90 cout.setf( ios::right );
91 cout << fFraction;
92
93 cout << endl;
94}

◆ Dump() [2/3]

void RecEmcFraction::Dump ( ) const

◆ Dump() [3/3]

void RecEmcFraction::Dump ( ) const

◆ Fraction() [1/3]

RecEmcFrac RecEmcFraction::Fraction ( const RecEmcFrac & Fraction)

Definition at line 49 of file RecEmcFraction.cxx.

49 {
51 return fFraction;
52}
RecEmcFrac Fraction(const RecEmcFrac &Fraction)

Referenced by Fraction(), EmcRecSplitWeighted::Split(), and RecEmcShowerCnv::TObjectToDataObject().

◆ Fraction() [2/3]

RecEmcFrac RecEmcFraction::Fraction ( const RecEmcFrac & Fraction)

◆ Fraction() [3/3]

RecEmcFrac RecEmcFraction::Fraction ( const RecEmcFrac & Fraction)

◆ getFraction() [1/3]

RecEmcFrac RecEmcFraction::getFraction ( ) const

Definition at line 47 of file RecEmcFraction.cxx.

47{ return fFraction; }

Referenced by operator<<(), and EmcRecSplitWeighted::Split().

◆ getFraction() [2/3]

RecEmcFrac RecEmcFraction::getFraction ( ) const

◆ getFraction() [3/3]

RecEmcFrac RecEmcFraction::getFraction ( ) const

◆ operator<() [1/3]

bool RecEmcFraction::operator< ( const RecEmcFraction & aFraction) const
inline

Definition at line 28 of file Emc/EmcRecEventModel/include/EmcRecEventModel/RecEmcFraction.h.

28 {
29 return fEnergy * fFraction < aFraction.fEnergy * aFraction.fFraction;
30 }

◆ operator<() [2/3]

bool RecEmcFraction::operator< ( const RecEmcFraction & aFraction) const
inline

Definition at line 28 of file InstallArea/x86_64-el9-gcc13-dbg/include/EmcRecEventModel/RecEmcFraction.h.

28 {
29 return fEnergy * fFraction < aFraction.fEnergy * aFraction.fFraction;
30 }

◆ operator<() [3/3]

bool RecEmcFraction::operator< ( const RecEmcFraction & aFraction) const
inline

Definition at line 28 of file InstallArea/x86_64-el9-gcc13-opt/include/EmcRecEventModel/RecEmcFraction.h.

28 {
29 return fEnergy * fFraction < aFraction.fEnergy * aFraction.fFraction;
30 }

◆ operator>() [1/3]

bool RecEmcFraction::operator> ( const RecEmcFraction & aFraction) const
inline

Definition at line 32 of file Emc/EmcRecEventModel/include/EmcRecEventModel/RecEmcFraction.h.

32 {
33 return fEnergy * fFraction > aFraction.fEnergy * aFraction.fFraction;
34 }

◆ operator>() [2/3]

bool RecEmcFraction::operator> ( const RecEmcFraction & aFraction) const
inline

Definition at line 32 of file InstallArea/x86_64-el9-gcc13-dbg/include/EmcRecEventModel/RecEmcFraction.h.

32 {
33 return fEnergy * fFraction > aFraction.fEnergy * aFraction.fFraction;
34 }

◆ operator>() [3/3]

bool RecEmcFraction::operator> ( const RecEmcFraction & aFraction) const
inline

Definition at line 32 of file InstallArea/x86_64-el9-gcc13-opt/include/EmcRecEventModel/RecEmcFraction.h.

32 {
33 return fEnergy * fFraction > aFraction.fEnergy * aFraction.fFraction;
34 }

Member Data Documentation

◆ fFraction


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