AliRoot Core  3dc7879 (3dc7879)
TestAOD.C File Reference

Example to analyze calorimeter AODs. More...

#include <Riostream.h>
#include <TFile.h>
#include <TH1F.h>
#include <TParticle.h>
#include <TRefArray.h>
#include "AliRunLoader.h"
#include "AliStack.h"
#include "AliAODEvent.h"
#include "AliAODVertex.h"
#include "AliAODCaloCluster.h"
#include "AliAODCaloCells.h"
#include "AliAODCaloTrigger.h"
#include "AliAODTrack.h"
#include "AliPID.h"
#include "AliEMCALGeometry.h"
#include "AliAODMCParticle.h"
Include dependency graph for TestAOD.C:

Go to the source code of this file.

Functions

void TestAOD ()
 

Variables

Bool_t kPrintKine = kFALSE
 Print MC related information. Do not use for raw data. More...
 
Bool_t kPrintCaloCells = kFALSE
 Print cells parameters. More...
 
Bool_t kPrintCaloTrigger = kFALSE
 Print trigger patches information. More...
 
Bool_t kPrintTrackMatches = kFALSE
 Print cluster-track matching information. More...
 
Bool_t kPrintCaloCluster = kTRUE
 Print cluster parameters. More...
 
Bool_t kPrintClusterCells = kFALSE
 Print cells in clusters information. More...
 
Bool_t kPrintClusterPID = kFALSE
 Print clusters PID (bayesian) weights. More...
 

Detailed Description

Example to analyze calorimeter AODs.

Example macro to extract calorimeter related information from AODs. Almost identical for ESDs (see TestESD.C). It mostly prints clusters/cells information but it can also plot some example histograms with clusters energy, position, and track matching.

Different global bools can be set to inspect different parameters: cells, trigger, track-cluster matching, cells in clusters, PID or MC origin of the clusters.

Author
Gustavo Conesa Balbastre, Gusta.nosp@m.vo.C.nosp@m.onesa.nosp@m..Bal.nosp@m.bastr.nosp@m.e@ce.nosp@m.rn.ch, LPSC-CNRS

Definition in file TestAOD.C.

Function Documentation

void TestAOD ( )

Main method to read information stored in AliAODCaloClusters and AliAODCaloCells

Definition at line 55 of file TestAOD.C.

Variable Documentation

Bool_t kPrintCaloCells = kFALSE

Print cells parameters.

Definition at line 45 of file TestAOD.C.

Referenced by TestAOD().

Bool_t kPrintCaloCluster = kTRUE

Print cluster parameters.

Definition at line 48 of file TestAOD.C.

Referenced by TestAOD().

Bool_t kPrintCaloTrigger = kFALSE

Print trigger patches information.

Definition at line 46 of file TestAOD.C.

Referenced by TestAOD().

Bool_t kPrintClusterCells = kFALSE

Print cells in clusters information.

Definition at line 49 of file TestAOD.C.

Referenced by TestAOD().

Bool_t kPrintClusterPID = kFALSE

Print clusters PID (bayesian) weights.

Definition at line 50 of file TestAOD.C.

Referenced by TestAOD().

Bool_t kPrintKine = kFALSE

Print MC related information. Do not use for raw data.

Definition at line 44 of file TestAOD.C.

Referenced by TestAOD().

Bool_t kPrintTrackMatches = kFALSE

Print cluster-track matching information.

Definition at line 47 of file TestAOD.C.

Referenced by TestAOD().