// Eventually, this class will use the Conditions DB to get the
// various parameters, which code can then request from here.
//
+#include "AliT0.h"
#include "AliLog.h"
#include "AliT0Parameters.h"
#include "AliT0CalibData.h"
#include "AliT0CalibWalk.h"
#include "AliT0CalibTimeEq.h"
+#include "AliT0LookUpKey.h"
#include "AliT0LookUpValue.h"
#include <AliCDBManager.h>
#include <AliCDBEntry.h>
#include <AliCDBStorage.h>
#include <TMath.h>
#include <TSystem.h>
-#include <Riostream.h>
+//#include <Riostream.h>
#include <TGeoManager.h>
#include <TGeoPhysicalNode.h>
+#include <TGeoMatrix.h>
#include <AliGeomManager.h>
AliT0CalibTimeEq* AliT0Parameters::fgCalibData = 0;
fAmpLEDRec(0),
fPMTeff(),
fWalk(0),
+ fQTC(0),
+ fAmpLED(0),
fTimeDelayCFD(0),
// fTimeV0(0),
fTimeDelayTVD(0),
- fMeanT0(500),
+ fMeanT0(512),
+ fMeanVertex(0),
fLookUp(0),
fNumberOfTRMs(2),
fCalibentry(), fLookUpentry(),fSlewCorr()
lookvalue->SetChain(chain);
lookvalue->SetChannel(channel);
lookkey->SetKey(ik);
+ fgLookUp->GetMapLookup()->Add((TObject*)lookvalue,(TObject*)lookkey);
if (channel<6) channel +=2;
else {channel = 0; tdc++;}
- if(ik==57) { tdc=0; channel=0; chain = 1;}
+ if(ik==56) { tdc=0; channel=0; chain = 1;}
- fgLookUp->GetMapLookup()->Add((TObject*)lookvalue,(TObject*)lookkey);
}
fIsInit=kTRUE;
return fgCalibData->GetTimeEq(ipmt);
}
+//__________________________________________________________________
-
-Int_t
-AliT0Parameters::GetMeanT0()
-{
- // return mean of T0 distrubution with vertex=0
- //
+Float_t
+AliT0Parameters:: GetMeanVertex()
+{
if (!fCalibentry)
{
- return fMeanT0;
+ fMeanVertex=0;
+ return fMeanVertex;
}
- return fgCalibData->GetMeanT0();
+ return fgCalibData->GetMeanVertex();
}
//__________________________________________________________________
//__________________________________________________________________
-Float_t AliT0Parameters::GetWalkVal(Int_t ipmt, Float_t mv) const
+TGraph *AliT0Parameters::GetQTC(Int_t ipmt) const
{
if (!fSlewCorr) {
- return ((TGraph*)fWalk.At(ipmt))->Eval(mv);
+ AliError("No walk correction is available!");
+ // return (TGraph*)fQTC.At(ipmt);
+ return 0;
}
- return fgSlewCorr -> GetWalkVal(ipmt, mv) ;
+ return fgSlewCorr -> GetQTC(ipmt) ;
}
+//__________________________________________________________________
+TGraph *AliT0Parameters::GetAmpLED(Int_t ipmt) const
+{
+ if (!fSlewCorr) {
+ AliError("No walk correction is available!");
+ // return (TGraph*)fQTC.At(ipmt);
+ return 0;
+ }
+ return fgSlewCorr -> GetAmpLED(ipmt) ;
+}
//__________________________________________________________________
void