![]() |
AliPhysics
d1ccc5e (d1ccc5e)
|
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 "PWGGA/CaloTrackCorrelations/macros/AddTaskGammaHadronCorrelationSelectAnalysis.C"
#include "AliPhysicsSelection.h"
#include "AliPhysicsSelectionTask.h"
#include "OADB/macros/AddTaskPhysicsSelection.C"
#include "AliMultSelectionTask.h"
#include "OADB/COMMON/MULTIPLICITY/macros/AddTaskMultSelection.C"
#include "AliTaskCDBconnect.h"
#include "PWGPP/PilotTrain/AddTaskCDBconnect.C"
#include "AliAnalysisTaskEMCALClusterize.h"
#include "PWGPP/EMCAL/macros/AddTaskEMCALClusterize.C"
#include "AliEmcalCorrectionTask.h"
#include "PWG/EMCAL/macros/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=mGRID) |
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 | bCheckXS = kFALSE |
Check during configuration the cross section, does not do anything to analysis. More... | |
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 1037 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 889 of file ana.C.
Referenced by ana().
void LoadLibraries | ( | Int_t | ) |
void SetupPar | ( | char * | pararchivename | ) |
Bool_t bAnalysis = kTRUE |
Bool_t bCheckXS = kFALSE |
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 117 of file ana.C.
Referenced by CheckInputData(), and CreateChain().
char* kInDir = (char*)"/user/data/files/" |
Bool_t kMC = kFALSE |
Set some default values, but used values are set in the code!
Definition at line 149 of file ana.C.
Referenced by ana(), ChainBuilder::CheckFile(), ChainBuilder::Create(), and emcalReclusterize().
TString kPass = "" |
Int_t kRun = 0 |
"passX"
Definition at line 157 of file ana.C.
Referenced by CheckEnvironmentVariables(), and emcalReclusterize().
char* kXML = (char*)"collection.xml" |
Maximum number of files to analyze.
Collection file for grid analysis
Definition at line 131 of file ana.C.
Referenced by ChainBuilder::CheckSource(), and ChainBuilder::Create().
const char* kXSFileName = (char*)"pyxsec.root" |
Bool_t outAOD = kFALSE |
Collision type: pp, pPb, PbPb.
Definition at line 154 of file ana.C.
Referenced by AliAnaCaloTrackCorrBaseClass::ConnectInputOutputAODBranches(), emcalReclusterize(), and AliAnaCaloTrackCorrBaseClass::GetAODBranch().