AliPhysics  a5cd6b6 (a5cd6b6)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TupleSelector.C File Reference

A selector to draw stuff from the a track tuple as made by AliFMDMCTrackELoss. More...

#include <TSelector.h>
#include <TQObject.h>
#include <TH1.h>
#include <TString.h>
#include <TCanvas.h>
#include <TLegend.h>
#include <TLegendEntry.h>
#include <TError.h>
#include <TMath.h>
#include <THStack.h>
#include <TTree.h>
#include <TClonesArray.h>
#include <TChain.h>
#include <TSystem.h>
#include <TOutputListSelectorDataMap.h>
#include <TLatex.h>
#include <TROOT.h>
#include <TFile.h>
#include <TDirectory.h>
#include <TSystemDirectory.h>
#include <TRegexp.h>
#include <TKey.h>
#include <TFileCollection.h>
#include <THashList.h>
#include <TDSet.h>
#include <TQConnection.h>
#include <iostream>
#include <TProof.h>
#include <TStopwatch.h>
#include "AliFMDMCTrackELoss.h"
Include dependency graph for TupleSelector.C:

Go to the source code of this file.

Classes

struct  Spectra
 
struct  Type
 
struct  Ring
 
struct  Monitor
 
struct  TupleSelector
 

Macros

#define SELECTOR_C
 

Detailed Description

A selector to draw stuff from the a track tuple as made by AliFMDMCTrackELoss.

Author
Christian Holm Christensen cholm.nosp@m.@nbi.nosp@m..dk
Date
Thu Nov 13 14:12:11 2014

This class assumes that the files with the TTree's created by AliFMDMCTrackELoss lives in tuple/forward_tuple_N.root.

The trees are made by AliFMDMCTrackELoss, which in turn is embedded in a AliFMDMCTrackInspector object. This code, which also does fits of the MC 'true' energy loss spectra is contained in the task AliFMDMCTrackInspectorTask. This task can be executed via the train MakeFMDMCTrackTrain.C

To run this selector do

void
Run(Bool_t proof=true, Long64_t maxEvents=-1)
{
const char* fwd = "${ALICE_PHYSICS}/PWGLF/FORWARD/analysis2";
gSystem->AddIncludePath("-I${ALICE_PHYSICS}/include");
gROOT->Macro(Form("%s/scripts/LoadLibs.C"));
gROOT->LoadMacro(Form("%s/TupleSelector.C++g",fwd));
if (proof) TupleSelector::Proof(maxEvents);
else TupleSelector::Run(maxEvents);
}

Here, $ANA_SRC is assumed to point to the source directory of PWGLF/FORWARD/analysis2

Definition in file TupleSelector.C.

Macro Definition Documentation

#define SELECTOR_C

Definition at line 39 of file TupleSelector.C.