1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
// PulseFit.h
//
// Class which computes
//
//
#ifndef PulseFit_H
#define PulseFit_H
#include "TObject.h"
#include <CalibCalorimetry/EcalLaserAnalyzer/interface/Shape.h>
class PulseFit : public TObject {
public:
// Default Constructor, mainly for Root
PulseFit();
// Destructor: Does nothing?
~PulseFit() override;
// Get reconstructed values
double getAmplitude() const;
double getTime() const;
double getPedestal() const;
double getChi2() const;
//! return the cristal number (supermodule convention [0-1699])
int getSmCrystalNb() const;
//! set the cristal number (supermodule convention [0-1699])
void setSmCrystalNb(const int& crystalNb);
protected:
double amplitude_; /// amplitude of the pulse
double time_; /// position (in clock unit) of the maximum of the pulse
double pedestal_; /// remaining pedestal
double chi2_; /// chi2 of the fit
int smCrystalNb_; /// cristal number in the supermodule
//H4Analysis * h4ana_ ; //!< pointer to current analysis
//H4Shape * shape_ ; //!< pointer to current shape
// ClassDef(PulseFit,1) //!< The processed part of the class is persistant
};
#endif
|