![]() |
AliPhysics
be175c7 (be175c7)
|
Example of execution macro. More...
#include <Riostream.h>
#include <TString.h>
#include <TFile.h>
#include <TChain.h>
#include <TROOT.h>
#include <TSystem.h>
#include <TApplication.h>
#include <TKey.h>
#include <TProfile.h>
#include <TH1F.h>
#include "TGrid.h"
#include "TGridCollection.h"
#include "TAlienCollection.h"
#include "TGridResult.h"
#include "AliLog.h"
#include "AliAnalysisGrid.h"
#include "AliAnalysisManager.h"
#include "AliMCEventHandler.h"
#include "AliAnalysisTaskSE.h"
#include "AliESDEvent.h"
#include "AliAODEvent.h"
#include "AliESDInputHandler.h"
#include "AliAODInputHandler.h"
#include "AliAODHandler.h"
#include "AliMultiInputEventHandler.h"
#include "AliAnalysisDataContainer.h"
#include "AliAnalysisTaskCaloTrackCorrelation.h"
#include "AliAnaCaloTrackCorrMaker.h"
#include "AddTaskGammaHadronCorrelationSelectAnalysis.C"
#include "AliPhysicsSelection.h"
#include "AliPhysicsSelectionTask.h"
#include "AddTaskPhysicsSelection.C"
#include "AliMultSelectionTask.h"
#include "AddTaskMultSelection.C"
#include "AliTaskCDBconnect.h"
#include "AddTaskCDBconnect.C"
#include "AliAnalysisTaskEMCALClusterize.h"
#include "AddTaskEMCALClusterize.C"
#include "AliEmcalCorrectionTask.h"
#include "AddTaskEmcalCorrectionTask.C"
Go to the source code of this file.
Enumerations | |
enum | anaModes { mLocal = 0, mPROOF = 1, mPlugin = 2, mGRID = 3, mLocal, mGRID, mLocal = 0, mPROOF = 1, mPlugin = 2, mGRID = 3, mLocalCAF = 4, mLocal, mLocalCAF, mPROOF, mGRID, mLocal, mLocalCAF, mPROOF, mGRID } |
Different analysis modes. More... | |
Functions | |
void | SetupPar (char *pararchivename) |
Execute multiplicity task. More... | |
void | CheckInputData (const anaModes mode) |
Sets input data and tree strings. More... | |
void | CreateChain (const anaModes mode, TChain *chain, TChain *chainxs) |
Fills chain with data files paths. More... | |
void | CheckEnvironmentVariables () |
Bool_t | GetAverageXsection (TTree *tree, Double_t &xs, Float_t &ntr, Int_t &n) |
void | LoadLibraries (Int_t) |
void | ana (anaModes mode=mLocal) |
Variables | |
char * | kInDir = (char*)"/user/data/files/" |
char * | kPattern = (char*)"" |
Directory path to files. More... | |
Int_t | kFile = 10 |
Common pattern in directory name containing files. More... | |
char * | kXML = (char*)"collection.xml" |
Maximum number of files to analyze. More... | |
const char * | kXSFileName = (char*)"pyxsec.root" |
Global name for the xml collection file with data on grid. More... | |
TArrayF * | xsArr |
Name of file with pT-hard cross sections. More... | |
TArrayI * | trArr |
Bool_t | kMC = kFALSE |
Set some default values, but used values are set in the code! More... | |
TString | kInputData = "ESD" |
With real data kMC = kFALSE. More... | |
Int_t | kYear = 2011 |
ESD, AOD, MC, deltaAOD. More... | |
TString | kPeriod ="LHC11c" |
Year of data. More... | |
TString | kCollision = "pp" |
Run period. More... | |
Bool_t | outAOD = kFALSE |
Collision type: pp, pPb, PbPb. More... | |
TString | kTreeName |
Create output AOD, needed by some. More... | |
TString | kPass = "" |
"esdTree" or "aodTree" or "TE" for pure MC kinematics analysis More... | |
Int_t | kRun = 0 |
"passX" More... | |
Bool_t | bEMCCluster = kFALSE |
Run number. More... | |
Bool_t | bEMCCorrFra = kFALSE |
Use the EMCal clusterization task. More... | |
Int_t | xTalkEmul = 0 |
Use the EMCal correction framework. More... | |
Bool_t | bAnalysis = kTRUE |
Activate cross-talk emulation, 0 -no, 1 do not subtract induced energy from reference cell, 2 subtract (preferred) More... | |
Bool_t | bMultiplicity = kFALSE |
Do photon/pi0 isolation correlation analysis. More... | |
Example of execution macro.
Example macro to do analysis with the analysis classes in CaloTrackCorrelations, in local, grid or plugin modes.
Pay attention to the options and definitions set in the lines below
Definition in file ana.C.
enum anaModes |
Different analysis modes.
Main execution method. It:
mode | analysis mode defined in enum anaModes |
Definition at line 986 of file ana.C.
Referenced by AddAnalysisTasks(), anaGenKine(), ConfigureChargedAnalysis(), ConfigureClusterPileUpAnalysis(), ConfigureClusterShape(), ConfigureElectronAnalysis(), ConfigureEMCALTriggerClusterAnalysis(), ConfigureGenKine(), ConfigureGenKineAnalysis(), ConfigureHadronCorrelationAnalysis(), ConfigureInClusterIMAnalysis(), ConfigureInvariantMassAnalysis(), ConfigureIsolationAnalysis(), ConfigurePhotonAnalysis(), ConfigurePhotonJetAnalysis(), ConfigurePi0Analysis(), ConfigurePi0EbEAnalysis(), ConfigurePi0Flow(), ConfigurePi0KineAnalysis(), ConfigureQAAnalysis(), ConfigureRandomTriggerAnalysis(), AliAnaCaloTrackCorrMaker::FillAndGetAODBranchList(), AliAnalysisTaskDmesonJetsDetectorResponse::FillHistograms(), AliAnaCaloTrackCorrMaker::GetListOfAnalysisCuts(), AliAnaCaloTrackCorrMaker::GetOutputContainer(), AliAnaCaloTrackCorrMaker::Init(), EMCalTriggerPtAnalysis::AliEMCalTriggerTaskGroup::InitialiseAnalysisComponents(), EMCalTriggerPtAnalysis::AliEMCalTriggerTaskGroup::Process(), EmpiricalMaker::ProcessCent(), AliAnaCaloTrackCorrMaker::ProcessEvent(), AliAnaPi0EbE::SetAnalysisType(), AliAnalysisTaskFullppJet::SetAnaType(), and AliAnaCaloTrackCorrMaker::Terminate().
void CheckEnvironmentVariables | ( | ) |
void CheckInputData | ( | const anaModes | mode | ) |
Read the PYTHIA statistics from the file pyxsec.root created by the function WriteXsection(): integrated cross section (xsection) and the number of Pyevent() calls (ntrials) and calculate the weight per one event xsection/ntrials The spectrum calculated by a user should be multiplied by this weight, something like this: TH1F *userSpectrum ... // book and fill the spectrum userSpectrum->Scale(weight)
Yuri Kharlov 19 June 2007 Gustavo Conesa 15 April 2008 Add recovery of xs from pyxsec_hists.root file 15/jan/2015
Definition at line 850 of file ana.C.
Referenced by ana().
void LoadLibraries | ( | Int_t | ) |
void SetupPar | ( | char * | pararchivename | ) |
Bool_t bAnalysis = kTRUE |
Bool_t bEMCCluster = kFALSE |
Bool_t bEMCCorrFra = kFALSE |
Bool_t bMultiplicity = kFALSE |
Int_t kFile = 10 |
Common pattern in directory name containing files.
Definition at line 112 of file ana.C.
Referenced by CheckInputData(), and CreateChain().
char* kInDir = (char*)"/user/data/files/" |
Settings to read locally several files, only for "mLocal" mode The different values are default, they can be set with environmental variables: INDIR, PATTERN, NFILES, respectivelly
Definition at line 110 of file ana.C.
Referenced by CheckInputData(), and CreateChain().
Bool_t kMC = kFALSE |
Set some default values, but used values are set in the code!
Definition at line 141 of file ana.C.
Referenced by ana(), ChainBuilder::CheckFile(), CheckInputData(), ChainBuilder::Create(), and emcalReclusterize().
TString kPass = "" |
char* kPattern = (char*)"" |
Directory path to files.
Definition at line 111 of file ana.C.
Referenced by CheckInputData(), and CreateChain().
Int_t kRun = 0 |
"passX"
Definition at line 149 of file ana.C.
Referenced by CheckEnvironmentVariables(), CheckInputData(), and emcalReclusterize().
char* kXML = (char*)"collection.xml" |
Maximum number of files to analyze.
Collection file for grid analysis
Definition at line 126 of file ana.C.
Referenced by CheckInputData(), ChainBuilder::CheckSource(), ChainBuilder::Create(), and CreateChain().
const char* kXSFileName = (char*)"pyxsec.root" |
Global name for the xml collection file with data on grid.
Scale histograms from file. Change to kTRUE when xsection file exists Put name of file containing xsection Put number of events per ESD file This is an specific case for normalization of Pythia files.
Definition at line 133 of file ana.C.
Referenced by CreateChain().
Int_t kYear = 2011 |
ESD, AOD, MC, deltaAOD.
Definition at line 143 of file ana.C.
Referenced by ana(), and CheckEnvironmentVariables().
Bool_t outAOD = kFALSE |
Collision type: pp, pPb, PbPb.
Definition at line 146 of file ana.C.
Referenced by ana(), AliAnaCaloTrackCorrBaseClass::ConnectInputOutputAODBranches(), emcalReclusterize(), and AliAnaCaloTrackCorrBaseClass::GetAODBranch().
TArrayF* xsArr |
Name of file with pT-hard cross sections.
Definition at line 136 of file ana.C.
Referenced by CreateChain(), and GetAverageXsection().