fFastOrFiredMap(rec.fFastOrFiredMap){
// Copy constructor.
-
+ for(Int_t i=0; i<3; i++){
+ fkDigClassName[i]=rec.fkDigClassName[i]; // NB only copies Char_t*, so not so safe, but this code should never be reached anyways
+ }
}
//______________________________________________________________________
AliITSDetTypeRec& AliITSDetTypeRec::operator=(const AliITSDetTypeRec& source){
SetSegmentationModel(dettype,seg);
SetDigitClassName(dettype,"AliITSdigitSPD");
}
- if(fLoadOnlySPDCalib==kFALSE){
- if(dettype==1){
- seg = new AliITSsegmentationSDD();
+ if(dettype==1){
+ seg = new AliITSsegmentationSDD();
+ if(fLoadOnlySPDCalib==kFALSE){
AliITSCalibrationSDD* cal=(AliITSCalibrationSDD*)GetCalibrationModel(fgkDefaultNModulesSPD+1);
if(cal->IsAMAt20MHz()){
seg->SetPadSize(seg->Dpz(0),20.);
seg->SetNPads(seg->Npz()/2,128);
}
- SetSegmentationModel(dettype,seg);
- SetDigitClassName(dettype,"AliITSdigitSDD");
}
+ SetSegmentationModel(dettype,seg);
+ SetDigitClassName(dettype,"AliITSdigitSDD");
}
if(dettype==2){
AliITSsegmentationSSD* seg2 = new AliITSsegmentationSSD();
strstr(opt,"SSD")};
Int_t id=0;
- /*
- TClonesArray *array=new TClonesArray("AliITSRecPoint",1000);
- TBranch *branch = treeR->Branch("ITSRecPoints",&array);
- delete array;
- TClonesArray** clusters = new TClonesArray*[GetITSgeom()->GetIndexMax()];
- for (Int_t iModule = 0; iModule < GetITSgeom()->GetIndexMax(); iModule++) {
- clusters[iModule] = NULL;
- }
- */
AliITSRecPointContainer* rpc = AliITSRecPointContainer::Instance();
rpc->FullReset();
TClonesArray* array = rpc->UncheckedGetClusters(0);
DigitsToRecPoints(rawReader,opt);
Int_t nClusters =0;
- // TClonesArray *emptyArray=new TClonesArray("AliITSRecPoint");
for(Int_t iModule=0;iModule<GetITSgeom()->GetIndexMax();iModule++){
id = GetITSgeom()->GetModuleType(iModule);
if (!all && !det[id]) continue;
array = rpc->UncheckedGetClusters(iModule);
if(!array){
AliDebug(1,Form("data for module %d missing!",iModule));
- // array = emptyArray;
}
branch->SetAddress(&array);
treeR->Fill();
nClusters+=array->GetEntriesFast();
- /*
- if (array != emptyArray) {
- array->Delete();
- delete array;
- }
- */
- }
- // delete emptyArray;
- printf("=============== +++++++++++++++++ ===================\n");
- for(Int_t iModule=0;iModule<GetITSgeom()->GetIndexMax();iModule++){
- array = rpc->UncheckedGetClusters(iModule);
- Int_t number = array->GetEntries();
- if(number>0)printf("Module %d has %d clusters\n",iModule,number);
}
+
rpc->FullReset();
AliITSRecPointContainer* rpcont = AliITSRecPointContainer::Instance();
for(Int_t iLay=2; iLay<=6; iLay++) nClu[iLay-1]=rpcont->GetNClustersInLayerFast(iLay);
AliInfo(Form("Number of RecPoints in ITS Layers = %d %d %d %d %d %d, Total = %d",
nClu[0],nClu[1],nClu[2],nClu[3],nClu[4],nClu[5],nClusters));
-
- printf("=============== SECOND +++++++++++++++++ ===================\n");
- for(Int_t iModule=0;iModule<GetITSgeom()->GetIndexMax();iModule++){
- array = rpc->UncheckedGetClusters(iModule);
- Int_t number = array->GetEntries();
- if(number>0)printf("Module %d has %d clusters\n",iModule,number);
- }
-
- // delete[] clusters;
}
//______________________________________________________________________
void AliITSDetTypeRec::DigitsToRecPoints(AliRawReader* rawReader,Option_t *opt){