AliRoot Core  3dc7879 (3dc7879)
DrawESD Class Reference

Draw digit ADC versus Rec point mult. More...

Inheritance diagram for DrawESD:

Public Member Functions

 DrawESD (Int_t n=2000, Double_t mmin=-0.5, Double_t mmax=15.5)
 
 ~DrawESD ()
 
Bool_t Begin (Int_t ev)
 
Bool_t ProcessESD (UShort_t, Char_t, UShort_t, UShort_t, Float_t eta, Float_t mult)
 
Bool_t ProcessESDs ()
 
TF1 * FitPeak (Int_t n, TH1D *hist, Double_t min, Double_t &max)
 
void MaxInRange (TH1D *hist, Double_t min, Double_t &mean, Double_t &var)
 
const char * PrettyFloat (float x)
 
void ShowFit (Double_t x1, Double_t y1, const char *title, TF1 *f, Double_t dx=0, Double_t dy=0.05)
 
Bool_t Finish ()
 
void DrawMult (TCanvas *, TLegend *leg)
 
void FindMinMax (Double_t &xmin, Double_t &xmax, Double_t &ymax)
 
void FitLandau (Double_t xmin, Double_t xmax, Double_t &ymax, TLegend *leg)
 
void DrawResponse (Double_t xmax, Double_t ymax, TLegend *leg)
 
TF1 * FitMultiLandau (Double_t xmin, Double_t xmax, TLegend *leg)
 
void DrawLandaus (TF1 *f)
 
TGraph * GetResp ()
 
TGraph * GetCorr ()
 
TF1 * MakeLandau (Double_t min, Double_t max, Double_t p, Double_t v)
 
TF1 * MakeFoldLandau (Double_t min, Double_t max, TF1 *l, Double_t p, Double_t v)
 
- Public Member Functions inherited from AliFMDInput
 AliFMDInput ()
 
 AliFMDInput (const char *gAliceFile)
 
virtual ~AliFMDInput ()
 
virtual void AddLoad (ETrees tree)
 
virtual void RemoveLoad (ETrees tree)
 
virtual Int_t NEvents () const
 
virtual Bool_t IsLoaded (ETrees tree) const
 
virtual void SetLoads (UInt_t mask)
 
virtual void SetLoads (const char *mask)
 
virtual const char * LoadedString (Bool_t dataOnly=false) const
 
virtual Bool_t Init ()
 
virtual Bool_t Event ()
 
virtual Bool_t End ()
 
virtual Bool_t Run (UInt_t maxEvents=0)
 
virtual Bool_t ProcessHits ()
 
virtual Bool_t ProcessTrackRefs ()
 
virtual Bool_t ProcessTracks ()
 
virtual Bool_t ProcessStack ()
 
virtual Bool_t ProcessDigits ()
 
virtual Bool_t ProcessSDigits ()
 
virtual Bool_t ProcessRawDigits ()
 
virtual Bool_t ProcessRawCalibDigits ()
 
virtual Bool_t ProcessRecPoints ()
 
virtual Bool_t ProcessUsers ()
 
virtual Bool_t ProcessHit (AliFMDHit *h, TParticle *p)
 
virtual Bool_t ProcessTrackRef (AliTrackReference *trackRef, TParticle *track)
 
virtual Bool_t ProcessTrack (Int_t i, TParticle *p, AliFMDHit *h)
 
virtual Bool_t ProcessParticle (Int_t i, TParticle *p)
 
virtual Bool_t ProcessDigit (AliFMDDigit *digit)
 
virtual Bool_t ProcessSDigit (AliFMDSDigit *sdigit)
 
virtual Bool_t ProcessRawDigit (AliFMDDigit *digit)
 
virtual Bool_t ProcessRawCalibDigit (AliFMDDigit *digit)
 
virtual Bool_t ProcessRecPoint (AliFMDRecPoint *point)
 
virtual Bool_t ProcessUser (UShort_t d, Char_t r, UShort_t s, UShort_t t, Float_t v)
 
void SetRawFile (const char *file)
 
void SetInputDir (const char *dir)
 

Private Attributes

TH1D * fMult
 
const Double_t fCorr
 
TList fCleanup
 

Additional Inherited Members

- Public Types inherited from AliFMDInput
enum  ETrees {
  kHits = 1, kKinematics, kDigits, kSDigits,
  kHeader, kRecPoints, kESD, kRaw,
  kGeometry, kTrackRefs, kRawCalib, kUser
}
 
- Static Public Member Functions inherited from AliFMDInput
static TArrayF MakeLogScale (Int_t n, Double_t min, Double_t max)
 
static ETrees ParseLoad (const char *what)
 
- Protected Member Functions inherited from AliFMDInput
 AliFMDInput (const AliFMDInput &o)
 
AliFMDInputoperator= (const AliFMDInput &)
 
virtual Float_t GetSignal (UShort_t d, Char_t r, UShort_t s, UShort_t t)
 
- Static Protected Member Functions inherited from AliFMDInput
static const char * TreeName (ETrees tree, bool shortest=false)
 
static TChain * MakeChain (const char *what, const char *datadir, bool recursive=false)
 
static void ScanDirectory (TSystemDirectory *dir, const TString &olddir, TChain *chain, const char *pattern, bool recursive)
 
- Protected Attributes inherited from AliFMDInput
TString fGAliceFile
 
AliRunLoaderfLoader
 
AliRunfRun
 
AliStackfStack
 
AliLoaderfFMDLoader
 
AliRawReader * fReader
 
AliFMDRawReaderfFMDReader
 
AliFMDfFMD
 
AliESDFMDfESD
 
AliESDEventfESDEvent
 
TTree * fTreeE
 
TTree * fTreeH
 
TTree * fTreeTR
 
TTree * fTreeD
 
TTree * fTreeS
 
TTree * fTreeR
 
TTree * fTreeA
 
TChain * fChainE
 
TClonesArray * fArrayE
 
TClonesArray * fArrayH
 
TClonesArray * fArrayTR
 
TClonesArray * fArrayD
 
TClonesArray * fArrayS
 
TClonesArray * fArrayR
 
TClonesArray * fArrayA
 
AliHeaderfHeader
 
TGeoManager * fGeoManager
 
Int_t fTreeMask
 
TString fRawFile
 
TString fInputDir
 
Bool_t fIsInit
 
Int_t fEventCount
 
Int_t fNEvents
 
- Static Protected Attributes inherited from AliFMDInput
static const ETrees fgkAllLoads [kUser+1]
 

Detailed Description

Draw digit ADC versus Rec point mult.

Root> .L Compile.C
Root> Compile("DrawESD.C")
Root> DrawESD c
Root> c.Run();

Definition at line 71 of file DrawESD.C.

Constructor & Destructor Documentation

DrawESD::DrawESD ( Int_t  n = 2000,
Double_t  mmin = -0.5,
Double_t  mmax = 15.5 
)
inline

Definition at line 79 of file DrawESD.C.

DrawESD::~DrawESD ( )
inline

Definition at line 90 of file DrawESD.C.

Member Function Documentation

Bool_t DrawESD::Begin ( Int_t  ev)
inlinevirtual

Begining of event

Parameters
evEvent number
Returns
false on error

Reimplemented from AliFMDInput.

Definition at line 98 of file DrawESD.C.

void DrawESD::DrawLandaus ( TF1 *  f)
inline

Draw landau functions in a separate canvas

Parameters
fMulti-landau function

Definition at line 529 of file DrawESD.C.

void DrawESD::DrawMult ( TCanvas *  ,
TLegend *  leg 
)
inline

Draw the multiplicity distribution

Definition at line 265 of file DrawESD.C.

Referenced by Finish().

void DrawESD::DrawResponse ( Double_t  xmax,
Double_t  ymax,
TLegend *  leg 
)
inline

Superimpose the response graph from the RPP

Parameters
ymaxY value of multiplicity spectra in the landau peak
legLegend

Definition at line 400 of file DrawESD.C.

Referenced by Finish().

void DrawESD::FindMinMax ( Double_t &  xmin,
Double_t &  xmax,
Double_t &  ymax 
)
inline

Find the minimum and maximum values in range

Parameters
xmin
xmax
ymax

Definition at line 290 of file DrawESD.C.

Referenced by Finish().

Bool_t DrawESD::Finish ( )
inlinevirtual

Called at the end of the run.

Returns
false on error

Reimplemented from AliFMDInput.

Definition at line 210 of file DrawESD.C.

void DrawESD::FitLandau ( Double_t  xmin,
Double_t  xmax,
Double_t &  ymax,
TLegend *  leg 
)
inline

Fit a landau and a landau+gaussian to the data

Parameters
xminMinimum of peak range
xmaxMaximum of peak range
ymaxY value in MIP peak
legLegend

Definition at line 337 of file DrawESD.C.

Referenced by Finish().

TF1* DrawESD::FitMultiLandau ( Double_t  xmin,
Double_t  xmax,
TLegend *  leg 
)
inline

Fit sum of landaus to the multiplicity distribution

Parameters
xminMinimum of range
xmaxMaximum of range
legLegend
Returns
Fitted function

Definition at line 456 of file DrawESD.C.

TF1* DrawESD::FitPeak ( Int_t  n,
TH1D *  hist,
Double_t  min,
Double_t &  max 
)
inline

Definition at line 133 of file DrawESD.C.

Referenced by FitMultiLandau().

TGraph* DrawESD::GetCorr ( )
inline

Get the correction to Bethe-Bloc from Review of Particle Physics (fig 27.8).

Returns
correction graph

Definition at line 671 of file DrawESD.C.

TGraph* DrawESD::GetResp ( )
inline

Get the response functin \( f(\Delta_p/x)\) from Review of Particle Physics (fig. 27.7). It is scaled to the value at MPV.

Returns
Graph of response

Definition at line 578 of file DrawESD.C.

Referenced by DrawResponse().

TF1* DrawESD::MakeFoldLandau ( Double_t  min,
Double_t  max,
TF1 *  l,
Double_t  p,
Double_t  v 
)
inline

Make a Landau, folded with a gaussian, function object

Parameters
minMinimum of fit range
maxMaximum of fit range
lSeed Landau function object
pPeak position
vVariance around peak
Returns
Landau+Gaus function object

Definition at line 733 of file DrawESD.C.

Referenced by FitLandau().

TF1* DrawESD::MakeLandau ( Double_t  min,
Double_t  max,
Double_t  p,
Double_t  v 
)
inline

Make a Landau function object.

Parameters
minMinimum of fit range
maxMaximum of fit range
pPeak position
vVariance around peak
Returns
Landau function object

Definition at line 712 of file DrawESD.C.

Referenced by FitLandau().

void DrawESD::MaxInRange ( TH1D *  hist,
Double_t  min,
Double_t &  mean,
Double_t &  var 
)
inline

Definition at line 161 of file DrawESD.C.

Referenced by FitMultiLandau().

const char* DrawESD::PrettyFloat ( float  x)
inline

Definition at line 169 of file DrawESD.C.

Referenced by ShowFit().

Bool_t DrawESD::ProcessESD ( UShort_t  d,
Char_t  r,
UShort_t  s,
UShort_t  t,
Float_t  eta,
Float_t  mult 
)
inlinevirtual

Process ESD data for the FMD. Users should overload this to deal with ESD data.

Parameters
dDetector number (1-3)
rRing identifier ('I' or 'O')
sSector number (0-19, or 0-39)
tStrip number (0-511, or 0-255)
etaPsuedo-rapidity
multPsuedo-multiplicity
Returns
false on error

Reimplemented from AliFMDInput.

Definition at line 103 of file DrawESD.C.

Bool_t DrawESD::ProcessESDs ( )
inlinevirtual

Loop over all ESD data, and call ProcessESD for each entry.

Returns
false on error

Reimplemented from AliFMDInput.

Definition at line 125 of file DrawESD.C.

void DrawESD::ShowFit ( Double_t  x1,
Double_t  y1,
const char *  title,
TF1 *  f,
Double_t  dx = 0,
Double_t  dy = 0.05 
)
inline

Definition at line 180 of file DrawESD.C.

Referenced by FitLandau().

Member Data Documentation

TList DrawESD::fCleanup
private

Definition at line 76 of file DrawESD.C.

const Double_t DrawESD::fCorr
private

Definition at line 75 of file DrawESD.C.

TH1D* DrawESD::fMult
private

Definition at line 74 of file DrawESD.C.


The documentation for this class was generated from the following file: