AliRoot Core  3dc7879 (3dc7879)
DrawHits Class Reference

Draw hit energy loss. More...

Inheritance diagram for DrawHits:

Public Member Functions

 DrawHits (const char *pdgName="pi+", Int_t m=500, Double_t emin=1, Double_t emax=1000, Int_t n=900, Double_t tmin=1e-2, Double_t tmax=1e3)
 
Bool_t ProcessHit (AliFMDHit *hit, TParticle *p)
 
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 ScaleGraph (TGraph *graph, bool density=true, double mass=1)
 
TGraph * FromRPPFull ()
 
TGraph * FromRPPNoDelta ()
 
TGraph * FromRPPNoRad ()
 
TGraph * FromRPPMean ()
 
TGraph * FromGFMATE ()
 
TGraph * GetResp ()
 
TGraph * GetCorr ()
 
- 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 Begin (Int_t event)
 
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 ProcessESDs ()
 
virtual Bool_t ProcessUsers ()
 
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 ProcessESD (UShort_t d, Char_t r, UShort_t s, UShort_t t, Float_t eta, Float_t mult)
 
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

TH2D * fElossVsPMQ
 
TH1D * fEloss
 
TH1D * fBetaGamma
 
TParticlePDG * fPdg
 
const Double_t fRho
 
const Double_t fBetaGammaMip
 

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 hit energy loss.

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

Definition at line 41 of file DrawHits.C.

Constructor & Destructor Documentation

DrawHits::DrawHits ( const char *  pdgName = "pi+",
Int_t  m = 500,
Double_t  emin = 1,
Double_t  emax = 1000,
Int_t  n = 900,
Double_t  tmin = 1e-2,
Double_t  tmax = 1e3 
)
inline

Definition at line 52 of file DrawHits.C.

Member Function Documentation

Bool_t DrawHits::Finish ( )
inlinevirtual

Called at the end of the run.

Returns
false on error

Reimplemented from AliFMDInput.

Definition at line 178 of file DrawHits.C.

TGraph* DrawHits::FromGFMATE ( )
inline

Draw energy loss as obtained from GEANT 3.21 GFMATE.

Returns
TGraph object

Definition at line 514 of file DrawHits.C.

Referenced by Finish().

TGraph* DrawHits::FromRPPFull ( )
inline

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

Returns
TGraph object

Definition at line 354 of file DrawHits.C.

Referenced by Finish().

TGraph* DrawHits::FromRPPMean ( )
inline

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

Returns
TGraph object

Definition at line 477 of file DrawHits.C.

Referenced by Finish().

TGraph* DrawHits::FromRPPNoDelta ( )
inline

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

Returns
TGraph object

Definition at line 396 of file DrawHits.C.

Referenced by Finish().

TGraph* DrawHits::FromRPPNoRad ( )
inline

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

Returns
TGraph object

Definition at line 438 of file DrawHits.C.

Referenced by Finish().

TGraph* DrawHits::GetCorr ( )
inline

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

Definition at line 721 of file DrawHits.C.

Referenced by Finish().

TGraph* DrawHits::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.

Definition at line 631 of file DrawHits.C.

Referenced by Finish().

Bool_t DrawHits::ProcessHit ( AliFMDHit h,
TParticle *  p 
)
inlinevirtual

Process one hit, and optionally it's corresponding kinematics track. Users should over this to process each hit.

Parameters
hHit
pAssociated track
Returns
false on error

Reimplemented from AliFMDInput.

Definition at line 95 of file DrawHits.C.

void DrawHits::ScaleGraph ( TGraph *  graph,
bool  density = true,
double  mass = 1 
)
inline

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

Parameters
graphGraph to scale
densityIf true, scale by the Si density ($=2.33$/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 344 of file DrawHits.C.

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

void DrawHits::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 148 of file DrawHits.C.

Referenced by Finish().

Member Data Documentation

TH1D* DrawHits::fBetaGamma
private

Definition at line 46 of file DrawHits.C.

const Double_t DrawHits::fBetaGammaMip
private

Definition at line 49 of file DrawHits.C.

TH1D* DrawHits::fEloss
private

Definition at line 45 of file DrawHits.C.

TH2D* DrawHits::fElossVsPMQ
private

Definition at line 44 of file DrawHits.C.

TParticlePDG* DrawHits::fPdg
private

Definition at line 47 of file DrawHits.C.

const Double_t DrawHits::fRho
private

Definition at line 48 of file DrawHits.C.


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