AliPhysics  9c66e61 (9c66e61)
MuonResolution.C File Reference
#include <fstream>
#include <TString.h>
#include <TStopwatch.h>
#include <TMultiGraph.h>
#include <TSystem.h>
#include <TChain.h>
#include <TGraphErrors.h>
#include <TProof.h>
#include <TList.h>
#include <TCanvas.h>
#include <TFile.h>
#include <TGrid.h>
#include <TEnv.h>
#include <TROOT.h>
#include <TAxis.h>
#include <THashList.h>
#include <TFileCollection.h>
#include <TAlienCollection.h>
#include <TGridCollection.h>
#include <TGridResult.h>
#include "AliLog.h"
#include "AliCDBManager.h"
#include "AliAnalysisManager.h"
#include "AliESDInputHandler.h"
#include "AliTagAnalysis.h"
#include "AliRunTagCuts.h"
#include "AliLHCTagCuts.h"
#include "AliDetectorTagCuts.h"
#include "AliEventTagCuts.h"
#include "AliAnalysisDataContainer.h"
#include "AliAnalysisAlien.h"
#include "AliPhysicsSelectionTask.h"
#include "AliPhysicsSelection.h"
#include "AliMultSelectionTask.h"
#include "AliAnalysisTaskMuonResolution.h"
#include "AliMpCDB.h"
#include "AliMpDetElement.h"
#include "AliMpDDLStore.h"
#include "AliMUONCalibParamND.h"
#include "AliMUON2DMap.h"
#include "AliMUONTrackerData.h"
#include "AliMUONPainterDataRegistry.h"
#include "AliMUONTrackerDataWrapper.h"
#include "AliMuonEventCuts.h"
#include "AliMuonTrackCuts.h"
#include "AddTaskMuonResolution.C"
Include dependency graph for MuonResolution.C:

Go to the source code of this file.

Enumerations

enum  {
  kLocal, kInteractif_xml, kInteractif_ESDList, kProof,
  kGrid, kTerminate
}
 

Functions

Bool_t Resume (Int_t mode, Int_t &firstStep, Double_t clusterResNB[10], Double_t clusterResB[10], Double_t clusterResNBErr[10], Double_t clusterResBErr[10], Bool_t shiftHalfCh, Double_t halfChShiftNB[20], Double_t halfChShiftB[20], Double_t halfChShiftNBErr[20], Double_t halfChShiftBErr[20], Bool_t shiftDE, Double_t deShiftNB[200], Double_t deShiftB[200], TGraphErrors *clusterResXVsStep[10], TGraphErrors *clusterResYVsStep[10], TGraphErrors *halfChShiftXVsStep[20], TGraphErrors *halfChShiftYVsStep[20])
 
void LoadAlirootOnProof (TString &aaf, TString rootVersion, TString aliphysicsVersion, Int_t iStep)
 
void CreateAlienHandler (TString runMode, TString &aliphysicsVersion, TString &runListName, TString &dataDir, TString &dataPattern, TString &outDir, Int_t iStep, TString runFormat, Int_t maxFilesPerJob, Int_t maxMergeFiles, Int_t maxMergeStages)
 
AliAnalysisTaskMuonResolutionCreateAnalysisTrain (Int_t mode, Int_t iStep, Bool_t selectPhysics, Bool_t selectTrigger, Bool_t matchTrig, Bool_t applyAccCut, Bool_t applyPDCACut, Double_t minMomentum, Double_t minPt, Bool_t isMC, Bool_t correctForSystematics, Int_t extrapMode, Double_t clusterResNB[10], Double_t clusterResB[10], Bool_t shiftHalfCh, Double_t halfChShiftNB[20], Double_t halfChShiftB[20], Bool_t shiftDE, Double_t deShiftNB[200], Double_t deShiftB[200])
 
Bool_t GetChamberResolution (Int_t iStep, Double_t clusterResNB[10], Double_t clusterResB[10], Double_t clusterResNBErr[10], Double_t clusterResBErr[10])
 
Bool_t AddHalfChShift (Int_t iStep, Double_t halfChShiftNB[20], Double_t halfChShiftB[20], Double_t halfChShiftNBErr[20], Double_t halfChShiftBErr[20])
 
Bool_t AddDEShift (Int_t iStep, Double_t deShiftNB[200], Double_t deShiftB[200])
 
void AddMCHViews (TString smode, TFile *file)
 
AliMUONTrackerData * ConvertGraph (TGraphErrors &g, const char *name)
 
Int_t GetMode (TString smode, TString input)
 
TChainCreateChainFromCollection (const char *xmlfile)
 
TChainCreateChainFromFile (const char *rootfile)
 
TChainCreateChainFromESDList (const char *esdList)
 
TChainCreateChain (Int_t mode, TString input)
 
void MuonResolution (TString smode, TString inputFileName, Int_t nSteps, TString rootVersion, TString aliphysicsVersion, TString dataDir, TString dataPattern, TString runFormat, TString outDir, Int_t maxFilesPerJob, Int_t maxMergeFiles, Int_t maxMergeStages, Bool_t selectPhysics, Bool_t selectTrigger, Bool_t matchTrig, Bool_t applyAccCut, Bool_t applyPDCACut, Double_t minMomentum, Double_t minPt, Bool_t isMC, Bool_t correctForSystematics, Int_t extrapMode, Bool_t shiftHalfCh, Bool_t shiftDE, Int_t nevents)
 

Variables

Int_t nDE = 200
 

Enumeration Type Documentation

anonymous enum
Enumerator
kLocal 
kInteractif_xml 
kInteractif_ESDList 
kProof 
kGrid 
kTerminate 

Definition at line 67 of file MuonResolution.C.

Function Documentation

Bool_t AddDEShift ( Int_t  iStep,
Double_t  deShiftNB[200],
Double_t  deShiftB[200] 
)

read the chamber resolution from the output file

Definition at line 789 of file MuonResolution.C.

Referenced by MuonResolution(), and Resume().

Bool_t AddHalfChShift ( Int_t  iStep,
Double_t  halfChShiftNB[20],
Double_t  halfChShiftB[20],
Double_t  halfChShiftNBErr[20],
Double_t  halfChShiftBErr[20] 
)

read the chamber resolution from the output file

Definition at line 752 of file MuonResolution.C.

Referenced by MuonResolution(), and Resume().

void AddMCHViews ( TString  smode,
TFile *  file 
)

Get from the file the graphs containing data per DE, convert them into mchview objects and save them

Definition at line 825 of file MuonResolution.C.

Referenced by MuonResolution().

AliMUONTrackerData * ConvertGraph ( TGraphErrors g,
const char *  name 
)

Convert graph containing data per DE into mchview object

Definition at line 880 of file MuonResolution.C.

Referenced by AddMCHViews().

void CreateAlienHandler ( TString  runMode,
TString aliphysicsVersion,
TString runListName,
TString dataDir,
TString dataPattern,
TString outDir,
Int_t  iStep,
TString  runFormat,
Int_t  maxFilesPerJob,
Int_t  maxMergeFiles,
Int_t  maxMergeStages 
)

Definition at line 511 of file MuonResolution.C.

Referenced by MuonResolution().

AliAnalysisTaskMuonResolution * CreateAnalysisTrain ( Int_t  mode,
Int_t  iStep,
Bool_t  selectPhysics,
Bool_t  selectTrigger,
Bool_t  matchTrig,
Bool_t  applyAccCut,
Bool_t  applyPDCACut,
Double_t  minMomentum,
Double_t  minPt,
Bool_t  isMC,
Bool_t  correctForSystematics,
Int_t  extrapMode,
Double_t  clusterResNB[10],
Double_t  clusterResB[10],
Bool_t  shiftHalfCh,
Double_t  halfChShiftNB[20],
Double_t  halfChShiftB[20],
Bool_t  shiftDE,
Double_t  deShiftNB[200],
Double_t  deShiftB[200] 
)

create the analysis train and configure it

Definition at line 611 of file MuonResolution.C.

Referenced by MuonResolution().

TChain * CreateChain ( Int_t  mode,
TString  input 
)

Definition at line 994 of file MuonResolution.C.

Referenced by MuonResolution().

TChain* CreateChainFromCollection ( const char *  xmlfile)

Definition at line 931 of file MuonResolution.C.

Referenced by CreateChain().

TChain* CreateChainFromESDList ( const char *  esdList)

Definition at line 974 of file MuonResolution.C.

Referenced by CreateChain().

TChain* CreateChainFromFile ( const char *  rootfile)

Definition at line 963 of file MuonResolution.C.

Referenced by CreateChain().

Bool_t GetChamberResolution ( Int_t  iStep,
Double_t  clusterResNB[10],
Double_t  clusterResB[10],
Double_t  clusterResNBErr[10],
Double_t  clusterResBErr[10] 
)

read the chamber resolution from the output file

Definition at line 717 of file MuonResolution.C.

Referenced by MuonResolution(), and Resume().

Int_t GetMode ( TString  smode,
TString  input 
)

Definition at line 917 of file MuonResolution.C.

Referenced by MuonResolution().

void LoadAlirootOnProof ( TString aaf,
TString  rootVersion,
TString  aliphysicsVersion,
Int_t  iStep 
)

Load aliroot packages and set environment on Proof

Definition at line 475 of file MuonResolution.C.

Referenced by MuonResolution().

void MuonResolution ( TString  smode,
TString  inputFileName,
Int_t  nSteps,
TString  rootVersion,
TString  aliphysicsVersion,
TString  dataDir,
TString  dataPattern,
TString  runFormat,
TString  outDir,
Int_t  maxFilesPerJob,
Int_t  maxMergeFiles,
Int_t  maxMergeStages,
Bool_t  selectPhysics,
Bool_t  selectTrigger,
Bool_t  matchTrig,
Bool_t  applyAccCut,
Bool_t  applyPDCACut,
Double_t  minMomentum,
Double_t  minPt,
Bool_t  isMC,
Bool_t  correctForSystematics,
Int_t  extrapMode,
Bool_t  shiftHalfCh,
Bool_t  shiftDE,
Int_t  nevents 
)

Compute the cluster resolution by studying cluster-track residual, deconvoluting from track resolution

Definition at line 100 of file MuonResolution.C.

Referenced by RunMuonResolution().

Bool_t Resume ( Int_t  mode,
Int_t firstStep,
Double_t  clusterResNB[10],
Double_t  clusterResB[10],
Double_t  clusterResNBErr[10],
Double_t  clusterResBErr[10],
Bool_t  shiftHalfCh,
Double_t  halfChShiftNB[20],
Double_t  halfChShiftB[20],
Double_t  halfChShiftNBErr[20],
Double_t  halfChShiftBErr[20],
Bool_t  shiftDE,
Double_t  deShiftNB[200],
Double_t  deShiftB[200],
TGraphErrors clusterResXVsStep[10],
TGraphErrors clusterResYVsStep[10],
TGraphErrors halfChShiftXVsStep[20],
TGraphErrors halfChShiftYVsStep[20] 
)

resume analysis from desired step do not remove any step in terminate-only mode

Definition at line 371 of file MuonResolution.C.

Referenced by MuonResolution().

Variable Documentation