AliPhysics  5eaf189 (5eaf189)
Inheritance diagram for MakeDeltaWeights:

Public Member Functions

 MakeDeltaWeights ()
 
AliTrackletDeltaWeightsRun (const char *realFileName, const char *simFileName, Int_t dimen=2, Bool_t scaleToTail=true)
 
void Normalize (TH3 *h)
 
TH1Weights1 (Container *realMeas, Container *simMeas, Bool_t scaleToTail)
 
TH2Weights2 (Container *realMeas, Container *simMeas, Bool_t scaleToTail)
 
TH3Weights3 (Container *realMeas, Container *simMeas, Bool_t scaleToTail)
 
Bool_t ProcessBin (Int_t bin, Int_t dimen, Bool_t scaleToTail, Double_t c1, Double_t c2, Container *realTop, Container *simTop, AliTrackletDeltaWeights *weights)
 
- Public Member Functions inherited from AliTrackletAODUtils
 AliTrackletAODUtils ()
 
virtual ~AliTrackletAODUtils ()
 

Related Functions

(Note that these are not member functions.)

void MakeDeltas (const char *realFileName, const char *simFileName, Int_t dimen=2, Bool_t scaleToTail=true)
 

Additional Inherited Members

- Public Types inherited from AliTrackletAODUtils
typedef TList Container
 
- Static Public Member Functions inherited from AliTrackletAODUtils
static void PdgAttr (Int_t pdg, TString &nme, Color_t &c, Style_t &s)
 
static const char * CentName (Double_t c1, Double_t c2)
 
static Color_t CentColor (const TAxis &axis, Double_t c1, Double_t c2)
 
static Color_t CentColor (Int_t bin)
 
static TFile * OpenFile (const char *filename)
 
static Bool_t CheckAxisNBins (const char *which, const TAxis *a1, const TAxis *a2)
 
static Bool_t CheckAxisLimits (const char *which, const TAxis *a1, const TAxis *a2)
 
static Bool_t CheckAxisBins (const char *which, const TAxis *a1, const TAxis *a2)
 
static Bool_t CheckAxisLabels (const char *which, const TAxis *a1, const TAxis *a2)
 
static Bool_t CheckAxis (const char *which, const TAxis *a1, const TAxis *a2, Bool_t alsoLbls)
 
static Bool_t CheckConsistency (const TH1 *h1, const TH1 *h2)
 
static TObjectGetO (Container *parent, const char *name, TClass *cls=0, Bool_t verb=true)
 
static TObjectGetO (TDirectory *parent, const char *name, TClass *cls=0, Bool_t verb=true)
 
static TH1GetH1 (Container *parent, const char *name, Bool_t verb=true)
 
static TH1GetH1 (TDirectory *parent, const char *name, Bool_t verb=true)
 
static TProfile * GetP1 (Container *parent, const char *name, Bool_t verb=true)
 
static TH2GetH2 (Container *parent, const char *name, Bool_t verb=true)
 
static TH2GetH2 (TDirectory *parent, const char *name, Bool_t verb=true)
 
static TH3GetH3 (Container *parent, const char *name, Bool_t verb=true)
 
static TH3GetH3 (TDirectory *parent, const char *name, Bool_t verb=true)
 
static TProfile2D * GetP2 (Container *parent, const char *name, Bool_t verb=true)
 
static TProfile * GetP (Container *parent, const char *name, Bool_t verb=true)
 
static THStack * GetHS (Container *parent, const char *name, Bool_t verb=true)
 
static THStack * GetHS (TDirectory *parent, const char *name, Bool_t verb=true)
 
static ContainerGetC (Container *parent, const char *name, Bool_t verb=true)
 
static ContainerGetC (TDirectory *parent, const char *name, Bool_t verb=true)
 
static TDirectory * GetT (TDirectory *parent, const char *name, Bool_t verb=true)
 
static Double_t GetD (Container *parent, const char *name, Double_t def=-1, Bool_t verb=true)
 
static Int_t GetI (Container *parent, const char *name, Int_t def=-1, Bool_t verb=true)
 
static Int_t GetB (Container *parent, const char *name, Bool_t def=false, Bool_t verb=true)
 
static TH1CopyH1 (Container *parent, const char *name, const char *newName=0, Bool_t verb=true)
 
static TH2CopyH2 (Container *parent, const char *name, const char *newName=0, Bool_t verb=true)
 
static TH3CopyH3 (Container *parent, const char *name, const char *newName=0, Bool_t verb=true)
 
static void CopyAttr (const TH1 *src, TH1 *dest)
 
static TH1Make1D (Container *c, const TString &name, const TString &title, Color_t color, Style_t style, const TAxis &xAxis)
 
static TProfile * Make1P (Container *c, const TString &name, const TString &title, Color_t color, Style_t style, const TAxis &xAxis)
 
static TH2Make2D (Container *c, const TString &name, const TString &title, Color_t color, Style_t style, const TAxis &xAxis, const TAxis &yAxis)
 
static TH3Make3D (Container *c, const TString &name, const TString &title, Color_t color, Style_t style, const TAxis &xAxis, const TAxis &yAxis, const TAxis &zAxis)
 
static TProfile2D * Make2P (Container *c, const TString &name, const TString &title, Color_t color, Style_t style, const TAxis &xAxis, const TAxis &yAxis)
 
static TH1Scale (TH1 *h, Double_t x, Double_t xe)
 
static TH2Scale (TH2 *h, Double_t x, Double_t xe)
 
static TH2Scale (TH2 *h, TH1 *s)
 
static void FixAxis (TAxis &axis, const char *title=0)
 
static void ScaleAxis (TAxis &ret, Double_t fact=1)
 
static void SetAxis (TAxis &axis, Int_t n, Double_t *borders)
 
static void SetAxis (TAxis &axis, const TString &spec, const char *sep=":,")
 
static void SetAxis (TAxis &axis, Int_t n, Double_t l, Double_t h)
 
static void SetAxis (TAxis &axis, Int_t n, Double_t m)
 
static void PrintAxis (const TAxis &axis, Int_t nSig=2, const char *alt=0)
 
static TH2ScaleToIPz (TH2 *h, TH1 *ipZ, Bool_t full=false)
 
static TH3ScaleToIPz (TH3 *h, TH1 *ipZ, Bool_t full=false)
 
static TH3ScaleDelta (TH3 *h, TH2 *scale)
 
static TH2ProjectEtaDelta (TH3 *h)
 
static TH1ProjectDelta (TH2 *h)
 
static TH1ProjectDeltaFull (TH3 *h)
 
static TH1AverageOverIPz (TH2 *h, const char *name, UShort_t mode, TH1 *ipz, Double_t ipEff=0, TH2 *mask=0, Bool_t verb=false)
 
static TObjectCloneAndAdd (Container *c, TObject *o)
 
static Double_t Integrate (TH1 *h, Double_t min, Double_t max, Double_t &err)
 
static Double_t RatioE (Double_t n, Double_t en, Double_t d, Double_t ed, Double_t &er)
 
static Double_t RatioE2 (Double_t n, Double_t e2n, Double_t d, Double_t e2d, Double_t &e2r)
 
static TH1RatioH (const TH1 *num, const TH1 *denom, const char *name=0)
 
static void FixMinMax (TH1 *h, Bool_t ignoreZero=true)
 
static void FixMinMax (THStack *h, Bool_t ignoreZero=true)
 
static Int_tPdgArray (Int_t &size)
 
static const TAxisPdgAxis ()
 
static Int_t PdgBin (Int_t pdg)
 

Detailed Description

Structure to make weights for delta

Definition at line 21 of file MakeDeltaWeights.C.

Constructor & Destructor Documentation

MakeDeltaWeights::MakeDeltaWeights ( )
inline

Definition at line 23 of file MakeDeltaWeights.C.

Member Function Documentation

void MakeDeltaWeights::Normalize ( TH3 h)
inline
Deprecated:
Parameters
hHistogram to normalize

Definition at line 117 of file MakeDeltaWeights.C.

Bool_t MakeDeltaWeights::ProcessBin ( Int_t  bin,
Int_t  dimen,
Bool_t  scaleToTail,
Double_t  c1,
Double_t  c2,
Container realTop,
Container simTop,
AliTrackletDeltaWeights weights 
)
inline

Process a centrality bin

Parameters
binBin number
dimenDimensions
scaleToTailIf true, scale simulation to real tail first
c1Lowest centrality
c2Highest centrality
realTopTop container of the real data
simTopTop container of the simulated data
weightsThe weight structure to fill
Returns
true on success.

Definition at line 245 of file MakeDeltaWeights.C.

Referenced by Run().

AliTrackletDeltaWeights* MakeDeltaWeights::Run ( const char *  realFileName,
const char *  simFileName,
Int_t  dimen = 2,
Bool_t  scaleToTail = true 
)
inline

Create \(\Delta\) dependent weights.

If dimen is set to 3, then the weights depend on the tracklet \((\Delta,\eta)\) and event \(\mathrm{IP}_z\).

If dimen is set to 2, then the weights depend on the tracklet \((\Delta,\eta)\) - this is the default.

If dimen is set to 1, then the weights depend on the tracklet \(\Delta\) only

Parameters
realFileNameFile with real data (to correct to)
simFileNameFile with simulated data (to correct)
dimenNumber of dimensions
scaleToTailIf we should scale the simulated distribution to the tail of the real distribution
Returns
The weight structure on success, null otherwise

Definition at line 44 of file MakeDeltaWeights.C.

Referenced by MakeDeltas().

TH1* MakeDeltaWeights::Weights1 ( Container realMeas,
Container simMeas,
Bool_t  scaleToTail 
)
inline

Calculate 1-D weights i.e., \(\Delta\) dependent

Parameters
realMeasReal container
simMeasSimulation container
scaleToTailIf true, scale simulation to real tail first
Returns
Weights histogram

Definition at line 147 of file MakeDeltaWeights.C.

Referenced by ProcessBin().

TH2* MakeDeltaWeights::Weights2 ( Container realMeas,
Container simMeas,
Bool_t  scaleToTail 
)
inline

Calculate 2-D weights i.e., \(\Delta,\eta\) dependent

Parameters
realMeasReal container
simMeasSimulation container
scaleToTailIf true, scale simulation to real tail first
Returns
Weights histogram

Definition at line 179 of file MakeDeltaWeights.C.

Referenced by ProcessBin().

TH3* MakeDeltaWeights::Weights3 ( Container realMeas,
Container simMeas,
Bool_t  scaleToTail 
)
inline

Calculate 3-D weights i.e., \(\Delta,\eta,\mathrm{IP}_{z}\) dependent

Parameters
realMeasReal container
simMeasSimulation container
scaleToTailIf true, scale simulation to real tail first
Returns
Weights histogram

Definition at line 210 of file MakeDeltaWeights.C.

Referenced by ProcessBin().


The documentation for this struct was generated from the following files: