![]() |
AliRoot Core
ee782a0 (ee782a0)
|
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"
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) |
Macro MUONmassPlot_ESD.C for ESD.
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.
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 |
||
) |
FirstEvent | (default 0) |
LastEvent | (default 10000) |
ExtrapToVertex | (default -1)
|
ResType | 553 for Upsilon, anything else for J/Psi (default 553) |
Chi2Cut | to keep only tracks with chi2 per d.o.f. < Chi2Cut (default 100) |
PtCutMin | to keep only tracks with transverse momentum > PtCutMin (default 1) |
PtCutMax | to 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.