AliPhysics  fe039ad (fe039ad)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SummaryMCTrackDrawer Class Reference
Inheritance diagram for SummaryMCTrackDrawer:

Public Types

enum  EFlags { kEventInspector = 0x001, kTrackDensity = 0x002, kELossFits = 0x004, kNormal = 0x107 }
 
- Public Types inherited from SummaryDrawer
enum  {
  kLogx = 0x1, kLogy = 0x2, kLogz = 0x4, kLegend = 0x10,
  kGridx = 0x100, kGridy = 0x200, kGridz = 0x400, kSilent = 0x800,
  kNorth = 0x1000, kMiddle = 0x2000, kSouth = 0x3000, kEast = 0x10000,
  kCenter = 0x20000, kWest = 0x30000
}
 
enum  { kLandscape = 0x100, kPause = 0x200 }
 

Public Member Functions

 SummaryMCTrackDrawer ()
 
TFile * Init (const char *fname)
 
void Run (const char *fname, UShort_t what=kNormal)
 
- Public Member Functions inherited from SummaryDrawer
 SummaryDrawer ()
 
virtual ~SummaryDrawer ()
 

Protected Member Functions

void DrawBetaGammadEdx (TCollection *dir, const char *prefix, UShort_t extra=0x1F)
 
void DrawTrackDensity (TCollection *parent)
 
void DrawELossFits (TCollection *parent)
 
void DrawTitlePage ()
 
Bethe-bloc
void ScaleGraph (TGraph *graph, bool density=true, double mass=1)
 
TGraphFromRPPFull ()
 
TGraphFromRPPNoDelta ()
 
TGraphFromRPPNoRad ()
 
TGraphFromRPPMean ()
 
TGraphFromGFMATE ()
 
TGraphGetResp ()
 
TGraphGetCorr ()
 
- Protected Member Functions inherited from SummaryDrawer
TLegend * DrawRingLegend (TVirtualPad *p, UInt_t flags)
 
void ClearCanvas ()
 
void CreateCanvas (const TString &pname, Bool_t landscape=false, Bool_t pdf=true, Bool_t useTop=true)
 
void CloseCanvas ()
 
void PrintCanvas (const TString &title, Float_t size=.7)
 
void MakeChapter (const TString &title)
 
TObjectDrawInPad (TVirtualPad *c, Int_t padNo, TObject *h, Option_t *opts="", UInt_t flags=0x0, const char *title="")
 
virtual TObjectDrawObjClone (TObject *o, Option_t *options, const char *title)
 
virtual TObjectDrawObjClone (THStack *o, Option_t *options, const char *title)
 
virtual TObjectDrawObjClone (TH1 *o, Option_t *options, const char *title)
 
TLegend * MakeLegend (TVirtualPad *p, UInt_t flags, Bool_t autoFill)
 
TObjectDrawInPad (TVirtualPad *p, TObject *h, Option_t *opts="", UInt_t flags=0x0, const char *title="")
 
void DrawTwoInPad (TVirtualPad *c, Int_t padNo, TH1 *h1, TH1 *h2, Option_t *opts="", UShort_t flags=0x0)
 
void DrawParameter (Double_t &y, const TString &name, const TString &value, Double_t size=0)
 
template<typename T >
void DrawTParameter (Double_t &y, TList *list, const TString &name)
 
void DivideForRings (Bool_t commonX, Bool_t commonY)
 
TVirtualPad * RingPad (UShort_t d, Char_t r) const
 
TVirtualPad * RingPad (const char *name) const
 
void DrawInRingPad (UShort_t d, Char_t r, TObject *h, Option_t *opts="", UShort_t flags=0x0, const char *title="")
 
void DrawInRingPad (const char *name, TObject *h, Option_t *opts="", UShort_t flags=0x0, const char *title="")
 
void DrawInRingPad (TObject *h, Option_t *opts="", UShort_t flags=0x0, const char *title="")
 
void Pause ()
 
virtual void DrawEventInspector (TCollection *parent)
 
virtual void DrawESDFixer (TCollection *parent)
 
void DrawTrackDensity (TCollection *parent, const char *folderName="mcTrackDensity")
 

Protected Attributes

TCollectionfSums
 
TCollectionfResults
 
- Protected Attributes inherited from SummaryDrawer
TCanvas * fCanvas
 
TPad * fTop
 
TPad * fBody
 
TLatex * fHeader
 
TLatex * fParName
 
TLatex * fParVal
 
Bool_t fPause
 
Bool_t fLandscape
 
TVirtualPad ** fRingMap
 
Bool_t fPDF
 
TString fLastTitle
 

Additional Inherited Members

- Static Protected Member Functions inherited from SummaryDrawer
static const Char_t ** GetRingNames (Bool_t lower=false)
 
static Color_t RingColor (UShort_t d, Char_t r)
 
static void SysString (UShort_t sys, TString &str)
 
static void SNNString (UShort_t sNN, TString &str)
 
static void AppendAnd (TString &trg, const TString &what)
 
static void TriggerString (ULong_t trigger, TString &str)
 
static TObjectGetObject (const TObject *parent, const TString &name, Bool_t verb=true)
 
static Bool_t CheckType (const TObject *o, const TClass *cl, const TString &src)
 
template<typename T >
static TDoGetObject (TObject *o, const TObject *p)
 
template<typename T >
static Bool_t DoGetParameter (TObject *o, const TObject *p, T &value)
 
static Bool_t GetParameter (const TObject *c, const TString &name, Short_t &value, Bool_t verb=true)
 
static Bool_t GetParameter (const TObject *c, const TString &name, UShort_t &value, Bool_t verb=true)
 
static Bool_t GetParameter (const TObject *c, const TString &name, ULong_t &value, Bool_t verb=true)
 
static Bool_t GetParameter (const TObject *c, const TString &name, Int_t &value, Bool_t verb=true)
 
static Bool_t GetParameter (const TObject *c, const TString &name, Double_t &value, Bool_t verb=true)
 
static Bool_t GetParameter (const TObject *c, const TString &name, Bool_t &value, Bool_t verb=true)
 
static TCollectionGetCollection (const TObject *parent, const TString &name, Bool_t verb=true)
 
static TH1GetH1 (const TObject *parent, const TString &name, Bool_t verb=true)
 
static TH2GetH2 (const TObject *parent, const TString &name, Bool_t verb=true)
 
static TH3GetH3 (const TCollection *parent, const TString &name, Bool_t verb=true)
 
static THStack * GetStack (const TObject *parent, const TString &name, const char *sub=0, Bool_t verb=true)
 
static void GetLegendPosition (UInt_t flags, TVirtualPad *p, Double_t &x1, Double_t &y1, Double_t &x2, Double_t &y2)
 
static void CompileScript (const TString &name, const TString &sub, const TString &check, Bool_t force)
 

Detailed Description

Class to draw a summary of the AOD production

Input:
  • The merged forward.root file. If the file isn't merged, it should still work.
Output:
  • A PDF file named after the input, but with .root replaced with pdf

Definition at line 25 of file SummaryMCTrackDrawer.C.

Member Enumeration Documentation

Enumerator
kEventInspector 
kTrackDensity 
kELossFits 
kNormal 

Definition at line 28 of file SummaryMCTrackDrawer.C.

Constructor & Destructor Documentation

SummaryMCTrackDrawer::SummaryMCTrackDrawer ( )
inline

Definition at line 34 of file SummaryMCTrackDrawer.C.

Member Function Documentation

void SummaryMCTrackDrawer::DrawBetaGammadEdx ( TCollection dir,
const char *  prefix,
UShort_t  extra = 0x1F 
)
inlineprotected

Definition at line 93 of file SummaryMCTrackDrawer.C.

Referenced by DrawELossFits(), and DrawTrackDensity().

void SummaryMCTrackDrawer::DrawELossFits ( TCollection parent)
inlineprotected

Definition at line 166 of file SummaryMCTrackDrawer.C.

Referenced by Run().

void SummaryMCTrackDrawer::DrawTitlePage ( )
inlineprotected

Definition at line 229 of file SummaryMCTrackDrawer.C.

Referenced by Run().

void SummaryMCTrackDrawer::DrawTrackDensity ( TCollection parent)
inlineprotected

Definition at line 156 of file SummaryMCTrackDrawer.C.

Referenced by Run().

TGraph* SummaryMCTrackDrawer::FromGFMATE ( )
inlineprotected

Draw energy loss as obtained from GEANT 3.21 GFMATE.

Returns
TGraph object

Definition at line 456 of file SummaryMCTrackDrawer.C.

Referenced by DrawBetaGammadEdx().

TGraph* SummaryMCTrackDrawer::FromRPPFull ( )
inlineprotected

Draw pure Bethe-Bloc from Review of Particle Physics, fig. 27.1

Returns
TGraph object

Definition at line 298 of file SummaryMCTrackDrawer.C.

Referenced by DrawBetaGammadEdx().

TGraph* SummaryMCTrackDrawer::FromRPPMean ( )
inlineprotected

Draw pure Bethe-Bloc from Review of Particle Physics, fig. 27.6

Returns
TGraph object

Definition at line 419 of file SummaryMCTrackDrawer.C.

Referenced by DrawBetaGammadEdx().

TGraph* SummaryMCTrackDrawer::FromRPPNoDelta ( )
inlineprotected

Draw pure Bethe-Bloc from Review of Particle Physics, fig. 27.1, but without delta electrons

Returns
TGraph object

Definition at line 340 of file SummaryMCTrackDrawer.C.

Referenced by DrawBetaGammadEdx().

TGraph* SummaryMCTrackDrawer::FromRPPNoRad ( )
inlineprotected

Draw pure Bethe-Bloc from Review of Particle Physics, fig. 27.1, but without delta electrons

Returns
TGraph object

Definition at line 381 of file SummaryMCTrackDrawer.C.

Referenced by DrawBetaGammadEdx().

TGraph* SummaryMCTrackDrawer::GetCorr ( )
inlineprotected

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

Definition at line 613 of file SummaryMCTrackDrawer.C.

TGraph* SummaryMCTrackDrawer::GetResp ( )
inlineprotected

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

Definition at line 575 of file SummaryMCTrackDrawer.C.

TFile* SummaryMCTrackDrawer::Init ( const char *  fname)
inline

Definition at line 40 of file SummaryMCTrackDrawer.C.

Referenced by Run().

void SummaryMCTrackDrawer::Run ( const char *  fname,
UShort_t  what = kNormal 
)
inline
Parameters
fname
what

Definition at line 69 of file SummaryMCTrackDrawer.C.

Referenced by RerunTrackELoss().

void SummaryMCTrackDrawer::ScaleGraph ( TGraph graph,
bool  density = true,
double  mass = 1 
)
inlineprotected

Scale a graph by density (multiply) and mass (divide).

Parameters
graphGraph to scale
densityIf true, scale by the Si density ( \( \rho=2.33/\mbox{cm}^3\)). The y axis is assumed to have units of \( MeVg^{-1}cm^2\).
massMass to scale with. The x axis is assumed to be the kinetic energy of the particles in units of GeV.

Definition at line 288 of file SummaryMCTrackDrawer.C.

Referenced by FromRPPFull(), FromRPPMean(), FromRPPNoDelta(), and FromRPPNoRad().

Member Data Documentation

TCollection* SummaryMCTrackDrawer::fResults
protected

Definition at line 645 of file SummaryMCTrackDrawer.C.

Referenced by Init(), and Run().

TCollection* SummaryMCTrackDrawer::fSums
protected

Definition at line 644 of file SummaryMCTrackDrawer.C.

Referenced by DrawTitlePage(), Init(), and Run().


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