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"
22 #include <TObjArray.h>
31 //___________________________________________________________________
32 /** @class AliFMDPattern
33 @brief Utility class to visualize FMD data in 2D.
36 class AliFMDPattern : public AliFMDDisplay
41 Detector(UShort_t id);
44 Int_t Total() const { return Int_t(fCounts.GetSum()); }
46 void Begin(Int_t nlvl, Double_t r, TObjArray& inners, TObjArray& outers);
47 void DrawShape(TObjArray& a);
48 void AddMarker(Double_t x, Double_t y, Float_t s, Float_t max);
57 @param gAliceFile galice file*/
58 AliFMDPattern(const char* gAliceFile="galice.root");
60 virtual ~AliFMDPattern();
63 @return @c false on error */
64 virtual Bool_t Init();
65 /** Called at beginning of an event
66 @param event Event number
67 @return @c false on error */
68 virtual Bool_t Begin(Int_t event);
70 /** Add a marker to the display
75 @param o Object to refer to
77 @param max Maximum of signal */
78 virtual void AddMarker(UShort_t det, Char_t rng, UShort_t sec, UShort_t str,
79 TObject* o, Float_t s, Float_t max);
80 virtual Bool_t ProcessHit(AliFMDHit* hit, TParticle*);
81 virtual void Redisplay();
83 /** Graph to show shape of inner sensor */
85 /** Graph to show shape of outer sensor */
87 /** Max inner radius */
89 /** Max outer radius */
113 ClassDef(AliFMDPattern,0)
118 //____________________________________________________________________