Commit 1b0fa3c6 authored by Vratislav Chudoba's avatar Vratislav Chudoba

Unimportant fixes.

parent ea9ac0f0
......@@ -16,7 +16,7 @@ int main(int argc, char* argv[])
//to be extracted from the source as parameters
const Int_t noBranches = 4;
const Double_t cfRatio = 0.7;
const Int_t cfTD = 3;
const Double_t cfTD = 3;
Double_t noiseMin = 5;
Double_t noiseMax = 25;
......
......@@ -64,7 +64,7 @@ void AEvent::ProcessEvent() {
SetGraphs();
FindFrontProperties();
SetGraphs();
// SetGraphs();
SetCFD();
SetChargeCFD();
......@@ -132,14 +132,14 @@ void AEvent::SetGraphs() {
void AEvent::SetCFD() {
Double_t level = 100.; //is necessary to find cfd amplitude value closest to zero
// Double_t level = 100.; //is necessary to find cfd amplitude value closest to zero
Double_t time = 0;
fGraphCFD->Set(fNPoints);
//working variables
Double_t maxCFD = 0., minCFD = 0.;
Double_t TmaxCFD = 0., TminCFD = 0.;
Int_t imax = 0, imin = 0;
// Int_t imax = 0, imin = 0;
const Double_t timeStep = 0.05;
for (Int_t i=0; i<fNPoints; i++) {
......@@ -155,14 +155,14 @@ void AEvent::SetCFD() {
if(fAmpCFD[i] > maxCFD) {
maxCFD = fAmpCFD[i];
TmaxCFD = fTime[i];
imax = i;
// imax = i;
}
//point for min CFD amplitude
if(fAmpCFD[i] < minCFD) {
minCFD = fAmpCFD[i];
TminCFD = fTime[i];
imin = i;
// imin = i;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment