PandaRoot
PndMvdRecoCharge.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 #ifndef PNDMVDRECOCHARGE_H
14 #define PNDMVDRECOCHARGE_H
15 
16 #include <iostream>
17 #include <cmath>
18 #include "PndSdsDigi.h"
19 
20 class PndMvdRecoCharge // calculates the charge of a digipixel for the given tot
21 {
22 
23  public:
25  PndMvdRecoCharge(Double_t tr, Double_t a, Double_t threshold);
26  //~PndMvdPixelCharge();
27  Double_t GetCharge(PndSdsDigi &digi);
28  Double_t GetCharge(Double_t tot);
29 
30  private:
31  Double_t fthreshold; // threshold [e]
32  Double_t ftr; // raising time [ns]
33  Double_t fa; // falling ration [e/ns]
34 };
35 #endif /*PNDMVDRECOCHARGE_H*/
Base class for Digi information.
Definition: PndSdsDigi.h:43
Double_t GetCharge(PndSdsDigi &digi)