Commit 14537be8 authored by dino's avatar dino
Browse files

Corrected a bug in ReadCalibV02 which was wrongly assigning the vertical...

Corrected a bug in ReadCalibV02 which was wrongly assigning the vertical calibration of the segment traces

git-svn-id: svn://gal-serv.lnl.infn.it/agata/trunk/narval_emulator@1173 170316e4-aea8-4b27-aad4-0380ec0519c9
parent 07d378a0
......@@ -280,9 +280,6 @@ bool adetParams::ReadCalibV02(std::ifstream &cfg, std::string *keys, bool verbos
pCC[corenum].egain = gE;
pCC[corenum].sgain = (tntFactor>0) ? gE*t1*t2/tntFactor : gE;
pCC[corenum].tmove = gT;
//pCC[corenum].tfast = tf;
//pCC[corenum].lambdaH = lH;
//pCC[corenum].lambdaE = lE;
bCC[corenum] = true;
cout << line << endl;
}
......@@ -307,12 +304,9 @@ bool adetParams::ReadCalibV02(std::ifstream &cfg, std::string *keys, bool verbos
pSG[segnum].tfall = t1;
pSG[segnum].trise = t2;
pSG[segnum].egain = gE;
pCC[segnum].sgain = (tntFactor>0) ? gE*t1*t2/tntFactor : gE;
pSG[segnum].sgain = (tntFactor>0) ? gE*t1*t2/tntFactor : gE;
pSG[segnum].emink = gThr;
pSG[segnum].tmove = gT;
//pCC[segnum].tfast = tf;
//pCC[segnum].lambdaH = lH;
//pCC[segnum].lambdaE = lE;
bSG[segnum] = true;
if(bSegEmin)
pSG[segnum].emink = max(vSegEmin, pSG[segnum].emink);
......
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