#include "AliITSRawStreamSPD.h"
#include "AliITSRawStreamSSD.h"
#include "AliITSRawStreamSDD.h"
-#include "AliITSresponseSDD.h"
#include "AliRawReader.h"
#include "AliRun.h"
#include "AliLog.h"
fDetTypeSim->SetLoader((AliITSLoader*)fLoader);
const Char_t *det[3] = {"SPD","SDD","SSD"};
- Char_t* digclass;
+ const Char_t* digclass;
Int_t buffersize = 4000;
Char_t branchname[30];
}
fDetTypeSim->SetTreeAddressD(digits,(Char_t*)GetName());
AliITSDDLModuleMapSDD* ddlsdd=fDetTypeSim->GetDDLModuleMapSDD();
-
+ Bool_t isHLTmodeC=fDetTypeSim->IsHLTmodeC();
AliITSDDLRawData rawWriter;
+ if(isHLTmodeC) rawWriter.SetUseCompressedSDDFormat(kTRUE);
+ else rawWriter.SetUseCompressedSDDFormat(kFALSE);
//Verbose level
// 0: Silent
// 1: cout messages
TClonesArray** modA = new TClonesArray*[size];
for (Int_t mod = 0; mod < size; mod++) modA[mod] = new TClonesArray("AliITSpListItem", 10000);
- AliLoader* loader = (gAlice->GetRunLoader())->GetLoader("ITSLoader");
+ AliLoader* loader = (AliRunLoader::Instance())->GetLoader("ITSLoader");
if (!loader)
{
Error("Open","Can not get ITS loader from Run Loader");
last = (modA[module])->GetEntries();
TClonesArray& dum = *modA[module];
- fDetTypeSim->GetCalibrationModel(module)->Thresholds(thr,sigma);
+ fDetTypeSim->GetSimuParam()->SPDThresholds(module,thr,sigma);
thr += 1.;
new (dum[last]) AliITSpListItem(-1, -1, module, index, thr);
}
Int_t index = npx * anode + time;
if (module >= size) continue;
- /* 8->10 bit expansion is done in AliITSRawStreamSDD
- // 8bit -> 10 bit
- AliITSresponseSDD *resSDD = (AliITSresponseSDD*) fDetTypeSim->GetResponse(1);
- Int_t signal10 = resSDD->Convert8to10(signal); // signal is a 8 bit value (if the compression is active)
- */
last = modA[module]->GetEntries();
TClonesArray& dum = *modA[module];
new (dum[last]) AliITSpListItem(-1, -1, module, index, Double_t(signal10));