FairRoot/PandaRoot
|
represents the reconstructed hit of one emc crystal More...
#include <PndEmcDigi.h>
Public Types | |
enum | PositionMethod { surface, depth } |
Public Member Functions | |
PndEmcDigi () | |
PndEmcDigi (Int_t trackid, Int_t id, Float_t energy, Float_t time, Int_t hitIndex=-1) | |
PndEmcDigi (const PndEmcDigi &) | |
virtual | ~PndEmcDigi () |
virtual bool | operator== (const PndEmcDigi &otherDigi) const |
virtual bool | operator!= (const PndEmcDigi &otherDigi) const |
virtual bool | operator< (const PndEmcDigi &otherDigi) const |
virtual bool | equal (FairTimeStamp *data) |
virtual void | Print (const Option_t *opt="") const |
void | SetEnergy (Double32_t energy) |
void | SetTrackId (Int_t id) |
void | SetDetectorId (Int_t id) |
virtual void | AbsorbEnergy (PndEmcDigi &otherDigi) |
bool | isNeighbour (const PndEmcDigi *theDigi) const |
virtual Double_t | GetEnergy () const |
Int_t | GetTrackId () const |
Int_t | GetDetectorId () const |
PndEmcTwoCoordIndex * | GetTCI () const |
Int_t | GetThetaInt () const |
Int_t | GetPhiInt () const |
Double_t | GetTheta () const |
Double_t | GetPhi () const |
Short_t | GetModule () const |
Short_t | GetRow () const |
Short_t | GetCrystal () const |
Short_t | GetCopy () const |
Short_t | GetXPad () const |
Short_t | GetYPad () const |
Int_t | GetHitIndex () |
const TVector3 & | where () const |
virtual PndEmcSharedDigi * | dynamic_cast_PndEmcSharedDigi () |
virtual const PndEmcSharedDigi * | dynamic_cast_PndEmcSharedDigi () const |
Static Public Member Functions | |
static void | InitDigiArrayTBD () |
static Double_t | getRescaleFactor () |
static Double_t | getPositionDepthPWO () |
static Double_t | getPositionDepthShashlyk () |
Public Attributes | |
Int_t | fEvtNo |
Static Public Attributes | |
static TClonesArray * | fDigiArrayTBD = NULL |
Protected Attributes | |
Double_t | fEnergy |
Int_t | fTrackId |
Int_t | fDetectorId |
Int_t | fHitIndex |
TVector3 | fWhere |
Int_t | fThetaInd |
Int_t | fPhiInd |
Double_t | fTheta |
Double_t | fPhi |
Private Member Functions | |
ClassDef (PndEmcDigi, 5) | |
Static Private Member Functions | |
static void | selectDigiPositionMethod (PositionMethod, double positionDepthPWO=0., double positionDepthShahslyk=0., double rescaleFactor=1.) |
static TVector3 | surfacePosition (const PndEmcXtal *xtal) |
static TVector3 | depthPosition (const PndEmcXtal *xtal) |
Static Private Attributes | |
static TVector3(*&)(const PndEmcXtal *) | algPointer () |
static double | fRescaleFactor = 1.0 |
static double | fPositionDepthPWO = 6.2 |
static double | fPositionDepthShashlyk = 20.9 |
Friends | |
class | PndEmcWaveformToDigi |
class | PndEmcWaveformToDigiFPGA |
class | PndEmcWaveformToCalibratedDigi |
class | PndEmcMultiWaveformToCalibratedDigi |
class | PndEmcFWEndcapDigi |
class | PndEmcTmpWaveformToDigi |
class | PndEmcMakeDigi |
class | PndEmcCorrBump |
std::ostream & | operator<< (std::ostream &out, PndEmcDigi &digi) |
represents the reconstructed hit of one emc crystal
Definition at line 40 of file PndEmcDigi.h.
PndEmcDigi::PndEmcDigi | ( | ) |
PndEmcDigi::PndEmcDigi | ( | Int_t | trackid, |
Int_t | id, | ||
Float_t | energy, | ||
Float_t | time, | ||
Int_t | hitIndex = -1 |
||
) |
Definition at line 50 of file PndEmcDigi.cxx.
References algPointer, emcMap, fPhi, fPhiInd, fTheta, fThetaInd, fWhere, PndEmcMapper::GetTCI(), PndEmcStructure::GetTciXtalMap(), PndEmcMapper::Instance(), PndEmcStructure::Instance(), PndEmcTwoCoordIndex::XCoord(), and PndEmcTwoCoordIndex::YCoord().
PndEmcDigi::PndEmcDigi | ( | const PndEmcDigi & | other | ) |
Definition at line 69 of file PndEmcDigi.cxx.
References algPointer, emcMap, fDetectorId, fPhi, fPhiInd, fTheta, fThetaInd, fWhere, PndEmcMapper::GetTCI(), PndEmcStructure::GetTciXtalMap(), PndEmcMapper::Instance(), PndEmcStructure::Instance(), PndEmcTwoCoordIndex::XCoord(), and PndEmcTwoCoordIndex::YCoord().
|
virtual |
|
virtual |
Definition at line 118 of file PndEmcDigi.cxx.
References equal(), fEnergy, and GetEnergy().
Referenced by PndEmcClusterRemoveDuplCrys::Exec().
|
private |
|
staticprivate |
Definition at line 134 of file PndEmcDigi.cxx.
References PndEmcXtal::axisVector(), fPositionDepthPWO, fPositionDepthShashlyk, PndEmcXtal::frontCentre(), PndEmcTwoCoordIndex::Index(), PndEmcXtal::myIndex(), and pos.
Referenced by selectDigiPositionMethod().
|
virtual |
Reimplemented in PndEmcSharedDigi.
Definition at line 346 of file PndEmcDigi.cxx.
|
virtual |
Reimplemented in PndEmcSharedDigi.
Definition at line 352 of file PndEmcDigi.cxx.
|
inlinevirtual |
Definition at line 69 of file PndEmcDigi.h.
References fDetectorId, and GetDetectorId().
Referenced by AbsorbEnergy().
|
inline |
Definition at line 106 of file PndEmcDigi.h.
References fDetectorId.
Referenced by for(), GetXPad(), and GetYPad().
|
inline |
Definition at line 105 of file PndEmcDigi.h.
References fDetectorId.
Referenced by for(), GetXPad(), and GetYPad().
|
inline |
Definition at line 97 of file PndEmcDigi.h.
References fDetectorId.
Referenced by PndEmcCluster::addDigi(), PndEmcCluster::addLocalMax(), equal(), PndEmcClusterRemoveDuplCrys::Exec(), for(), Print(), reco_analys(), and PndEmcCluster::removeDigi().
|
virtual |
Accessors
Reimplemented in PndEmcSharedDigi.
Definition at line 296 of file PndEmcDigi.cxx.
References fEnergy.
Referenced by AbsorbEnergy(), PndEmcDigiCalibrator::CalibrationEvtTimeByDigi(), PndEmcClusterMoments::Centre1(), PndEmcClusterMoments::Centre2(), PndEmcClusterEnergySums::E1(), PndEmcClusterEnergySums::E25(), PndEmcClusterEnergySums::E9(), PndEmcClusterProperties::Energy(), PndEmcClusterEnergySums::energy(), PndEmcMakeClusterOnline::Exec(), PndEmcMakeCluster::Exec(), PndEmcCorrBump::Exec(), PndEmcWaveformToDigi::Exec(), PndEmcAnalysis::Exec(), PndEmcExpClusterSplitter::Exec(), PndEmcPhiBumpSplitter::Exec(), PndEmcMakeClusterOnline::FinishCluster(), for(), PndEmcDigiCaloDraw::GetEnergy(), PndEmcDigiCalibrator::GetTimeResolutionOfDigi(), PndEmcClusterProperties::GravWhere(), PndEmcXClMoments::Init(), PndEmc2DLocMaxFinder::isALocalMax(), PndEmcClusterProperties::LiloWhere(), PndEmcClusterProperties::LinearWhere(), PndEmcClusterMoments::Major1(), PndEmcClusterMoments::Major2(), PndEmcClusterProperties::Major_axis(), PndEmcClusterProperties::Mass(), PndEmcCluster::Maxima(), PndEmcClusterMoments::Minor1(), PndEmcClusterMoments::Minor2(), operator==(), PndEmcClusterMoments::Phi1(), PndEmcClusterMoments::Phi2(), reco_analys(), PndEmcClusterMoments::SecondMoment(), PndEmcClusterMoments::SecondMomentTP(), PndEmcClusterMoments::Theta1(), and PndEmcClusterMoments::Theta2().
|
inline |
Definition at line 110 of file PndEmcDigi.h.
References fHitIndex.
Referenced by PndEmcAnalysis::Exec().
|
inline |
Definition at line 103 of file PndEmcDigi.h.
References fDetectorId.
Referenced by PndEmcDigiCalibrator::CalibrationEvtTimeByDigi(), PndEmcMakeClusterOnline::Exec(), PndEmcMakeCluster::Exec(), PndEmcCorrBump::Exec(), PndEmcAnalysis::Exec(), PndEmcExpClusterSplitter::Exec(), for(), PndEmcDigiCalibrator::GetTimeResolutionOfDigi(), GetXPad(), and GetYPad().
|
inline |
Definition at line 102 of file PndEmcDigi.h.
References fPhi.
Referenced by PndEmcClusterDistances::AngularSeparation(), PndEmcPhiBumpSplitter::Exec(), for(), PndEmcClusterMoments::Major1(), PndEmcClusterMoments::Major2(), PndEmcClusterProperties::Major_axis(), PndEmcClusterMoments::Minor1(), PndEmcClusterMoments::Minor2(), PndEmcClusterMoments::Phi1(), and PndEmcClusterMoments::Phi2().
|
inline |
Definition at line 100 of file PndEmcDigi.h.
References fPhiInd.
Referenced by for(), PndEmc2DLocMaxFinder::isALocalMax(), PndEmcClusterProperties::LiloWhere(), and operator==().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 116 of file PndEmcDigi.h.
References fRescaleFactor.
Referenced by PndEmcXClMoments::Init().
|
inline |
Definition at line 104 of file PndEmcDigi.h.
References fDetectorId.
Referenced by for(), GetXPad(), and GetYPad().
PndEmcTwoCoordIndex * PndEmcDigi::GetTCI | ( | ) | const |
Definition at line 216 of file PndEmcDigi.cxx.
References emcMap, fDetectorId, PndEmcMapper::GetTCI(), and PndEmcMapper::Instance().
Referenced by PndEmcExpClusterSplitter::Exec(), isNeighbour(), PndEmcClusterProperties::LiloWhere(), and PndEmcClusterDistances::RadialDistance().
|
inline |
Definition at line 101 of file PndEmcDigi.h.
References fTheta.
Referenced by PndEmcClusterDistances::AngularSeparation(), for(), PndEmcClusterMoments::Major1(), PndEmcClusterMoments::Major2(), PndEmcClusterProperties::Major_axis(), PndEmcClusterMoments::Minor1(), PndEmcClusterMoments::Minor2(), PndEmcClusterMoments::Theta1(), and PndEmcClusterMoments::Theta2().
|
inline |
Definition at line 99 of file PndEmcDigi.h.
References fThetaInd.
Referenced by for(), PndEmc2DLocMaxFinder::isALocalMax(), PndEmcClusterProperties::LiloWhere(), and operator==().
|
inline |
Definition at line 96 of file PndEmcDigi.h.
References fTrackId.
Referenced by PndEmcCluster::addDigi(), and PndEmcCluster::removeDigi().
Short_t PndEmcDigi::GetXPad | ( | ) | const |
Definition at line 223 of file PndEmcDigi.cxx.
References GetCopy(), GetCrystal(), GetModule(), and GetRow().
Referenced by for().
Short_t PndEmcDigi::GetYPad | ( | ) | const |
Definition at line 261 of file PndEmcDigi.cxx.
References GetCopy(), GetCrystal(), GetModule(), and GetRow().
Referenced by for().
|
static |
Definition at line 89 of file PndEmcDigi.cxx.
References fDigiArrayTBD.
Referenced by PndEmcCorrBump::Init(), and PndEmcWaveformToDigi::Init().
bool PndEmcDigi::isNeighbour | ( | const PndEmcDigi * | theDigi | ) | const |
Definition at line 201 of file PndEmcDigi.cxx.
References GetTCI(), PndEmcMapper::Instance(), and PndEmcTwoCoordIndex::IsNeighbour().
Referenced by PndEmcClusterEnergySums::E25(), PndEmcClusterEnergySums::E9(), and PndEmcCluster::isInCluster().
|
virtual |
Definition at line 317 of file PndEmcDigi.cxx.
|
virtual |
|
virtual |
Definition at line 303 of file PndEmcDigi.cxx.
References Double_t, GetEnergy(), GetPhiInt(), and GetThetaInt().
|
virtual |
Output to screen
Definition at line 337 of file PndEmcDigi.cxx.
References fEnergy, fEvtNo, fTrackId, and GetDetectorId().
Referenced by PndEmcCorrBump::Exec(), and PndEmcXClMoments::Print().
|
staticprivate |
Definition at line 153 of file PndEmcDigi.cxx.
References algPointer, depth, depthPosition(), fPositionDepthPWO, fPositionDepthShashlyk, fRescaleFactor, surface, and surfacePosition().
Referenced by PndEmcFWEndcapDigi::Init(), PndEmcMakeDigi::Init(), PndEmcTmpWaveformToDigi::Init(), PndEmcWaveformToDigi::Init(), PndEmcWaveformToCalibratedDigi::Init(), and PndEmcMultiWaveformToCalibratedDigi::Init().
void PndEmcDigi::SetDetectorId | ( | Int_t | id | ) |
Definition at line 95 of file PndEmcDigi.cxx.
References algPointer, emcMap, fDetectorId, fPhi, fPhiInd, fTheta, fThetaInd, fWhere, PndEmcMapper::GetTCI(), PndEmcStructure::GetTciXtalMap(), PndEmcMapper::Instance(), PndEmcStructure::Instance(), PndEmcTwoCoordIndex::XCoord(), and PndEmcTwoCoordIndex::YCoord().
|
inline |
Modifiers
Definition at line 84 of file PndEmcDigi.h.
References energy, and fEnergy.
Referenced by PndEmcWaveformToDigi::Exec().
|
inline |
|
staticprivate |
Definition at line 128 of file PndEmcDigi.cxx.
References PndEmcXtal::frontCentre().
Referenced by selectDigiPositionMethod().
|
inline |
Definition at line 111 of file PndEmcDigi.h.
References fWhere.
Referenced by PndEmcClusterDistances::AngularDistance(), PndEmcDigiCalibrator::CalibrationEvtTimeByDigi(), PndEmcClusterMoments::Centre1(), PndEmcClusterMoments::Centre2(), PndEmcCluster::DistanceToCentre(), PndEmcAnalysis::Exec(), PndEmcExpClusterSplitter::Exec(), for(), PndEmcDigiCaloDraw::GetVector(), PndEmcClusterProperties::GravWhere(), PndEmcXClMoments::Init(), PndEmcClusterProperties::LiloWhere(), PndEmcClusterProperties::LinearWhere(), PndEmcClusterProperties::Mass(), PndEmcClusterDistances::RadialDistance(), PndEmcClusterMoments::SecondMoment(), and PndEmcClusterMoments::SecondMomentTP().
|
friend |
Definition at line 43 of file PndEmcDigi.h.
|
friend |
Definition at line 144 of file PndEmcDigi.h.
|
friend |
Definition at line 141 of file PndEmcDigi.h.
|
friend |
Definition at line 143 of file PndEmcDigi.h.
|
friend |
Definition at line 140 of file PndEmcDigi.h.
|
friend |
Definition at line 142 of file PndEmcDigi.h.
|
friend |
Definition at line 139 of file PndEmcDigi.h.
|
friend |
Definition at line 137 of file PndEmcDigi.h.
|
friend |
Definition at line 138 of file PndEmcDigi.h.
|
staticprivate |
Definition at line 154 of file PndEmcDigi.h.
Referenced by PndEmcDigi(), selectDigiPositionMethod(), and SetDetectorId().
|
protected |
Definition at line 126 of file PndEmcDigi.h.
Referenced by equal(), GetCopy(), GetCrystal(), GetDetectorId(), GetModule(), GetRow(), GetTCI(), PndEmcDigi(), and SetDetectorId().
|
static |
Definition at line 52 of file PndEmcDigi.h.
Referenced by PndEmcCorrBump::Exec(), PndEmcWaveformToDigi::Exec(), and InitDigiArrayTBD().
|
protected |
Definition at line 124 of file PndEmcDigi.h.
Referenced by AbsorbEnergy(), PndEmcSharedDigi::GetEnergy(), GetEnergy(), operator<(), Print(), and SetEnergy().
Int_t PndEmcDigi::fEvtNo |
Definition at line 118 of file PndEmcDigi.h.
Referenced by PndEmcCorrBump::Exec(), PndEmcWaveformToDigi::Exec(), PndEmcAnalysis::Exec(), PndEmcExpClusterSplitter::Exec(), and Print().
|
protected |
Definition at line 127 of file PndEmcDigi.h.
Referenced by GetHitIndex().
|
protected |
Definition at line 132 of file PndEmcDigi.h.
Referenced by GetPhi(), operator<(), PndEmcDigi(), and SetDetectorId().
|
protected |
Definition at line 130 of file PndEmcDigi.h.
Referenced by GetPhiInt(), PndEmcDigi(), and SetDetectorId().
|
staticprivate |
Definition at line 157 of file PndEmcDigi.h.
Referenced by depthPosition(), getPositionDepthPWO(), and selectDigiPositionMethod().
|
staticprivate |
Definition at line 158 of file PndEmcDigi.h.
Referenced by depthPosition(), getPositionDepthShashlyk(), and selectDigiPositionMethod().
|
staticprivate |
Definition at line 156 of file PndEmcDigi.h.
Referenced by getRescaleFactor(), and selectDigiPositionMethod().
|
protected |
Definition at line 131 of file PndEmcDigi.h.
Referenced by GetTheta(), operator<(), PndEmcDigi(), and SetDetectorId().
|
protected |
Definition at line 129 of file PndEmcDigi.h.
Referenced by GetThetaInt(), PndEmcDigi(), and SetDetectorId().
|
protected |
Definition at line 125 of file PndEmcDigi.h.
Referenced by GetTrackId(), Print(), and SetTrackId().
|
protected |
Definition at line 128 of file PndEmcDigi.h.
Referenced by PndEmcDigi(), SetDetectorId(), and where().