![]() |
AliPhysics
0937c79 (0937c79)
|
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 "AliPhysicsSelection.h"
#include "AliPhysicsSelectionTask.h"
#include "AliMultiInputEventHandler.h"
#include "AliAnalysisTaskCaloTrackCorrelation.h"
#include "AliAnalysisTaskCounter.h"
#include "AliAnalysisDataContainer.h"
#include "TSystemDirectory.h"
#include "CreateESDChain.C"
#include "AddTaskPhysicsSelection.C"
#include "AliCentralitySelectionTask.h"
#include "AliMultSelectionTask.h"
#include "AliVZEROEPSelectionTask.h"
#include "AliEPSelectionTask.h"
#include "AddTaskCentrality.C"
#include "AddTaskMultSelection.C"
#include "AddTaskVZEROEPSelection.C"
#include "AddTaskEventplane.C"
#include "AddTaskCounter.C"
#include "AliAnalysisTaskEMCALClusterize.h"
#include "AddTaskEMCALClusterize.C"
#include "AliAnaCalorimeterQA.h"
#include "AddTaskCalorimeterQA.C"
#include "AddTaskCaloTrackCorr.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 | LoadLibraries (Int_t) |
Load analysis libraries. More... | |
void | SetupPar (char *pararchivename) |
void | CheckInputData (const Int_t mode) |
Sets input data and tree strings. More... | |
void | CreateChain (const Int_t 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 | ana (Int_t mode=mGRID) |
Variables | |
char * | kInDir = (char*)"/user/data/files/" |
char * | kPattern = (char*)"" |
Global, path to data files. More... | |
Int_t | kFile = 2 |
Data are in files kInDir/kPattern+i. More... | |
char * | kDatasetPROOF = (char*)"/alice/vernet/LHC11b_149646" |
Number of files to analyze in local mode. More... | |
Int_t | kDatasetNMaxFiles = 20 |
TString | ccin2p3UserName = "arbor" |
TString | alienUserName = "narbor" |
char * | kXML = (char*)"collection.xml" |
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 |
TString | kInputData = "ESD" |
With real data kMC = kFALSE. More... | |
Int_t | kYear = 2011 |
ESD, AOD, MC, deltaAOD. More... | |
TString | kCollision = "pp" |
Bool_t | outAOD = kFALSE |
TString | kTreeName |
Some tasks doesnt need it. More... | |
TString | kPass = "" |
char | kTrigger [1024] |
Int_t | kRun = 0 |
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 162 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 Int_t | 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 1293 of file ana.C.
Referenced by ana().
void LoadLibraries | ( | Int_t | ) |
void SetupPar | ( | char * | pararchivename | ) |
char* kDatasetPROOF = (char*)"/alice/vernet/LHC11b_149646" |
Int_t kFile = 2 |
Data are in files kInDir/kPattern+i.
Definition at line 99 of file ana.C.
Referenced by CheckInputData(), and CreateChain().
char* kInDir = (char*)"/user/data/files/" |
Definition at line 97 of file ana.C.
Referenced by CheckInputData(), and CreateChain().
Bool_t kMC = kFALSE |
Definition at line 129 of file ana.C.
Referenced by ana(), CheckEnvironmentVariables(), ChainBuilder::CheckFile(), CheckInputData(), ChainBuilder::Create(), and emcalReclusterize().
char* kPattern = (char*)"" |
Global, path to data files.
Definition at line 98 of file ana.C.
Referenced by CheckInputData(), and CreateChain().
Int_t kRun = 0 |
Definition at line 137 of file ana.C.
Referenced by ana(), CheckEnvironmentVariables(), CheckInputData(), and emcalReclusterize().
char kTrigger[1024] |
Definition at line 136 of file ana.C.
Referenced by CheckEnvironmentVariables().
char* kXML = (char*)"collection.xml" |
Definition at line 113 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.
Definition at line 120 of file ana.C.
Referenced by CreateChain().
Int_t kYear = 2011 |
ESD, AOD, MC, deltaAOD.
Definition at line 131 of file ana.C.
Referenced by ana(), and CheckEnvironmentVariables().
Bool_t outAOD = kFALSE |
Definition at line 133 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 123 of file ana.C.
Referenced by CreateChain(), and GetAverageXsection().