AraClusterEventDisplay

This page contains information about the ARA Cluster Event Display



Introduction

This page aims to provide useful information how to run the ARA Cluster Event Display.

Some specific sections have been included and it's properly indicated in the titles in used.


Code Repository: Checking out, compiling and running.


Check the SVN site.

In this section we'll check out the AthenaROOTAccessExamples package, compile and run it.

Checking out and compiling

This code is tested with Atlas Release 17.0.6.2.1
1.Prerequisites:
Setting your workarea:
export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase
alias setupATLAS='source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh'
setupATLAS
mkdir araced
cd araced
asetup 17.0.6.2.1,here,AtlasPhysics
(Remind: if are on SLC6 machine add slc5 to asetup option )

You need CaloTPCnv package in order to include Calibration Hits class inside ARA:
(starting from release 18 this will be not needed anymore)

cmt co -r CaloTPCnv-00-01-07 Calorimeter/CaloCnv/CaloTPCnv
cd Calorimeter/CaloCnv/CaloTPCnv/cmt
cmt config
cmt make
cmt do post_build_tpcnvdb

2. Check out the package and compile:

cd $TestArea
cmt co -r AthenaROOTAccessExamples-00-00-35 PhysicsAnalysis/AthenaROOTAccessExamples
cd PhysicsAnalysis/AthenaROOTAccessExamples/cmt
cmt config
cmt make

If the compilation goes well you'll move to next funny section --> RUN IT.

Running the event display: An example.

Go inside python directory:
cd PhysicsAnalysis/AthenaROOTAccessExamples/python
and copy this python file:
cp /afs/cern.ch/work/m/mcasolin/public/LC/example.py .
(it is also attached at this page example.py.txt )
Try to run it typing:
athena -i example.py

It will print on screen EM calorimeter clusters for one event inside an ESD. Type:

Ctrl+d to exit from Athena.



Description of Cluster Event Display classes

In this section we'll understand better the functionality of each class included in this Cluster Event Display.
There are 4 classes belonging to different part of Atlas Calorimeter:

  • 3 for LAr Calorimeter: EM,HEC,FCal.
  • 1 for Tile Calorimeter.
These classes have one method that plots cells inside clusters with correct geometry.
(An example to instantiate all classes checkESDWithGeometry.py.txt )
In each sub-section will be reported the method. There are also links at .h and .cxx.

PlotEMplanarESD

  • Event display for EM calorimeter:
    EM.png

plot(TTree *theTree, int iEvent, bool storeCalibrationHits,bool doRatio=false, bool plotClusters=true, char *key="CaloCalTopoCluster", double clusEtMin=1000., bool isEnergy=true, int  ndrwcls=-1, char *cname="cEM", char *CalibrationHitsType = "All", char *CalibrationHitsEnergy = "Total"); <br />

PlotEMplanarESD.cxx
PlotEMplanarESD.h

PlotHECplanarESD

  • Event display for HEC calorimeter:
    HEC.png
plot(TTree *theTree, int iEvent, bool storeCalibrationHits,bool doRatio=false, bool plotClusters=true, char *key="CaloCalTopoCluster", double clusEtMin=1000., bool isEnergy=true, int  ndrwcls=-1, char *cname="cHEC", char *CalibrationHitsType = "All", char *CalibrationHitsEnergy = "Total");

PlotHECplanarESD.cxx
PlotHECplanarESD.h

PlotFCalESD

  • Event display for FCal calorimeter:
    FCal.png
plot(TTree *theTree, int iEvent,bool storeCalibrationHits,bool doRatio=false, bool plotClusters=true, char *key="CaloCalTopoCluster", double clusEtMin=1000., bool isEnergy=true, int ndrwcls=-1, char *cname="cFCal", bool allGrid=false, char *CalibrationHitsType = "All", char *CalibrationHitsEnergy = "Total");

PlotFCalESD.cxx
PlotFCalESD.h

PlotTileESD

  • Event display for Tile calorimeter:
    Tile.png
plot(TTree *theTree, int iEvent,bool storeCalibrationHits,bool doRatio=false, bool plotClusters=true, char *key="CaloCalTopoCluster", double clusEtMin=1000., bool isEnergy=true, int ndrwcls=-1, char *cname="cTile", char *CalibrationHitsType = "Active", char *CalibrationHitsEnergy = "Total",char *key1="TileCalibrationCellHitCnt", char *key2="TileCalibrationCellHitCnt");

PlotTileplanarESD.cxx
PlotTileplanarESD.h

Options summary for each method:

  • theTree: ARA transient tree to give to the class
  • iEvent: number of event to show (if <0 it loop on all events inside the tree, it is not useful of you have Calibration Hits informations active)
  • storeCalibrationHits: if it decides to show or not Calibration Hits informations.
  • doRatio: if is false it shows Calibration Hit energy writing the number inside the cell, if is true it shows ratio between Calibration Hits energy and Cell energy
  • plotCluster: if is true it draw a line that delimits the cluster.
  • key: key SG name read inside the pool (default is CaloCalTopoCluster).
  • clusEtMin: cut on cluster ET (default is 1 GeV)
  • isEnergy: if true it shows color according cells energy, if false it shows only energy sign (Calibration Hits informations work only if true)
  • cname: canvas name
  • CalibrationHitsType: You can choose what kind of Calibration Hits you want to plot → All, Active, Inactive
  • CalibrationHitsEnergy: You can choose what kind of Calibration Hits Energy you want to plot → Total, EM, NonEM,Visible, Escaped, Invisible

Calibration Hits infos

  • Event display for EM calorimeter without CalibrationHits:
    EMexamplenothing.png

  • Event display for EM calorimeter with CalibrationHits infos but without ratio mode:
    EMexampleCH1.png

  • Event display for EM calorimeter with CalibrationHits infos in ratio mode:
    EMexampleCHRatio.png

Topic attachments
I Attachment History Action Size DateSorted ascending Who Comment
PNGpng EM.png r1 manage 17.4 K 2013-05-27 - 17:45 MirkoantonioCasolino Event display for EM calorimeter
PNGpng EMexampleCH1.png r1 manage 12.7 K 2013-05-27 - 17:50 MirkoantonioCasolino Event display for EM calorimeter with different CalibrationHits settings
PNGpng EMexampleCHRatio.png r1 manage 12.4 K 2013-05-27 - 17:50 MirkoantonioCasolino Event display for EM calorimeter with different CalibrationHits settings
PNGpng EMexamplenothing.png r1 manage 11.6 K 2013-05-27 - 17:50 MirkoantonioCasolino Event display for EM calorimeter with different CalibrationHits settings
PNGpng FCal.png r1 manage 19.5 K 2013-05-27 - 17:47 MirkoantonioCasolino Event display for FCal calorimeter
PNGpng HEC.png r1 manage 11.0 K 2013-05-27 - 17:46 MirkoantonioCasolino Event display for HEC calorimeter
PNGpng Tile.png r1 manage 12.2 K 2013-05-27 - 17:47 MirkoantonioCasolino Event display for Tile calorimeter
Texttxt checkESDWithGeometry.py.txt r1 manage 0.5 K 2013-05-27 - 17:58 MirkoantonioCasolino Macro python to use the event display
Texttxt example.py.txt r1 manage 0.5 K 2013-05-27 - 14:14 MirkoantonioCasolino An Example to run out of box

This topic: Main > WebPreferences > AraClusterEventDisplay
Topic revision: r8 - 2013-05-28 - MirkoantonioCasolino
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback