fMacroList->Add(new TObjString(entryName));
fMacroList->Sort();
+ // We do not know, where the element has been inserted - deselect this list
+ fMacroListSelected = 0;
+
returnValue = SUCCESS;
}
else if (isSelectionMacro && fMacroSelList->FindObject(entryName) == 0)
{
fMacroSelList->Add(new TObjString(entryName));
fMacroSelList->Sort();
+
+ // We do not know, where the element has been inserted - deselect this list
+ fMacroSelListSelected = 0;
returnValue = SUCCESS;
}
{
fMacroSelList->Add(new TObjString(entry));
fMacroSelList->Sort();
+
+ // We do not know, where the element has been inserted - deselect this list
+ fMacroSelListSelected = 0;
}
else
{
fMacroList->Add(new TObjString(entry));
fMacroList->Sort();
+
+ // We do not know, where the element has been inserted - deselect this list
+ fMacroListSelected = 0;
}
}
AliEveTRDTrack* track = 0;
AliTRDtrackV1 *trackv1 = 0;
+ TH1* returnedHist = 0x0;
// Clear root
gROOT->Reset();
// Process for macro type 2 (histo)
if (isHistoMacro[i])
{
- if (histos[histoIndex] == 0) histos[histoIndex] = (TH1*)gROOT->ProcessLineSync(cmds[i]);
- else histos[histoIndex]->Add((const TH1*)gROOT->ProcessLineSync(cmds[i]));
+ returnedHist = (TH1*)gROOT->ProcessLineSync(cmds[i]);
+ if (returnedHist != 0x0)
+ {
+ if (histos[histoIndex] == 0) histos[histoIndex] = (TH1*)gROOT->ProcessLineSync(cmds[i]);
+ else histos[histoIndex]->Add((const TH1*)gROOT->ProcessLineSync(cmds[i]));
+
+ delete returnedHist;
+ returnedHist = 0;
+ }
histoIndex++;
}
// Process for macro type 1
ph->GetXaxis()->SetTitle("drift time [1/100ns]");
ph->GetYaxis()->SetTitle("<PH> [a.u.]");
- for (Int_t ily = 0; ily < AliTRDgeometry::kNlayer; ily++){
+ for (Int_t ily = 0; ily < AliTRDgeometry::kNlayer; ily++) {
if(!(tracklet = track->GetTracklet(ily))) continue;
if(!tracklet->IsOK()) continue;
return ph;
}
+
AliTRDcluster* cls = 0;
AliTRDseedV1 *tracklet = 0x0;
- // Count cluster
+ // Count clusters
nResults = 0;
for (Int_t trackletInd = 0; trackletInd < Nt; trackletInd++)
{
}
}
+ // Nothing to do?
+ if (nResults == 0) return;
+
// Allocate memory for the results (AliEveTRDTrackList will clean this memory automatically)
results = new Double_t[nResults];
for (Int_t i = 0; i < nResults; i++) results[i] = -100;
Int_t currentIndex = 0;
- for (Int_t trackletInd = 0; trackletInd < Nt; trackletInd++)
+ for (Int_t trackletInd = 0; trackletInd < Nt && currentIndex < nResults; trackletInd++)
{
if(!(tracklet = track->GetTracklet(trackletInd))) continue;
if(!tracklet->IsOK()) continue;
- for (Int_t clusterInd = 0; clusterInd < 34; clusterInd++)
+ for (Int_t clusterInd = 0; clusterInd < AliTRDseed::knTimebins; clusterInd++)
{
if(!(cls = tracklet->GetClusters(clusterInd))) continue;