1 #ifndef ALIMUONTRACKERDATAHISTOGRAMMER_H
2 #define ALIMUONTRACKERDATAHISTOGRAMMER_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 /// \class AliMUONTrackerDataHistogrammer
11 /// \brief Make histograms from VTrackerData and VPainter objects.
13 // author Laurent Aphecetche, Subatech
19 class AliMUONVPainter;
20 class AliMUONVTrackerData;
21 class AliMUONSparseHisto;
24 class AliMUONTrackerDataHistogrammer : public TObject
27 AliMUONTrackerDataHistogrammer(const AliMUONVTrackerData& data, Int_t dim);
28 virtual ~AliMUONTrackerDataHistogrammer();
30 static TH1* CreateHisto(const AliMUONVPainter& painter);
32 TH1* CreateBusPatchHisto(Int_t busPatchId) const;
34 TH1* CreateChamberHisto(Int_t chamberId) const;
36 TH1* CreateChannelHisto(Int_t detElemId, Int_t manuId,
37 Int_t manuChannel) const;
39 TH1* CreateDEHisto(Int_t detElemId) const;
41 TH1* CreateManuHisto(Int_t detElemId, Int_t manuId) const;
45 TH1* CreateHisto(const char* name) const;
47 void Add(TH1& h, const AliMUONSparseHisto& sh) const;
49 void AddBusPatchHisto(TH1& h, Int_t busPatchId) const;
51 void AddDEHisto(TH1& h, Int_t detElemId) const;
53 void AddManuHisto(TH1& h, Int_t detElemId, Int_t manuId) const;
56 const AliMUONVTrackerData& fData; ///< data we'll histogram
57 Int_t fDim; ///< dimension we'll histogram
59 ClassDef(AliMUONTrackerDataHistogrammer,1) // Make histograms from VTrackerData