10 : fFitCharge(frag.GetCharge())
57 if(pulse !=
nullptr) {
86 ss <<
"SPI00XN" << std::uppercase << std::uppercase << std::setfill(
'0') << std::setw(2) << std::hex << segment;
98 if(pulse ==
nullptr) {
return 0; }
104 if(channel !=
nullptr) {
117 bool goodfit =
false;
118 if(ShapeFit < 2) { goodfit = pulse->
GetSiliShape(Decay, Rise); }
119 if(ShapeFit == 1 && !goodfit) { ShapeFit++; }
120 if(ShapeFit == 2) { goodfit = pulse->
GetSiliShapeTF1(Decay, Rise, Base); }
122 if(goodfit) {
return 1 + ShapeFit; }
144 std::ostringstream str;
145 str <<
"===============" << std::endl;
146 str <<
"not yet written" << std::endl;
147 str <<
"===============" << std::endl;
158 hit->
Copy(*
this,
true);
197 if(chan ==
nullptr) {
209 if(chan ==
nullptr) {
double CalibrateENG(double) const
double GetWaveDecay() const
static TChannel * FindChannelByName(const char *ccName)
double GetWaveRise() const
double GetWaveBaseLine() const
bool UseWaveParam() const
Double_t SetEnergy(const double &energy) const
virtual double GetEnergy(Option_t *opt="") const
virtual void ClearTransients() const
TChannel * GetChannel() const
!
bool TestHitBit(EBitFlag flag) const
void Clear(Option_t *opt="") override
!
virtual Int_t GetSegment() const
!
void Copy(TObject &) const override
!
void SetHitBit(EBitFlag, Bool_t set=true) const
bool GetSiliShapeTF1(double tauDecay, double tauRise, double baseline, double basefreq=0)
bool GetSiliShape(double tauDecay, double tauRise)
double Get_wpar_amplitude()
double Get_wpar_baselinefin()
std::vector< int16_t > fAddBackSegments
!
static TChannel * GetSiLiHitChannel(int segment)
double GetEnergy(Option_t *opt=nullptr) const override
void Copy(TObject &, bool=false) const override
!
static TPulseAnalyzer * FitFrag(const TFragment &frag, int ShapeFit, int segment)
double GetFitEnergy() const
static int FitPulseAnalyzer(TPulseAnalyzer *pulse, int ShapeFit, int segment)
void Clear(Option_t *opt="") override
TTransientBits< UChar_t > fSiLiHitBits
void SetWavefit(const TFragment &)
bool MagnetShadow() const
std::vector< double > fAddBackEnergy
!
void Print(Option_t *opt="") const override
Double_t GetDefaultDistance() const
TVector3 GetPosition() const override
!
static Int_t GetPreamp(Int_t seg)
static int fFitSiLiShape
!
static double fSiLiDefaultDecay
static Int_t GetPin(Int_t seg)
static double fSiLiDefaultBaseline
static double fSiLiNoiseFac
static double fSiLiDefaultRise
static Int_t GetRing(Int_t seg)
static bool MagnetShadow(Int_t seg)
static Int_t GetSector(Int_t seg)
static TVector3 GetPosition(int ring, int sector, bool smear=false)
Bool_t TestBit(T bit) const