![]() |
AliPhysics
fceccc5 (fceccc5)
|
Go to the source code of this file.
Functions | |
void | SPDComparison (const char *esddir, Int_t nEvents=-1) |
void | DrawSPDComparison (const char *filename="spd_comps.root") |
void DrawSPDComparison | ( | const char * | filename = "spd_comps.root" | ) |
Draw results
filename |
Definition at line 520 of file SPDComparison.C.
Referenced by SPDComparison().
void SPDComparison | ( | const char * | esddir, |
Int_t | nEvents = -1 |
||
) |
A task to do a comparison between tracklets and clusers in the SPD
Since the class SPDComparisonTask derives from a compiled class (AliAnalysisTaskSE) we need to compile that code. The script will, when executed in the AliROOT prompt load it self again and byte compile it with the preprocessor flag BUILD defined. \
The preprocessor define BUILD is not defined at first, when the script is loaded using
* Root> .x SPDComparison.C *
which means that CINT will only see the function SPDComparison. In that function, we define the BUILD preprocessor symbol
and then ACLic compile ourselves
But since BUILD is now defined, it means that ACLic will only see the class and not the function SPDComparison.
This trick hinges on that when you initially load the script and when it is done inside the script it is done using two distinct paths - otherwise ROOT will try to unload the script first, and that fails. Run the analysis
esddir | Input directory |
nEvents | Number of events, negative means all |
Definition at line 452 of file SPDComparison.C.