3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
6 * See cxx source for full Copyright notice
8 /** @file AliFMDFancy.h
9 @author Christian Holm Christensen <cholm@nbi.dk>
10 @date Mon Mar 27 12:39:09 2006
11 @brief FMD Event display (as fancys)
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>
33 //___________________________________________________________________
34 /** @class AliFMDFancy
35 @brief Utility class to visualize FMD data in 2D.
38 class AliFMDFancy : public AliFMDDisplay
41 /** Sigh! the code checker thinks that all structs are POD - morron
43 class AliFancyDetector
47 AliFancyDetector(UShort_t id);
52 /** Called at the beginning of an event */
53 void Begin(Int_t event=0);
55 void Clear(Int_t event=0);
56 /** Called that the end of an event */
59 void AddMarker(Char_t rng, UShort_t sec, UShort_t str,
60 Float_t v, Float_t max);
62 TH1* fFrame; // Mother frame
64 Int_t fId; // Identifier
65 /** Array of shapes */
66 TObjArray fShapes; // Array of shapes
67 /** Number of inner hits */
68 Int_t fNInnerHits; // Number of inner hits
69 /** Graph of inner hits */
70 TGraph2D fInnerHits; // Graph of inner hits
71 /** Number of outer hits */
72 Int_t fNOuterHits; // Number of outer hits
73 /** Graph of outer hits */
74 TGraph2D fOuterHits; // Graph of outer hits
76 Double_t fMaxR; // Maximum radius
78 Double_t fMinZ; // Minimum Z
80 Double_t fMaxZ; // Maximum Z
82 /** Add a histogram to a 2D graph. For some reason the code
83 checker thinks that this function can be made const - well, it
84 cannot, since the graph passed down is a member of this
85 object, and would be const in the this context if the member
86 function is const. Since we modify the graph, we cannot make
87 it a const reference, no matter how much we'd like to. */
88 void AddHistogram(TGraph2D& g, const char* toopt="");
90 AliFancyDetector(const AliFancyDetector& );
91 /** Assignement operator */
92 AliFancyDetector& operator=(const AliFancyDetector& ) { return *this; }
96 @param gAliceFile galice file*/
97 AliFMDFancy(const char* gAliceFile="galice.root");
99 virtual ~AliFMDFancy();
102 @return @c false on error */
103 virtual Bool_t Init();
104 /** Called at beginning of an event
105 @param event Event number
106 @return @c false on error */
107 virtual Bool_t Begin(Int_t event);
108 /** Called at end of an event
109 @return @c false on error */
110 virtual Bool_t End();
113 AliFMDFancy(const AliFMDFancy& );
114 /** Assignement operator */
115 AliFMDFancy& operator=(const AliFMDFancy& ) { return *this; }
116 /** Add a marker to the display
121 @param o Object to refer to
123 @param max Maximum of signal */
124 virtual void AddMarker(UShort_t det, Char_t rng, UShort_t sec,
125 UShort_t str, TObject* o, Float_t s, Float_t max);
127 @param hit hit to process */
128 virtual Bool_t ProcessHit(AliFMDHit* hit, TParticle*);
131 TPad* fFMD1Pad; // FMD1 Pad
133 AliFancyDetector fFMD1; // FMD1 Frame
135 TPad* fFMD2Pad; // FMD2 Pad
137 AliFancyDetector fFMD2; // FMD2 Frame
139 TPad* fFMD3Pad; // FMD3 Pad
141 AliFancyDetector fFMD3; // FMD3 Frame
143 TPad* fSummary; // Summary pad
145 TLatex fEvent; // Text fields
146 /** Number of hits in FMD1i */
147 TLatex fFMD1IHits; // Number of hits in FMD1i
148 /** Number of hits in FMD2i */
149 TLatex fFMD2IHits; // Number of hits in FMD2i
150 /** Number of hits in FMD2o */
151 TLatex fFMD2OHits; // Number of hits in FMD2o
152 /** Number of hits in FMD3i */
153 TLatex fFMD3IHits; // Number of hits in FMD3i
154 /** Number of hits in FMD3o */
155 TLatex fFMD3OHits; // Number of hits in FMD3o
157 TLine fLine; // Just a line
158 /** Number of hits in FMD */
159 TLatex fTotal; // Number of hits in FMD
161 ClassDef(AliFMDFancy,0)
166 //____________________________________________________________________