if (!el)
{
- Error("AliEveListAnalyser::AddPrimSelectedObject", "Zero pointer!\n");
+ Error("AliEveListAnalyser::AddPrimSelectedObject", "Zero pointer!");
return ERROR;
}
TEvePointSet* ps = dynamic_cast<TEvePointSet*>((TQObject*) gTQSender);
if (!ps)
{
- Error("AliEveListAnalyser::AddSecSelectedSingleObjectToList", "Zero pointer!\n");
+ Error("AliEveListAnalyser::AddSecSelectedSingleObjectToList", "Zero pointer!");
return;
}
cwd->cd();
}
if (!fDataTree){
- Error("Apply process macros", Form("File \"/tmp/ListAnalyserMacroData_%s.root\" could not be accessed properly!",
- gSystem->Getenv("USER")));
+ Error("Apply process macros", "File \"/tmp/ListAnalyserMacroData_%s.root\" could not be accessed properly!",
+ gSystem->Getenv("USER"));
return kFALSE;
}
if (!macro){
Error("Apply process macros",
- Form("Macro list is corrupted: Macro \"%s\" is not registered!",
- procIterator->At(i)->GetTitle()));
+ "Macro list is corrupted: Macro \"%s\" is not registered!",
+ procIterator->At(i)->GetTitle());
continue;
}
fDataFromMacroList->Add(new TObjString(macro->GetName()));
} else {
Error("Apply process macros",
- Form("Macro list corrupted: Macro \"%s/%s.C\" is not registered as a process macro!",
- macro->GetPath(), macro->GetName()));
+ "Macro list corrupted: Macro \"%s/%s.C\" is not registered as a process macro!",
+ macro->GetPath(), macro->GetName());
mProcType[i] = kUnknown;
}
}
if (!macro){
Error("Apply process macros",
- Form("Macro list is corrupted: Macro \"%s\" is not registered!",
- selIterator->At(i)->GetTitle()));
+ "Macro list is corrupted: Macro \"%s\" is not registered!",
+ selIterator->At(i)->GetTitle());
continue;
}
selCmds[i] = macro->GetCmd();
} else {
Error("Apply process macros",
- Form("Macro list corrupted: Macro \"%s/%s.C\" is not registered as a selection macro!",
- macro->GetPath(), macro->GetName()));
+ "Macro list corrupted: Macro \"%s/%s.C\" is not registered as a selection macro!",
+ macro->GetPath(), macro->GetName());
mSelType[i] = kUnknown;
}
}
Int_t nResults = (Int_t)gROOT->ProcessLineSync("n;");
if (results == 0) {
- Error("Apply macros", Form("Error reading data from macro \"%s\"", procIterator->At(i)->GetTitle()));
+ Error("Apply macros", "Error reading data from macro \"%s\"", procIterator->At(i)->GetTitle());
continue;
}
for (Int_t resInd = 0; resInd < nResults; resInd++){
Int_t nResults = (Int_t)gROOT->ProcessLineSync("n;");
if (results == 0) {
- Error("Apply macros", Form("Error reading data from macro \"%s\"", procIterator->At(i)->GetTitle()));
+ Error("Apply macros", "Error reading data from macro \"%s\"", procIterator->At(i)->GetTitle());
continue;
}
for (Int_t resInd = 0; resInd < nResults; resInd++) {
if (!macro){
Error("Apply selection macros",
- Form("Macro list is corrupted: Macro \"%s\" is not registered!", iterator->At(i)->GetTitle()));
+ "Macro list is corrupted: Macro \"%s\" is not registered!", iterator->At(i)->GetTitle());
continue;
}
continue;
} else {
Error("Apply selection macros",
- Form("Macro list corrupted: Macro \"%s/%s.C\" is not registered as a selection macro!",
- macro->GetPath(), macro->GetName()));
+ "Macro list corrupted: Macro \"%s/%s.C\" is not registered as a selection macro!",
+ macro->GetPath(), macro->GetName());
}
}
if (entry == 0)
{
- Error("AliEveListAnalyser::RemoveSelectedMacros", Form("Macro \"%s\" not found in list!",
- iterator->At(i)->GetTitle()));
+ Error("AliEveListAnalyser::RemoveSelectedMacros", "Macro \"%s\" not found in list!",
+ iterator->At(i)->GetTitle());
continue;
}
key = entry->Key();
if (key == 0)
{
- Error("AliEveListAnalyser::RemoveSelectedMacros", Form("Key for macro \"%s\" not found in list!",
- iterator->At(i)->GetTitle()));
+ Error("AliEveListAnalyser::RemoveSelectedMacros", "Key for macro \"%s\" not found in list!",
+ iterator->At(i)->GetTitle());
continue;
}
}
else
{
- Error("AliEveListAnalyser::RemoveSelectedMacros", Form("Macro \"%s\" could not be removed from the list!",
- iterator->At(i)->GetTitle()));
+ Error("AliEveListAnalyser::RemoveSelectedMacros", "Macro \"%s\" could not be removed from the list!",
+ iterator->At(i)->GetTitle());
}
}
}
}
//______________________________________________________________________________
-void AliEveTRDClusters::Load(Char_t *w) const
+void AliEveTRDClusters::Load(const Char_t *w) const
{
Int_t typ = -1;
if(strcmp(w, "hit")==0) typ = 0;
}
//______________________________________________________________________________
-void AliEveTRDTrack::Load(Char_t *what) const
+void AliEveTRDTrack::Load(const Char_t *what) const
{
// Spread downwards to tracklets the command "what"
public:
AliEveTRDClusters();
- void Load(Char_t *what="all") const; // *MENU*
+ void Load(const Char_t *what="all") const; // *MENU*
void PointSelected(Int_t n);
void Print(Option_t *o = "") const; // *MENU*
AliEveTRDTracklet(AliTRDseedV1 *trklt);
~AliEveTRDTracklet();
AliEveTRDClusters* GetClusters() const {return fClusters;}
- inline void Load(Char_t *what="all") const; // *MENU*
+ inline void Load(const Char_t *what="all") const; // *MENU*
void Print(Option_t *o="") const; // *MENU*
private:
ClassDef(AliEveTRDTracklet, 0); // TRD tracklet visualisation
};
-void AliEveTRDTracklet::Load(Char_t *what) const
+void AliEveTRDTracklet::Load(const Char_t *what) const
{
if(fClusters) fClusters->Load(what);
}
virtual ~AliEveTRDTrack();
//AliEveTRDTracklet* GetTracklet(Int_t plane) const {return plane <6 && plane >= 0 ? fTracklet[plane] : NULL;}
void Print(Option_t *opt="a") const; // *MENU*
- void Load(Char_t *what="all") const; // *MENU*
+ void Load(const Char_t *what="all") const; // *MENU*
void SetStatus(UChar_t s=0); // *MENU*
void SetESDstatus(ULong_t stat) {fESDStatus = stat;}
private:
//
if(!fGeo){
- Error("LoadTracklets()", Form("Geometry not set for chamber %d. Please call first AliEveTRDChamber::SetGeometry().", fDet));
+ Error("LoadTracklets()", "Geometry not set for chamber %d. Please call first AliEveTRDChamber::SetGeometry().", fDet);
return;
}
cwd->cd();
}
if (!fDataTree){
- Error("Apply process macros", Form("File \"/tmp/TRD.TrackListMacroData_%s.root\" could not be accessed properly!", gSystem->Getenv("USER")));
+ Error("Apply process macros", "File \"/tmp/TRD.TrackListMacroData_%s.root\" could not be accessed properly!", gSystem->Getenv("USER"));
return kFALSE;
}
if (!macro){
Error("Apply process macros",
- Form("Macro list is corrupted: Macro \"%s\" is not registered!",
- procIterator->At(i)->GetTitle()));
+ "Macro list is corrupted: Macro \"%s\" is not registered!",
+ procIterator->At(i)->GetTitle());
continue;
}
fDataFromMacroList->Add(new TObjString(macro->GetName()));
} else {
Error("Apply process macros",
- Form("Macro list corrupted: Macro \"%s/%s.C\" is not registered as a process macro!",
- macro->GetPath(), macro->GetName()));
+ "Macro list corrupted: Macro \"%s/%s.C\" is not registered as a process macro!",
+ macro->GetPath(), macro->GetName());
mProcType[i] = kUnknown;
}
}
if (!macro){
Error("Apply process macros",
- Form("Macro list is corrupted: Macro \"%s\" is not registered!",
- selIterator->At(i)->GetTitle()));
+ "Macro list is corrupted: Macro \"%s\" is not registered!",
+ selIterator->At(i)->GetTitle());
continue;
}
if(selCmds) selCmds[i] = macro->GetCmd();
} else {
Error("Apply process macros",
- Form("Macro list corrupted: Macro \"%s/%s.C\" is not registered as a selection macro!",
- macro->GetPath(), macro->GetName()));
+ "Macro list corrupted: Macro \"%s/%s.C\" is not registered as a selection macro!",
+ macro->GetPath(), macro->GetName());
if(mSelType) mSelType[i] = kUnknown;
}
}
Int_t nResults = (Int_t)gROOT->ProcessLineSync("n;");
if (results == 0) {
- Error("Apply macros", Form("Error reading data from macro \"%s\"", procIterator->At(i)->GetTitle()));
+ Error("Apply macros", "Error reading data from macro \"%s\"", procIterator->At(i)->GetTitle());
continue;
}
for (Int_t resInd = 0; resInd < nResults; resInd++){
Int_t nResults = (Int_t)gROOT->ProcessLineSync("n;");
if (results == 0) {
- Error("Apply macros", Form("Error reading data from macro \"%s\"", procIterator->At(i)->GetTitle()));
+ Error("Apply macros", "Error reading data from macro \"%s\"", procIterator->At(i)->GetTitle());
continue;
}
for (Int_t resInd = 0; resInd < nResults; resInd++) {
if (!macro){
Error("Apply selection macros",
- Form("Macro list is corrupted: Macro \"%s\" is not registered!", iterator->At(i)->GetTitle()));
+ "Macro list is corrupted: Macro \"%s\" is not registered!", iterator->At(i)->GetTitle());
continue;
}
continue;
} else {
Error("Apply selection macros",
- Form("Macro list corrupted: Macro \"%s/%s.C\" is not registered as a selection macro!",
- macro->GetPath(), macro->GetName()));
+ "Macro list corrupted: Macro \"%s/%s.C\" is not registered as a selection macro!",
+ macro->GetPath(), macro->GetName());
}
}
if (entry == 0)
{
- Error("AliEveTRDTrackList::RemoveSelectedMacros", Form("Macro \"%s\" not found in list!",
- iterator->At(i)->GetTitle()));
+ Error("AliEveTRDTrackList::RemoveSelectedMacros", "Macro \"%s\" not found in list!",
+ iterator->At(i)->GetTitle());
continue;
}
key = entry->Key();
if (key == 0)
{
- Error("AliEveTRDTrackList::RemoveSelectedMacros", Form("Key for macro \"%s\" not found in list!",
- iterator->At(i)->GetTitle()));
+ Error("AliEveTRDTrackList::RemoveSelectedMacros", "Key for macro \"%s\" not found in list!",
+ iterator->At(i)->GetTitle());
continue;
}
}
else
{
- Error("AliEveTRDTrackList::RemoveSelectedMacros", Form("Macro \"%s\" could not be removed from the list!",
- iterator->At(i)->GetTitle()));
+ Error("AliEveTRDTrackList::RemoveSelectedMacros", "Macro \"%s\" could not be removed from the list!",
+ iterator->At(i)->GetTitle());
}
}
}
TFile* file = new TFile(Form("/tmp/TRD.TrackListMacroData_%s.root", gSystem->Getenv("USER")), "READ");
if (!file)
{
- Error("Draw histograms", Form("Cannot open file \"/tmp/TRD.TrackListMacroData_%s.root\"",
- gSystem->Getenv("USER")));
+ Error("Draw histograms", "Cannot open file \"/tmp/TRD.TrackListMacroData_%s.root\"",
+ gSystem->Getenv("USER"));
new TGMsgBox(gClient->GetRoot(), GetMainFrame(), "Error - Draw histograms",
Form("Cannot open file \"/tmp/TRD.TrackListMacroData_%s.root\"", gSystem->Getenv("USER")),
kMBIconExclamation, kMBOk);
if (myHist != 0) myHist->Draw();
else
{
- Error("Draw histograms", Form("No histogram for histo macro \"%s\" found!",
- fM->fDataFromMacroList->At(indexOfHistoMacro)->GetName()));
+ Error("Draw histograms", "No histogram for histo macro \"%s\" found!",
+ fM->fDataFromMacroList->At(indexOfHistoMacro)->GetName());
new TGMsgBox(gClient->GetRoot(), GetMainFrame(), "Error - Draw histograms",
Form("No histogram for histo macro \"%s\" found!",
fM->fDataFromMacroList->At(indexOfHistoMacro)->GetName()), kMBIconExclamation, kMBOk);
}
else
{
- Error("Draw histograms", Form("No data for histo macro \"%s\" found!\nMaybe no tracks have been selected.",
- fM->fDataFromMacroList->At(indexOfHistoMacro)->GetName()));
+ Error("Draw histograms", "No data for histo macro \"%s\" found!\nMaybe no tracks have been selected.",
+ fM->fDataFromMacroList->At(indexOfHistoMacro)->GetName());
new TGMsgBox(gClient->GetRoot(), GetMainFrame(), "Error - Draw histograms",
Form("No data for histo macro \"%s\" found!\nMaybe no tracks have been selected.",
fM->fDataFromMacroList->At(indexOfHistoMacro)->GetName()), kMBIconExclamation, kMBOk);
indexOfMacro1 = i;
if (!(t = (TTree*)file->Get(Form("TrackData%d", i))))
{
- Error("Draw histograms", Form("No data for macro \"%s\" found!\nMaybe no tracks have been selected.",
- fM->fDataFromMacroList->At(i)->GetName()));
+ Error("Draw histograms", "No data for macro \"%s\" found!\nMaybe no tracks have been selected.",
+ fM->fDataFromMacroList->At(i)->GetName());
new TGMsgBox(gClient->GetRoot(), GetMainFrame(), "Error - Draw histograms",
Form("No data for macro \"%s\" found!\nMaybe no tracks have been selected.",
fM->fDataFromMacroList->At(i)->GetName()), kMBIconExclamation, kMBOk);
indexOfMacro2 = i;
if (!(tFriend1 = (TTree*)file->Get(Form("TrackData%d", i))))
{
- Error("Draw histograms", Form("No data for macro \"%s\" found!\nMaybe no tracks have been selected.",
- fM->fDataFromMacroList->At(i)->GetName()));
+ Error("Draw histograms", "No data for macro \"%s\" found!\nMaybe no tracks have been selected.",
+ fM->fDataFromMacroList->At(i)->GetName());
new TGMsgBox(gClient->GetRoot(), GetMainFrame(), "Error - Draw histograms",
Form("No data for macro \"%s\" found!\nMaybe no tracks have been selected.",
fM->fDataFromMacroList->At(i)->GetName()),
indexOfMacro3 = i;
if (!(tFriend2 = (TTree*)file->Get(Form("TrackData%d", i))))
{
- Error("Draw histograms", Form("No data for macro \"%s\" found!\nMaybe no tracks have been selected.",
- fM->fDataFromMacroList->At(i)->GetName()));
+ Error("Draw histograms", "No data for macro \"%s\" found!\nMaybe no tracks have been selected.",
+ fM->fDataFromMacroList->At(i)->GetName());
new TGMsgBox(gClient->GetRoot(), GetMainFrame(), "Error - Draw histograms",
Form("No data for macro \"%s\" found!\nMaybe no tracks have been selected.",
fM->fDataFromMacroList->At(i)->GetName()), kMBIconExclamation, kMBOk);
new TMacroData(macro->GetName(), macro->GetPath(), macro->GetType()));
else
{
- Error("AliEveTRDTrackListEditor::InheritMacroList", Form("Failed to inherit the macro \"%s\"!", key->GetName()));
+ Error("AliEveTRDTrackListEditor::InheritMacroList", "Failed to inherit the macro \"%s\"!", key->GetName());
}
}
new TMacroData(macro->GetName(), macro->GetPath(), macro->GetType()));
else
{
- Error("AliEveTRDTrackListEditor::SaveMacroList", Form("Failed to inherit the macro \"%s\"!", key->GetName()));
+ Error("AliEveTRDTrackListEditor::SaveMacroList", "Failed to inherit the macro \"%s\"!", key->GetName());
}
}
}
else
{
Error("AliEveTRDTrackListEditor::UpdateMacroList()",
- Form("Macro \"%s/%s.C\" is neither a selection macro nor a process macro!",
- macro->GetPath(), macro->GetName()));
+ "Macro \"%s/%s.C\" is neither a selection macro nor a process macro!",
+ macro->GetPath(), macro->GetName());
}
}
else
{
Error("AliEveTRDTrackListEditor::UpdateMacroList()",
- Form("Macro list is corrupted: Macro \"%s\" not found!", key->GetName()));
- }
+ "Macro list is corrupted: Macro \"%s\" not found!", key->GetName());
+ }
}
ftlMacroList->SortByName();