TPNPulse

Macros

Line Code
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
#ifndef TPNPulse_H
#define TPNPulse_H

#include "TObject.h"
#include <vector>

class TPNPulse : public TObject {
private:
  int _nsamples;
  int _presample;

  double* adc_;
  bool isMaxFound_;
  bool isPedCalc_;
  double adcMax_;
  int iadcMax_;
  double pedestal_;

  void init(int, int);

public:
  // Default Constructor, mainly for Root
  TPNPulse();

  // Constructor
  TPNPulse(int, int);

  // Destructor: Does nothing
  ~TPNPulse() override;

  bool setPulse(double*);
  double getMax();
  int getMaxSample();
  double getPedestal();
  double* getAdcWithoutPedestal();
  void setPresamples(int);
  ClassDefOverride(TPNPulse, 0)
};

#endif