AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONTrackerDataHistogrammer.h
Go to the documentation of this file.
1 #ifndef ALIMUONTRACKERDATAHISTOGRAMMER_H
2 #define ALIMUONTRACKERDATAHISTOGRAMMER_H
3 
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6 
7 // $Id$
8 
13 // author Laurent Aphecetche, Subatech
14 
15 #ifndef ROOT_TObject
16 # include "TObject.h"
17 #endif
18 
19 class AliMUONVPainter;
21 class AliMUONSparseHisto;
22 class TH1;
23 
24 class AliMUONTrackerDataHistogrammer : public TObject
25 {
26 public:
28  Int_t externalDim,
29  Int_t internalDim=-1);
31 
32  static TH1* CreateHisto(const AliMUONVPainter& painter,
33  Int_t externalDim,
34  Int_t internalDim);
35 
36  TH1* CreateChannelHisto(Int_t detElemId, Int_t manuId,
37  Int_t manuChannel) const;
38 
40  Bool_t IsInternalMode() const { return fInternalDim >=0; }
41 
42 private:
43 
44  TH1* CreateManuHisto(Int_t detElemId, Int_t manuId, Int_t nbins, Double_t xmin, Double_t xmax) const;
45 
46  TH1* CreateHisto(const char* basename, Int_t nbins, Double_t xmin, Double_t xmax) const;
47 
48  void GetDataRange(const TObjArray& manuList, Double_t& xmin, Double_t& xmax) const;
49 
50  void Add(TH1& h, const AliMUONSparseHisto& sh) const;
51 
52  void AddBusPatchHisto(TH1& h, Int_t busPatchId) const;
53 
54  void AddDEHisto(TH1& h, Int_t detElemId) const;
55 
56  void AddManuHisto(TH1& h, Int_t detElemId, Int_t manuId) const;
57 
58 private:
60  Int_t fExternalDim;
61  Int_t fInternalDim;
62 
63  ClassDef(AliMUONTrackerDataHistogrammer,2) // Make histograms from VTrackerData
64 };
65 
66 #endif
Int_t fExternalDim
(external) dimension we'll histogram
#define TObjArray
Make histograms from VTrackerData and VPainter objects.
static TH1 * CreateHisto(const AliMUONVPainter &painter, Int_t externalDim, Int_t internalDim)
void AddManuHisto(TH1 &h, Int_t detElemId, Int_t manuId) const
AliMUONTrackerDataHistogrammer(const AliMUONVTrackerData &data, Int_t externalDim, Int_t internalDim=-1)
void GetDataRange(const TObjArray &manuList, Double_t &xmin, Double_t &xmax) const
Base class for a graphical object representing some part of the MUON tracking system.
TH1 * CreateManuHisto(Int_t detElemId, Int_t manuId, Int_t nbins, Double_t xmin, Double_t xmax) const
A very memory compact histogram to hold some tracker distributions.
void AddDEHisto(TH1 &h, Int_t detElemId) const
Int_t fInternalDim
(internal) dimension we'll make histogram for
TH1 * CreateChannelHisto(Int_t detElemId, Int_t manuId, Int_t manuChannel) const
void Add(TH1 &h, const AliMUONSparseHisto &sh) const
void AddBusPatchHisto(TH1 &h, Int_t busPatchId) const
Bool_t IsInternalMode() const
Whether we are working with internal dimensions or external ones.
Base class for MUON data that can be presented at different levels in the hierarchy of the MUON syste...
const AliMUONVTrackerData & fkData
data we'll histogram