1 #ifndef AliFMDPATTERN_H
2 #define AliFMDPATTERN_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
6 * See cxx source for full Copyright notice
8 /** @file AliFMDPattern.h
9 @author Christian Holm Christensen <cholm@nbi.dk>
10 @date Mon Mar 27 12:39:09 2006
11 @brief FMD Event display (as patterns)
13 //___________________________________________________________________
15 // The classes defined here, are utility classes for reading in data
16 // for the FMD. They are put in a seperate library to not polute the
17 // normal libraries. The classes are intended to be used as base
18 // classes for customized class that do some sort of analysis on the
19 // various types of data produced by the FMD.
21 #include "AliFMDDisplay.h"
23 #include <TObjArray.h>
32 //___________________________________________________________________
33 /** @class AliFMDPattern
34 @brief Utility class to visualize FMD data in 2D.
37 class AliFMDPattern : public AliFMDDisplay
42 Detector(UShort_t id);
45 Int_t Total() const { return Int_t(fCounts.GetSum()); }
47 void Begin(Int_t nlvl, Double_t r, TObjArray& inners, TObjArray& outers);
48 void DrawShape(TObjArray& a);
49 void AddMarker(Double_t x, Double_t y, Float_t s, Float_t max);
58 @param gAliceFile galice file*/
59 AliFMDPattern(const char* gAliceFile="galice.root");
61 virtual ~AliFMDPattern();
64 @return @c false on error */
65 virtual Bool_t Init();
66 /** Called at beginning of an event
67 @param event Event number
68 @return @c false on error */
69 virtual Bool_t Begin(Int_t event);
71 /** Add a marker to the display
76 @param o Object to refer to
78 @param max Maximum of signal */
79 virtual void AddMarker(UShort_t det, Char_t rng, UShort_t sec, UShort_t str,
80 TObject* o, Float_t s, Float_t max);
81 virtual Bool_t ProcessHit(AliFMDHit* hit, TParticle*);
82 virtual void Redisplay();
84 /** Graph to show shape of inner sensor */
86 /** Graph to show shape of outer sensor */
88 /** Max inner radius */
90 /** Max outer radius */
114 ClassDef(AliFMDPattern,0)
119 //____________________________________________________________________