FairRoot/PandaRoot
|
#include <PndHypCalcStrip.h>
Public Member Functions | |
PndHypCalcStrip () | |
PndHypCalcStrip (Double_t pitch, Double_t orient, Int_t nrStrips, Int_t nrFeChannels, const TVector2 &firstStripAnchor, Double_t threshold, Double_t noise) | |
PndHypCalcStrip (const PndHypStripDigiPar *digipar, SensorSide side=kTOP) | |
std::vector< PndHypStrip > | GetStrips (Double_t inx, Double_t iny, Double_t inz, Double_t outx, Double_t outy, Double_t outz, Double_t eLoss, int id) |
Int_t | CalcFEfromStrip (Int_t stripNr) const |
Int_t | CalcChannelfromStrip (Int_t stripNr) const |
void | CalcFeChToStrip (Int_t fe, Int_t channel, Int_t &strip, enum SensorSide &side) const |
void | CalcStripPointOnLine (const Double_t strip, TVector2 &point) const |
const TVector2 | GetStripDirection () const |
void | SetVerboseLevel (Int_t level) |
void | SetreStrip (Int_t reStp) |
void | SetAnchor (TVector2 edge) |
void | print () const |
Private Member Functions | |
Double_t | CalcStripFromPoint (Double_t x, Double_t y) |
Double_t | SmearCharge (Double_t charge) |
Double_t | ChargeFromEloss (Double_t eloss) const |
Private Attributes | |
Double_t | fPitch |
Double_t | fOrient |
strip pitch (cm) More... | |
Int_t | fNrStrips |
strip orientation angle More... | |
Int_t | fNrFeChannels |
Nr. of strips on active area. More... | |
Double_t | fThreshold |
Nr of Channels per FE. More... | |
Double_t | fNoise |
charge threshold More... | |
TVector2 | fAnchor |
ENC. More... | |
TVector2 | fStripDir |
anchor point on first strip More... | |
TVector2 | fOrthoDir |
vector perpendicular to strip direction More... | |
TRandom3 * | fRNG |
vector orthogonal to strip direction More... | |
Int_t | fVerboseLevel |
Random Number Generator. More... | |
Int_t | fsize |
int | _id |
Definition at line 28 of file PndHypCalcStrip.h.
PndHypCalcStrip::PndHypCalcStrip | ( | ) |
Definition at line 20 of file PndHypCalcStrip.cxx.
References fAnchor, fNoise, fNrStrips, fOrient, fPitch, fRNG, fThreshold, and fVerboseLevel.
PndHypCalcStrip::PndHypCalcStrip | ( | Double_t | pitch, |
Double_t | orient, | ||
Int_t | nrStrips, | ||
Int_t | nrFeChannels, | ||
const TVector2 & | firstStripAnchor, | ||
Double_t | threshold, | ||
Double_t | noise | ||
) |
Definition at line 31 of file PndHypCalcStrip.cxx.
References cos(), fOrient, fOrthoDir, fRNG, fStripDir, fVerboseLevel, and sin().
PndHypCalcStrip::PndHypCalcStrip | ( | const PndHypStripDigiPar * | digipar, |
SensorSide | side = kTOP |
||
) |
Definition at line 47 of file PndHypCalcStrip.cxx.
References cos(), fAnchor, fNoise, fNrFeChannels, fNrStrips, fOrient, fOrthoDir, fPitch, fRNG, fStripDir, fThreshold, fVerboseLevel, PndHypStripDigiPar::GetBotAnchor(), PndHypStripDigiPar::GetBotPitch(), PndHypStripDigiPar::GetNoise(), PndHypStripDigiPar::GetNrBotFE(), PndHypStripDigiPar::GetNrFECh(), PndHypStripDigiPar::GetNrTopFE(), PndHypStripDigiPar::GetOrient(), PndHypStripDigiPar::GetSkew(), PndHypStripDigiPar::GetThreshold(), PndHypStripDigiPar::GetTopAnchor(), PndHypStripDigiPar::GetTopPitch(), kBOTTOM, kTOP, and sin().
Int_t PndHypCalcStrip::CalcChannelfromStrip | ( | Int_t | stripNr | ) | const |
84 * Calculate Channel index (on Frontend) from strip-index 85 *
stripNr | strip index 86 * |
Definition at line 240 of file PndHypCalcStrip.cxx.
References fNrFeChannels.
Referenced by PndHypStripHitProducer::Exec().
void PndHypCalcStrip::CalcFeChToStrip | ( | Int_t | fe, |
Int_t | channel, | ||
Int_t & | strip, | ||
enum SensorSide & | side | ||
) | const |
91 * Calculate global strip index from Frontend number and -channel 92 *
fe | frontend number 93 * |
channel | frontend channel 94 * |
strip | global strip index 95 * |
side | 96 |
Definition at line 242 of file PndHypCalcStrip.cxx.
References fNrFeChannels, fNrStrips, kBOTTOM, and kTOP.
Referenced by PndHypStripClusterTask::Exec().
Int_t PndHypCalcStrip::CalcFEfromStrip | ( | Int_t | stripNr | ) | const |
Calculate Frontend number from strip-index
stripNr | strip index |
Definition at line 238 of file PndHypCalcStrip.cxx.
References fNrFeChannels.
Referenced by PndHypStripHitProducer::Exec().
125 * Calculate continuous strip-number parameter from given Point in local system 126 *
x | x-coordinate 127 * |
y | y-coordinate 128 * |
Definition at line 229 of file PndHypCalcStrip.cxx.
References fAnchor, fOrthoDir, and fPitch.
Referenced by GetStrips().
void PndHypCalcStrip::CalcStripPointOnLine | ( | const Double_t | strip, |
TVector2 & | point | ||
) | const |
Definition at line 262 of file PndHypCalcStrip.cxx.
References fAnchor, fOrthoDir, and fPitch.
Referenced by PndHypStripClusterTask::Exec().
|
inline |
Get Strip Direction (strip orientation angle)
Definition at line 72 of file PndHypCalcStrip.h.
References fStripDir.
Referenced by PndHypStripClusterTask::Exec().
std::vector< PndHypStrip > PndHypCalcStrip::GetStrips | ( | Double_t | inx, |
Double_t | iny, | ||
Double_t | inz, | ||
Double_t | outx, | ||
Double_t | outy, | ||
Double_t | outz, | ||
Double_t | eLoss, | ||
int | id | ||
) |
Definition at line 77 of file PndHypCalcStrip.cxx.
References CalcStripFromPoint(), ChargeFromEloss(), Double_t, fabs(), fNrStrips, fThreshold, fVerboseLevel, n, out, and SmearCharge().
Referenced by PndHypStripHitProducer::Exec().
void PndHypCalcStrip::print | ( | ) | const |
Definition at line 268 of file PndHypCalcStrip.cxx.
References fAnchor, fNrFeChannels, fNrStrips, fOrient, fPitch, fStripDir, and Pi.
|
inline |
Definition at line 77 of file PndHypCalcStrip.h.
References fAnchor.
Referenced by PndHypStripHitProducer::Exec().
|
inline |
Definition at line 76 of file PndHypCalcStrip.h.
References fNrStrips.
Referenced by PndHypStripHitProducer::Exec().
|
inline |
Definition at line 74 of file PndHypCalcStrip.h.
References fVerboseLevel.
Referenced by PndHypStripHitProducer::Exec(), and PndHypStripHitProducer::Init().
133 * Apply gaussian distributed noise to given charge 134 *
charge | Equivalent Noise Charge 135 * |
Definition at line 222 of file PndHypCalcStrip.cxx.
References Double_t, fNoise, fRNG, and fVerboseLevel.
Referenced by GetStrips().
|
private |
Definition at line 100 of file PndHypCalcStrip.h.
|
private |
ENC.
Definition at line 92 of file PndHypCalcStrip.h.
Referenced by CalcStripFromPoint(), CalcStripPointOnLine(), PndHypCalcStrip(), print(), and SetAnchor().
|
private |
charge threshold
Definition at line 91 of file PndHypCalcStrip.h.
Referenced by PndHypCalcStrip(), and SmearCharge().
|
private |
Nr. of strips on active area.
Definition at line 89 of file PndHypCalcStrip.h.
Referenced by CalcChannelfromStrip(), CalcFeChToStrip(), CalcFEfromStrip(), PndHypCalcStrip(), and print().
|
private |
strip orientation angle
Definition at line 88 of file PndHypCalcStrip.h.
Referenced by CalcFeChToStrip(), GetStrips(), PndHypCalcStrip(), print(), and SetreStrip().
|
private |
strip pitch (cm)
Definition at line 87 of file PndHypCalcStrip.h.
Referenced by PndHypCalcStrip(), and print().
|
private |
vector perpendicular to strip direction
Definition at line 94 of file PndHypCalcStrip.h.
Referenced by CalcStripFromPoint(), CalcStripPointOnLine(), and PndHypCalcStrip().
|
private |
Definition at line 86 of file PndHypCalcStrip.h.
Referenced by CalcStripFromPoint(), CalcStripPointOnLine(), PndHypCalcStrip(), and print().
|
private |
vector orthogonal to strip direction
Definition at line 95 of file PndHypCalcStrip.h.
Referenced by PndHypCalcStrip(), and SmearCharge().
|
private |
Definition at line 97 of file PndHypCalcStrip.h.
|
private |
anchor point on first strip
Definition at line 93 of file PndHypCalcStrip.h.
Referenced by GetStripDirection(), PndHypCalcStrip(), and print().
|
private |
Nr of Channels per FE.
Definition at line 90 of file PndHypCalcStrip.h.
Referenced by GetStrips(), and PndHypCalcStrip().
|
private |
Random Number Generator.
Definition at line 96 of file PndHypCalcStrip.h.
Referenced by GetStrips(), PndHypCalcStrip(), SetVerboseLevel(), and SmearCharge().