#ifndef PNDMVDCALCTOT_H #define PNDMVDCALCTOT_H #include "TObject.h" #include "TString.h" #include "TRandom2.h" #include #include //! Class to calculate the time over threshold /** @author D.-L.Pohl * * This class calculates the time over threshold by using the charge * of a pixel/strip. To calculate the TOT a simple capacitor model (integrator) is used. * The rising time tr [ns] is assumed ti be constant. This leads to a rising straight line. * A constant current unloads the capacitor with a ratio of: a [e/ns]. * The distance between the points of intersection between the resulting triangle * and the threshold line is the TOT. * * q * | * | /\ a * | / \ * |---/----------\--------------- threshold * | / \ * ------------------------------- q = 0 (charge) * | tr| t[ns] * <- TOT -> */ class PndMvdCalcTot { public : ///Default constructor PndMvdCalcTot(){ ftr = 100.; fa = 60.; fthreshold = 3000; fclockfrequency = 50.; ftimestep = 1. / fclockfrequency * 1000.; SetStartOffset(); std::cout<<"-I- : default constructor used!"<