AliPhysics  05c4c93 (05c4c93)
AliFMDEncodedEdx::Spec Struct Reference

#include <AliFMDEncodedEdx.h>

Public Member Functions

 Spec (UShort_t nb, Double_t l, Double_t h)
 
UInt_t Encode (Double_t v) const
 
Double_t Decode (UInt_t b, Double_t &w) const
 
Double_t Decode (UInt_t b) const
 
void FillBinArray (TArrayD &a) const
 
void Print (Option_t *opt="") const
 

Static Public Member Functions

static void Test ()
 

Public Attributes

UShort_t nBins
 
Double_t min
 
Double_t max
 
UShort_t cutBin1
 
Double_t cutVal1
 
UShort_t cutBin2
 
Double_t cutVal2
 

Detailed Description

Specification of the bins

Definition at line 59 of file AliFMDEncodedEdx.h.

Constructor & Destructor Documentation

AliFMDEncodedEdx::Spec::Spec ( UShort_t  nb,
Double_t  l,
Double_t  h 
)
inline

Constructor

Parameters
nbTotal number of bins
lLower value
hUpper value

Definition at line 74 of file AliFMDEncodedEdx.h.

Referenced by AliFMDEncodedEdx::GetdEAxis(), and AliFMDEncodedEdx::GetdLAxis().

Member Function Documentation

Double_t AliFMDEncodedEdx::Spec::Decode ( UInt_t  b,
Double_t w 
) const
inline

Decode a bin into a value

Parameters
bEncoded (bin number) value
wOn return, the width of the bin
Returns
Decoded value (center of bin)

Definition at line 118 of file AliFMDEncodedEdx.h.

Referenced by Decode(), AliFMDEncodedEdx::DecodeOne(), and Print().

Double_t AliFMDEncodedEdx::Spec::Decode ( UInt_t  b) const
inline

Decode a bin into a value

Parameters
bEncoded (bin number) value
Returns
Decoded value (center of bin)

Definition at line 147 of file AliFMDEncodedEdx.h.

UInt_t AliFMDEncodedEdx::Spec::Encode ( Double_t  v) const
inline

Encode a value

Parameters
vValue to encode
Returns
Encoded (bin number) value

Definition at line 88 of file AliFMDEncodedEdx.h.

Referenced by AliFMDEncodedEdx::EncodeOne(), and Print().

void AliFMDEncodedEdx::Spec::FillBinArray ( TArrayD a) const
inline

Fill an array with values appropriate for defining a histogram axis with the natural binning of the encoding

Parameters
aOn return, the modified bin-border array

Definition at line 158 of file AliFMDEncodedEdx.h.

Referenced by AliFMDMCTrackELoss::CreateOutputObjects(), AliFMDEncodedEdx::Make1D(), AliFMDEncodedEdx::Make2D(), AliFMDMCTrackInspector::RingHistos::MakeIncreasingAxis(), and AliFMDMCHitEnergyFitter::RingHistos::MakeIncreasingAxis().

void AliFMDEncodedEdx::Spec::Print ( Option_t opt = "") const
inline

Print information.

Parameters
optIf this starts with `T' also run a test

Definition at line 174 of file AliFMDEncodedEdx.h.

Referenced by Test().

static void AliFMDEncodedEdx::Spec::Test ( )
inlinestatic

Run a test

Definition at line 191 of file AliFMDEncodedEdx.h.

Member Data Documentation

UShort_t AliFMDEncodedEdx::Spec::cutBin1

Definition at line 63 of file AliFMDEncodedEdx.h.

Referenced by Decode(), Encode(), and FillBinArray().

UShort_t AliFMDEncodedEdx::Spec::cutBin2

Definition at line 65 of file AliFMDEncodedEdx.h.

Referenced by Decode(), Encode(), and FillBinArray().

Double_t AliFMDEncodedEdx::Spec::cutVal1

Definition at line 64 of file AliFMDEncodedEdx.h.

Referenced by Decode(), Encode(), and FillBinArray().

Double_t AliFMDEncodedEdx::Spec::cutVal2

Definition at line 66 of file AliFMDEncodedEdx.h.

Referenced by Decode(), Encode(), and FillBinArray().

Double_t AliFMDEncodedEdx::Spec::max

Definition at line 62 of file AliFMDEncodedEdx.h.

Referenced by Decode(), Encode(), and AliFMDEncodedEdx::EncodeOne().

Double_t AliFMDEncodedEdx::Spec::min

Definition at line 61 of file AliFMDEncodedEdx.h.

Referenced by Decode(), Encode(), AliFMDEncodedEdx::EncodeOne(), and FillBinArray().

UShort_t AliFMDEncodedEdx::Spec::nBins

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