21 #ifndef _EventPSAWatchers
22 #define _EventPSAWatchers
30 #ifndef ADF_CompositeFrame
48 #ifndef ROOT_TVirtualPad
49 #include "TVirtualPad.h"
52 #ifndef Gw_AgataEventDisplay
56 #ifndef Gw_AgataEventContainer
60 #ifndef Gw_AgataGeometryTransformer
90 UInt_t GetNbFramePSA();
96 EventPSAWatcher(
const char *name,
const char *title, TDirectory *sp_dir = 0x0, TDirectory *tag_dir = 0x0) :
129 static const UShort_t gNbCrys = 50u;
140 TObjArray fSpectraDoppler;
149 TH1 *fCoreCommonDoppler;
161 virtual void DoCanvas(TCanvas *c, Option_t *);
168 HitsSpectra(
const char *name,
const char *title, TDirectory *sp_dir = 0x0, TDirectory *tag_dir = 0x0);
172 virtual void Exec(Option_t *option=
"");
188 const Char_t* fPathFile;
189 static Float_t fgMetric;
193 virtual void DoCanvas(TCanvas *c, Option_t *);
196 HitDisplay3D(
const char *name,
const char *type, TDirectory *sp_dir = 0x0, TDirectory *tag_dir = 0x0);
200 virtual void Exec(Option_t *option=
"");
203 virtual void ShowEve(
const Char_t* agataPathFile);
206 void SetActive(Bool_t active =
true);
239 TObjArray* fSectorList;
241 TObjArray* fLabelList;
243 TObjArray* fRateList;
247 TArrayI* fCountArray[7];
278 TH1I* fHistoCntCrystal;
280 TH1I* fHistoCntSlice[180*6*6];
287 static const Double_t fgkDRho;
288 static const Double_t fgkRho1;
289 static const Double_t fgkRho2;
290 static const Double_t fgkDRange;
291 static const Int_t fgkNofPoints;
292 static const Int_t fgkNofSectors;
293 static const Int_t fgkNofCrystals;
294 static const Int_t fgkNofSlices;
295 static const Int_t fgkNDivX;
296 static const Int_t fgkNDivY;
300 virtual void DoCanvas(TCanvas* canvas, Option_t* option);
303 void AddCluster(Double_t xOffset = 0, Double_t yOffset = 0);
306 void AddCristals(Double_t xPos = 0, Double_t yPos = 0);
312 RateDisplay(
const Char_t *name,
const Char_t *title, TDirectory *sp_dir = 0x0, TDirectory *tag_dir = 0x0);
316 virtual void Exec(Option_t *option=
"");
319 virtual void SetDepth(Int_t depth = 1, Bool_t stop =
true);
337 void SetRefresh(Long_t r);
352 virtual void Zero(Option_t *hname=
"pool", Option_t *binning=
"");
358 void HandleMovement(Int_t eventType, Int_t eventX, Int_t eventY, TObject* select);
virtual Int_t GetMaxCycle()
Get max cycle.
virtual Int_t GetMaxCycle()
Get max cycle.
virtual Int_t GetDepth()
Get depth.
Interface for any watcher that is a VertexBuilder.
virtual const Char_t * GetPathFile() const
Get Prima conf file.
virtual Bool_t IsNormByAll()
return normalization
virtual ~EventPSAWatcher()
EventPSAWatcher(const char *name, const char *title, TDirectory *sp_dir=0x0, TDirectory *tag_dir=0x0)
virtual void SetMaxCycle(Int_t cycle)
Set max cycle.
header file for PSAFrame.cpp
Show rates (counts) per Crystal.
It is a hit associated to a list of Hits.
virtual void SetNormalization(Bool_t norm)
Set normalization of counts per all crystals (true) or per each crystal (false)
virtual void SetMaxCycle(Int_t cycle)
Set max cycle, before resetting buffer.
*********************************** HitsSpectra Class **************************************/// ...
Base class for a trigger on a data flow.
virtual Long_t GetRefresh()
Get Refresh.
*********************************** EventPSAWatcher Class **************************************/// ...