Changes related to the extraction of the V0 finder into a separate class (A. Dainese...
[u/mrichter/AliRoot.git] / ITS / ITSResidualsAnal.C
1 #if !defined(__CINT__) || defined(__MAKECINT__)
2 #include <TArrayI.h>
3 #include <TSelector.h>
4 #include <TString.h>
5 #include <TTree.h>
6 #include "AliGeomManager.h"
7 #include "AliTrackPoints.h"
8 #include "AliITSResidualsAnalysis.h"
9 #endif
10 void ITSResidualsAnal(Int_t layer = 1,
11                       TString AliTrackPoints = "AliTrackPoints.root",
12                       TString geometry = "geometry.root")
13 {
14   //
15   // Sample Macro for AliITSResidualsAnalysis Class
16   //
17   // Parameters:
18   //   layer          = layer to analyze
19   //   AliTrackPoints = file with the AliTrackPoints (including path if needed)
20   //   geometry       = file with the geometry (including path if needed)
21   //
22   // Results are stored in ResidualsAnalysisTree.root in a tree called "analysisTree"
23   //
24
25   AliITSResidualsAnalysis *res = new AliITSResidualsAnalysis(AliTrackPoints,geometry);
26
27   TArrayI *volids = (TArrayI*)res->GetSingleLayerVolids(layer);
28
29   res->InitHistograms(volids);
30
31   AliGeomManager::ELayerID lay = (AliGeomManager::ELayerID)layer;
32   res->ProcessPoints("fast",0,lay,lay,"");
33
34   return;
35 }