if ( fParameterList[AliRecoParam::AConvert(fEventSpecie)] == NULL )
{
fParameterList[AliRecoParam::AConvert(fEventSpecie)] = new TList() ;
- fParameterList[AliRecoParam::AConvert(fEventSpecie)]->SetOwner(kTRUE);
+ // fParameterList[AliRecoParam::AConvert(fEventSpecie)]->SetOwner(kTRUE);
}
fParameterList[AliRecoParam::AConvert(fEventSpecie)]->Add(p) ;
}
{
// fills single histo or its trigger-dependent clones, return number of histos filled
TObjArray* arr = GetMatchingHistos(list,index);
- int count = arr->GetEntriesFast();
- for (int ih=count;ih--;) ((TH1*)arr->At(ih))->Fill(x);
+ int count = 0;
+ if (arr) {
+ count = arr->GetEntriesFast();
+ for (int ih=count;ih--;) ((TH1*)arr->At(ih))->Fill(x);
+ }
return count;
}
{
// fills single histo or its trigger-dependent clones, return number of histos filled
TObjArray* arr = GetMatchingHistos(list,index);
- int count = arr->GetEntriesFast();
- for (int ih=count;ih--;) ((TH1*)arr->At(ih))->Fill(x,y);
+ int count = 0;
+ if (arr) {
+ count = arr->GetEntriesFast();
+ for (int ih=count;ih--;) ((TH1*)arr->At(ih))->Fill(x,y);
+ }
return count;
}
{
// fills single histo or its trigger-dependent clones, return number of histos filled
TObjArray* arr = GetMatchingHistos(list,index);
- int count = arr->GetEntriesFast();
- for (int ih=count;ih--;) ((TH2*)arr->At(ih))->Fill(x,y,z);
+ int count = 0;
+ if (arr) {
+ count = arr->GetEntriesFast();
+ for (int ih=count;ih--;) ((TH2*)arr->At(ih))->Fill(x,y,z);
+ }
return count;
}
{
// set bin content of single histo or its trigger-dependent clones, return number of histos filled
TObjArray* arr = GetMatchingHistos(list,index);
- int count = arr->GetEntriesFast();
- for (int ih=count;ih--;) ((TH2*)arr->At(ih))->SetBinContent(bin,w);
+ int count = 0;
+ if (arr) {
+ count = arr->GetEntriesFast();
+ for (int ih=count;ih--;) ((TH2*)arr->At(ih))->SetBinContent(bin,w);
+ }
return count;
}
{
// set bin content of single histo or its trigger-dependent clones, return number of histos filled
TObjArray* arr = GetMatchingHistos(list,index);
- int count = arr->GetEntriesFast();
- for (int ih=count;ih--;) ((TH2*)arr->At(ih))->SetBinContent(binX,binY,w);
+ int count = 0;
+ if (arr) {
+ count = arr->GetEntriesFast();
+ for (int ih=count;ih--;) ((TH2*)arr->At(ih))->SetBinContent(binX,binY,w);
+ }
return count;
}
{
// set bin content of single histo or its trigger-dependent clones, return number of histos filled
TObjArray* arr = GetMatchingHistos(list,index);
- int count = arr->GetEntriesFast();
- for (int ih=count;ih--;) ((TH2*)arr->At(ih))->SetBinError(bin,err);
+ int count = 0;
+ if (arr) {
+ count = arr->GetEntriesFast();
+ for (int ih=count;ih--;) ((TH2*)arr->At(ih))->SetBinError(bin,err);
+ }
return count;
}
{
// set bin content of single histo or its trigger-dependent clones, return number of histos filled
TObjArray* arr = GetMatchingHistos(list,index);
- int count = arr->GetEntriesFast();
- for (int ih=count;ih--;) ((TH2*)arr->At(ih))->SetBinError(binX,binY,err);
+ int count = 0;
+ if (arr) {
+ count = arr->GetEntriesFast();
+ for (int ih=count;ih--;) ((TH2*)arr->At(ih))->SetBinError(binX,binY,err);
+ }
return count;
}
{
// reset content of single histo or its trigger-dependent clones, return number of histos processed
TObjArray* arr = GetMatchingHistos(list,index);
- int count = arr->GetEntriesFast();
- for (int ih=count;ih--;) ((TH2*)arr->At(ih))->Reset(option);
+ int count = 0;
+ if (arr) {
+ count = arr->GetEntriesFast();
+ for (int ih=count;ih--;) ((TH2*)arr->At(ih))->Reset(option);
+ }
return count;
}
{
// reset stats of single histo or its trigger-dependent clones, return number of histos processed
TObjArray* arr = GetMatchingHistos(list,index);
- int count = arr->GetEntriesFast();
- for (int ih=count;ih--;) ((TH2*)arr->At(ih))->ResetStats();
+ int count = 0;
+ if (arr) {
+ count = arr->GetEntriesFast();
+ for (int ih=count;ih--;) ((TH2*)arr->At(ih))->ResetStats();
+ }
return count;
}
// get all histos for cloneID-th trigger class (-1 is for original "all-triggers" histos) in
// a single array (if dest is not provided, use its own static array).
// Existing histos are attached at their original positions
+ if (!list) return 0x0;
TObjArray* arr = list[specieIndex] ;
return GetDataOfTrigClass(arr, cloneID, dest);
}