AliSelector::Init(tree);
// Set branch address
- if (tree)
+ if (tree) {
+ tree->SetBranchStatus("*", 0);
+ tree->SetBranchStatus("fTracks.*", 1);
+ tree->SetBranchStatus("fTimeStamp", 1);
tree->SetBranchAddress("ESDfriend", &fESDfriend);
-
+ }
if (fESDfriend != 0)
AliDebug(AliLog::kInfo, "INFO: Found ESDfriend branch in chain.");
}
// return kFALSE;
//
+ // AliDebug(AliLog::kInfo, Form("Processing event %d \n", entry));
+
+
if (AliSelector::Process(entry) == kFALSE)
return kFALSE;
// loop over esd tracks
for (Int_t t=0; t<nTracks; t++)
{
+
AliESDtrack* esdTrack = dynamic_cast<AliESDtrack*> (fESD->GetTrack(t));
if (!esdTrack)
{
for (Int_t i=0; i<kTPCSectors; i++)
if (fClusterHistograms[i])
fOutput->Add(fClusterHistograms[i]);
+
}
void AliROCESDAnalysisSelector::Terminate()
{
// TODO read from output list for PROOF
- TFile* file = TFile::Open("rocESD.root", "RECREATE");
+ TNamed* comment = dynamic_cast<TNamed*>(fTree->GetUserInfo()->FindObject("comment"));
+
+ if (comment)
+ AliDebug(AliLog::kInfo, Form("INFO: Found comment in input list: %s \n", comment->GetTitle()));
+
+ TFile* file = TFile::Open(Form("rocESD_%s.root",comment->GetTitle()), "RECREATE");
for (Int_t i=0; i<kTPCSectors; i++)
if (fClusterHistograms[i]) {
fClusterHistograms[i]->SaveHistograms();
TCanvas* c = fClusterHistograms[i]->DrawHistograms();
- c->SaveAs(Form("%s.eps",c->GetName()));
- c->SaveAs(Form("%s.gif",c->GetName()));
+ c->SaveAs(Form("plots_%s_%s.eps",comment->GetTitle(),c->GetName()));
+ c->SaveAs(Form("plots_%s_%s.gif",comment->GetTitle(),c->GetName()));
+
+ c->Close();
+ delete c;
}
file->Close();
}
// Draws some histograms and save the canvas as eps and gif file.
//
- TCanvas* c = new TCanvas(Form("plots_%s",fName.Data()), fName.Data(), 1200, 1000);
+ TCanvas* c = new TCanvas(Form("%s",fName.Data()), fName.Data(), 1200, 1000);
gStyle->SetOptStat(0);
gStyle->SetOptFit(0);
- gStyle->SetPadLeftMargin(0.05);
+ gStyle->SetPadLeftMargin(0.1);
c->Divide(3,3);
#include "../CreateESDChain.C"
#include "../PWG0Helper.C"
-void runROCESDAnalysis(Char_t* data, Int_t nRuns=20, Int_t offset=0, Bool_t aDebug = kFALSE, Bool_t aProof = kFALSE,
+void runROCESDAnalysis(Char_t* data, Int_t nRuns=20, Int_t offset=0, Bool_t aDebug = kFALSE, Int_t runNumber=0, Bool_t aProof = kFALSE,
const char* option = "", const char* proofServer = "jgrosseo@lxb6046")
{
if (aProof)
connectProof(proofServer);
- TString libraries("libEG;libGeom;libESD;libPWG0base");
+ TString libraries("libEG;libGeom;libESD;libPWG0base;libPWG0dep");
TString packages;
if (!prepareQuery(libraries, packages, 2))
TList inputList;
+ // TNamed* comment = new TNamed("comment",runStr.Data());
+ if (runNumber!=0)
+ inputList.Add(new TNamed("comment",Form("%d",runNumber)));
+
TString selectorName = "AliROCESDAnalysisSelector";
AliLog::SetClassDebugLevel(selectorName, AliLog::kInfo);