#include "AliTPCCalPad.h"
#include "AliTPCCalROC.h"
#include "AliTPCExB.h"
+#include "AliCTPTimeParams.h"
#include "AliRawReader.h"
#include "AliTPCRawStreamV3.h"
#include "TTreeStream.h"
"\n";
}
}
+ if (AliTPCcalibDB::Instance()->IsTrgL0()){
+ // Modification 14.03
+ // distinguish between the L0 and L1 trigger as it is done in the reconstruction
+ // by defualt we assume L1 trigger is used - make a correction in case of L0
+ AliCTPTimeParams* ctp = AliTPCcalibDB::Instance()->GetCTPTimeParams();
+ if (ctp){
+ //for TPC standalone runs no ctp info
+ Double_t delay = ctp->GetDelayL1L0()*0.000000025;
+ xyz[2]+=delay/fTPCParam->GetTSample(); // adding the delay (in the AliTPCTramsform opposite sign)
+ }
+ }
xyz[2]+=correction;
xyz[2]+=fTPCParam->GetNTBinsL1(); // adding Level 1 time bin offset
//