AliRoot Core  ee782a0 (ee782a0)
MUONmassPlot_ESD.C File Reference

Macro MUONmassPlot_ESD.C for ESD. More...

#include "TTree.h"
#include "TBranch.h"
#include "TClonesArray.h"
#include "TLorentzVector.h"
#include "TFile.h"
#include "TH1.h"
#include "TH2.h"
#include "TParticle.h"
#include <Riostream.h>
#include <TGeoManager.h>
#include <TROOT.h>
#include "AliLog.h"
#include "AliCDBManager.h"
#include "AliESDEvent.h"
#include "AliESDVertex.h"
#include "AliESDMuonTrack.h"
#include "AliMUONCDB.h"
#include "AliMUONTrackParam.h"
#include "AliMUONTrackExtrap.h"
#include "AliMUONESDInterface.h"
#include "AliMUONConstants.h"
Include dependency graph for MUONmassPlot_ESD.C:

Go to the source code of this file.

Functions

Bool_t MUONmassPlot (const char *esdFileName="AliESDs.root", const char *geoFilename="geometry.root", const char *ocdbPath="local://$ALICE_ROOT/OCDB", Int_t FirstEvent=0, Int_t LastEvent=-1, Int_t ExtrapToVertex=-1, Int_t ResType=553, Float_t Chi2Cut=100., Float_t PtCutMin=1., Float_t PtCutMax=10000., Float_t massMin=9.17, Float_t massMax=9.77)
 

Detailed Description

Macro MUONmassPlot_ESD.C for ESD.

Author
Ch. Finck, Subatech, April. 2004

Macro to make invariant mass plots for combinations of 2 muons with opposite charges, from root file "MUON.tracks.root" containing the result of track reconstruction. Histograms are stored on the "MUONmassPlot.root" file. introducing TLorentzVector for parameter calculations (Pt, P,rap,etc...) using Invariant Mass for rapidity.

Add parameters and histograms for analysis

Definition in file MUONmassPlot_ESD.C.

Function Documentation

Bool_t MUONmassPlot ( const char *  esdFileName = "AliESDs.root",
const char *  geoFilename = "geometry.root",
const char *  ocdbPath = "local://$ALICE_ROOT/OCDB",
Int_t  FirstEvent = 0,
Int_t  LastEvent = -1,
Int_t  ExtrapToVertex = -1,
Int_t  ResType = 553,
Float_t  Chi2Cut = 100.,
Float_t  PtCutMin = 1.,
Float_t  PtCutMax = 10000.,
Float_t  massMin = 9.17,
Float_t  massMax = 9.77 
)
Parameters
FirstEvent(default 0)
LastEvent(default 10000)
ExtrapToVertex(default -1)
  • <0: no extrapolation;
  • =0: extrapolation to (0,0,0);
  • >0: extrapolation to ESDVertex if available, else to (0,0,0)
ResType553 for Upsilon, anything else for J/Psi (default 553)
Chi2Cutto keep only tracks with chi2 per d.o.f. < Chi2Cut (default 100)
PtCutMinto keep only tracks with transverse momentum > PtCutMin (default 1)
PtCutMaxto keep only tracks with transverse momentum < PtCutMax (default 10000)
massMin(default 9.17 for Upsilon)
massMax(default 9.77 for Upsilon); to calculate the reconstruction efficiency for resonances with invariant mass massMin < mass < massMax.

Definition at line 47 of file MUONmassPlot_ESD.C.