AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONTrackerDataHistogrammer Class Reference

Make histograms from VTrackerData and VPainter objects. More...

#include <AliMUONTrackerDataHistogrammer.h>

Inheritance diagram for AliMUONTrackerDataHistogrammer:

Public Member Functions

 AliMUONTrackerDataHistogrammer (const AliMUONVTrackerData &data, Int_t externalDim, Int_t internalDim=-1)
 
virtual ~AliMUONTrackerDataHistogrammer ()
 
TH1 * CreateChannelHisto (Int_t detElemId, Int_t manuId, Int_t manuChannel) const
 
Bool_t IsInternalMode () const
 Whether we are working with internal dimensions or external ones. More...
 

Static Public Member Functions

static TH1 * CreateHisto (const AliMUONVPainter &painter, Int_t externalDim, Int_t internalDim)
 

Private Member Functions

TH1 * CreateManuHisto (Int_t detElemId, Int_t manuId, Int_t nbins, Double_t xmin, Double_t xmax) const
 
TH1 * CreateHisto (const char *basename, Int_t nbins, Double_t xmin, Double_t xmax) const
 
void GetDataRange (const TObjArray &manuList, Double_t &xmin, Double_t &xmax) const
 
void Add (TH1 &h, const AliMUONSparseHisto &sh) const
 
void AddBusPatchHisto (TH1 &h, Int_t busPatchId) const
 
void AddDEHisto (TH1 &h, Int_t detElemId) const
 
void AddManuHisto (TH1 &h, Int_t detElemId, Int_t manuId) const
 

Private Attributes

const AliMUONVTrackerDatafkData
 data we'll histogram More...
 
Int_t fExternalDim
 (external) dimension we'll histogram More...
 
Int_t fInternalDim
 (internal) dimension we'll make histogram for More...
 

Detailed Description

Make histograms from VTrackerData and VPainter objects.

Class to generate histograms from AliMUONVTrackerData (and AliMUONVPainter) objects

Author
Laurent Aphecetche, Subatech

Definition at line 24 of file AliMUONTrackerDataHistogrammer.h.

Constructor & Destructor Documentation

CLASSIMP AliMUONTrackerDataHistogrammer::AliMUONTrackerDataHistogrammer ( const AliMUONVTrackerData data,
Int_t  externalDim,
Int_t  internalDim = -1 
)

ctor

Definition at line 50 of file AliMUONTrackerDataHistogrammer.cxx.

AliMUONTrackerDataHistogrammer::~AliMUONTrackerDataHistogrammer ( )
virtual

dtor

Definition at line 62 of file AliMUONTrackerDataHistogrammer.cxx.

Member Function Documentation

void AliMUONTrackerDataHistogrammer::Add ( TH1 &  h,
const AliMUONSparseHisto sh 
) const
private

Add sparse histo content to histogram.

Definition at line 69 of file AliMUONTrackerDataHistogrammer.cxx.

Referenced by AddManuHisto(), and CreateChannelHisto().

void AliMUONTrackerDataHistogrammer::AddBusPatchHisto ( TH1 &  h,
Int_t  busPatchId 
) const
private

Add data from one bus patch to the histogram

Definition at line 92 of file AliMUONTrackerDataHistogrammer.cxx.

Referenced by AddDEHisto().

void AliMUONTrackerDataHistogrammer::AddDEHisto ( TH1 &  h,
Int_t  detElemId 
) const
private

Add data from one detection element to the histogram

Definition at line 108 of file AliMUONTrackerDataHistogrammer.cxx.

void AliMUONTrackerDataHistogrammer::AddManuHisto ( TH1 &  h,
Int_t  detElemId,
Int_t  manuId 
) const
private

Add data from a given manu to histogram

Definition at line 125 of file AliMUONTrackerDataHistogrammer.cxx.

Referenced by AddBusPatchHisto(), and CreateManuHisto().

TH1 * AliMUONTrackerDataHistogrammer::CreateChannelHisto ( Int_t  detElemId,
Int_t  manuId,
Int_t  manuChannel 
) const

Create histogram of a given channel. Note that in order to keep memory footprint as low as possible, you should delete the returned pointer as soon as possible...

Definition at line 173 of file AliMUONTrackerDataHistogrammer.cxx.

Referenced by AliMUONManuPadPainter::DrawHistogramClone().

TH1 * AliMUONTrackerDataHistogrammer::CreateHisto ( const AliMUONVPainter painter,
Int_t  externalDim,
Int_t  internalDim 
)
static

Create an histogram, from given dim of given data, for all the channels handled by painter

Definition at line 228 of file AliMUONTrackerDataHistogrammer.cxx.

Referenced by CreateChannelHisto(), CreateHisto(), CreateManuHisto(), AliMUONVPainter::DrawHistogramClone(), and AliMUONVPainter::DrawInternalHistogramClone().

TH1 * AliMUONTrackerDataHistogrammer::CreateHisto ( const char *  basename,
Int_t  nbins,
Double_t  xmin,
Double_t  xmax 
) const
private

Create a single histogram

Definition at line 205 of file AliMUONTrackerDataHistogrammer.cxx.

TH1 * AliMUONTrackerDataHistogrammer::CreateManuHisto ( Int_t  detElemId,
Int_t  manuId,
Int_t  nbins,
Double_t  xmin,
Double_t  xmax 
) const
private

Create histogram of a given manu. Note that in order to keep memory footprint as low as possible, you should delete the returned pointer as soon as possible...

Definition at line 320 of file AliMUONTrackerDataHistogrammer.cxx.

Referenced by CreateHisto().

void AliMUONTrackerDataHistogrammer::GetDataRange ( const TObjArray manuList,
Double_t &  xmin,
Double_t &  xmax 
) const
private

Get data range (in case of InternalMode() only) spanned by the manus in manuArray

Definition at line 346 of file AliMUONTrackerDataHistogrammer.cxx.

Referenced by CreateHisto().

Bool_t AliMUONTrackerDataHistogrammer::IsInternalMode ( ) const
inline

Whether we are working with internal dimensions or external ones.

Definition at line 40 of file AliMUONTrackerDataHistogrammer.h.

Referenced by AddManuHisto(), CreateHisto(), and GetDataRange().

Member Data Documentation

Int_t AliMUONTrackerDataHistogrammer::fExternalDim
private

(external) dimension we'll histogram

Definition at line 60 of file AliMUONTrackerDataHistogrammer.h.

Referenced by AddManuHisto(), CreateChannelHisto(), and CreateManuHisto().

Int_t AliMUONTrackerDataHistogrammer::fInternalDim
private

(internal) dimension we'll make histogram for

Definition at line 61 of file AliMUONTrackerDataHistogrammer.h.

Referenced by AddManuHisto(), CreateManuHisto(), GetDataRange(), and IsInternalMode().

const AliMUONVTrackerData& AliMUONTrackerDataHistogrammer::fkData
private

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