#include "AliTRDpadPlane.h"
#include "AliTRDcluster.h"
#include "AliTRDtrackV1.h"
-#include "AliTRDrawStreamTB.h"
+#include "AliTRDrawStreamBase.h"
#include "AliRawReader.h"
#include "AliRawReaderDate.h"
#include "AliTRDgeometry.h"
,fLinearFitterDebugOn(kFALSE)
,fRelativeScale(0)
,fThresholdClusterPRF2(15.0)
+ ,fLimitChargeIntegration(kFALSE)
,fCalibraMode(new AliTRDCalibraMode())
,fDebugStreamer(0)
,fDebugLevel(0)
,fLinearFitterDebugOn(c.fLinearFitterDebugOn)
,fRelativeScale(c.fRelativeScale)
,fThresholdClusterPRF2(c.fThresholdClusterPRF2)
+ ,fLimitChargeIntegration(c.fLimitChargeIntegration)
,fCalibraMode(0x0)
,fDebugStreamer(0)
,fDebugLevel(c.fDebugLevel)
for(Int_t k = 0; k < npoints; k++){
AliTRDcluster *cl = (AliTRDcluster *) t->GetCluster(k+index0);
- if(!cl->IsInChamber()) continue;
+ if((fLimitChargeIntegration) && (!cl->IsInChamber())) continue;
Double_t ycluster = cl->GetY();
Int_t time = cl->GetPadTime();
Double_t timeis = time/fSf;
AliTRDcluster *cl = 0x0;
for(int ic=0; ic<AliTRDseed::knTimebins; ic++){
if(!(cl = tracklet->GetClusters(ic))) continue;
- if(!cl->IsInChamber()) continue;
+ if((fLimitChargeIntegration) && (!cl->IsInChamber())) continue;
Double_t ycluster = cl->GetY();
Int_t time = cl->GetPadTime();
// Fill the fAmpTotal with the charge
- if (fCH2dOn && cl->IsInChamber()) {
- fAmpTotal[(Int_t) group[0]] += correction;
+ if (fCH2dOn) {
+ if((!fLimitChargeIntegration) || (cl->IsInChamber())) fAmpTotal[(Int_t) group[0]] += correction;
}
// Fill the fPHPlace and value
// DAQ process functions
/////////////////////////////////////////////////////////////////////////////////////////
//_____________________________________________________________________
-Int_t AliTRDCalibraFillHisto::ProcessEventDAQ(AliTRDrawStreamTB *rawStream, Bool_t nocheck)
+Int_t AliTRDCalibraFillHisto::ProcessEventDAQ(AliTRDrawStreamBase *rawStream, Bool_t nocheck)
{
//
- // Event Processing loop - AliTRDrawStreamTB
+ // Event Processing loop - AliTRDrawStreamBase
// TestBeam 2007 version
// 0 timebin problem
// 1 no input
}
//_____________________________________________________________________
-Int_t AliTRDCalibraFillHisto::ProcessEventDAQV1(AliTRDrawStreamTB *rawStream, Bool_t nocheck)
+Int_t AliTRDCalibraFillHisto::ProcessEventDAQV1(AliTRDrawStreamBase *rawStream, Bool_t nocheck)
{
//
- // Event Processing loop - AliTRDrawStreamTB
+ // Event Processing loop - AliTRDrawStreamBase
// Use old AliTRDmcmtracklet code
// 0 timebin problem
// 1 no input
// Testbeam 2007 version
//
- AliTRDrawStreamTB rawStream(rawReader);
+ AliTRDrawStreamBase rawStream(rawReader);
rawReader->Select("TRD");
// use the old mcm traklet code
//
- AliTRDrawStreamTB rawStream(rawReader);
+ AliTRDrawStreamBase rawStream(rawReader);
rawReader->Select("TRD");