ETriggerPainter
#include "ETriggerPainter.hh" |
ETriggerPainter
class description - source file - inheritance tree (.pdf)
class ETriggerPainter : public EAnimator
Inheritance Chart: | |||||||||||||
|
private:
void BuildPolyLines() void CacheTimeInt() const EPolygon* FindPmtLine(Int_t) const void FindPmtsToPaint(Float_t, Float_t, Float_t, Float_t) void FindView(ETrigId) mapGetMapToPaint() const EPolygon* GetPixelLine(Int_t) EPolygon* GetPmtLine(Int_t) const GtuCounts_t* GtuCountsToPaint() const void LoadData() virtual void SetStatus(Int_t uid, Int_t pmt = -1, Int_t chip = -1, Int_t cell = -1, Int_t counts = -1) public:
ETriggerPainter(EDetector*, ERunParameters*, EChipTrackTrigger*) ETriggerPainter(const ETriggerPainter&) virtual ~ETriggerPainter() virtual void Animate() static TClass* Class() virtual void Clear(Option_t*) virtual Int_t DistancetoPrimitive(Int_t px, Int_t py) virtual void Draw(Option_t*) virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) const TVector3& GetCenter() const Int_t GetFirstGtu() const Int_t GetGtu() const Bool_t GetGtuCounter() const Int_t GetLastGtu() const ETrigId GetMapToPaintID() const Int_t GetMaxCounts() const Int_t GetNumColors() const virtual char* GetObjectInfo(Int_t px, Int_t py) const Color_t GetPixelColorEmpty() const Color_t GetPixelColorOff() const Bool_t GetPixelEmpty() const Bool_t GetPixelOff() const Color_t GetPmtColorEmpty() const Color_t GetPmtColorHit() const const TVector3& GetSpread() const Bool_t GetStatusBar() const Bool_t GetTimeIntegral() const Float_t GetViewBorder() const Float_t GetViewNspread() const Int_t GetViewThreshold() const const TVector3& GetXaxis() const const TVector3& GetYaxis() const const TVector3& GetZaxis() const virtual TClass* IsA() const virtual Bool_t IsEnded() void MakeGifSequence(const char* option, const char* path = "Anim") virtual void NextFrame() ETriggerPainter& operator=(const ETriggerPainter&) virtual void Paint(Option_t*) virtual void PaintAllHits() virtual void PaintAllSignals() virtual void PaintCellHits() virtual void PaintTrigHits() virtual void PaintTrigSignals() virtual void Play(Option_t*) virtual void Rewind() void SetFirstGtu(Int_t gtu) void SetGtu(Int_t gtu) void SetGtuCounter(Bool_t b = kTRUE) void SetLastGtu(Int_t gtu) void SetMapToPaintID(ETrigId id) void SetMaxCounts(Int_t n) void SetNumColors(Int_t n) void SetPixelColorEmpty(Color_t c) void SetPixelColorOff(Color_t c) void SetPixelEmpty(Bool_t b = kTRUE) void SetPixelOff(Bool_t b = kTRUE) void SetPmtColorEmpty(Color_t c) void SetPmtColorHit(Color_t c) void SetStatusBar(Bool_t b = kTRUE) void SetTimeIntegral(Bool_t b = kTRUE) void SetViewBorder(Float_t b) void SetViewNspread(Float_t s) void SetViewThreshold(Int_t t) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)
Data Members
private:
Int_t fGtu current gtu ETrigId fMaptoPaintID identifier of the data to paint Int_t fViewThreshold min counts of hits used to def the VP Float_t fViewNspread size of viewport in signal Nspread Float_t fViewBorder border size, from 0 to 0.5 Int_t fGifCanvasW width of the gif sequence canvas Int_t fGifCanvasH hieght of the gif sequence canvas Bool_t fPixelEmpty true to draw pixels with 0 hits Bool_t fPixelOff true to draw pixels even not in the maps Bool_t fGtuCounter true to draw the gtu counter Bool_t fTimeIntegral true to draw time integral of the track Bool_t fStatusBar true paint the status text Float_t fX1 X coord of the lower left corner Float_t fX2 X coord of the lower right corner Float_t fY1 Y coord of the lower left corner Float_t fY2 Y coord of the lower right corner Int_t fNumColors maximum number of colors Int_t fColorOffset first color in the palette Int_t fMaxCounts Color_t fPixelColorOff color code of absent pixels Color_t fPixelColorEmpty color code of empty pixels Color_t fPmtColorEmpty color code of empty pmts Color_t fPmtColorHit color code of hit pmts TPaveText fPaveStatusBar EDetector* fDetector ERunParameters* fRunPars EChipTrackTrigger* fTrigger GtuCounts_t fChips GtuCounts_t fTrgChips GtuCounts_t fTrackHits GtuCounts_t fTrackSignals GtuCounts_t fTrgHits GtuCounts_t fTrgSignals GtuCounts_t fMacroCellHits Int_t fFirstGtu first gtu in data Int_t fLastGtu last gtu in data TVector3 fCenter signal center in Detector coordinates TVector3 fSpread signal spread TVector3 fXaxis x axis calculated from signal pixels TVector3 fYaxis y axis calculated from signal pixels TVector3 fZaxis normal (z ax) calculated from signal pixels TSeqCollection* fLines list of lines used by the destructor vector<Int_t> fPmtsToPaint list of the pmt ids in the viewport map<Int_t,EPolygon*> fPmtLines map<Int_t,EPolygon*> fPixelLines GtuCounts_t fCache Int_t fCacheContents TText fTxtCounter
Class Description
ETriggerPainter A painter to show the development of the signal on the focal surface. Setters: ViewNspread MaxColors TO BE DONE
void Clear( Option_t *opt )
Clear all temporay containers
void Draw( Option_t *opt )
Build polylines and then append the FSP to pad
void Paint( Option_t *opt )
Int_t DistancetoPrimitive(Int_t px, Int_t py)
void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute an event when the mouse moves in the display active region
char* GetObjectInfo(Int_t px, Int_t py) const
Redefines TObject::GetObjectInfo.
void FindView( ETrigId id )
calculates center, spread and orientation of the viewport
void SetStatus(Int_t uid, Int_t pmt, Int_t chip, Int_t cell, Int_t counts)
void BuildPolyLines()
Creates all the polylines for all the hits in the event
void LoadData()
Load data and fills GtuCounts from the event and the runparameters
EPolygon* GetPixelLine( Int_t uid )
Returns a EPolygon corresponding to uid if doesn't exist. If doesn't exists yet in fPixelLines creates a new one.
EPolygon* FindPmtLine( Int_t id ) const
Lookf for EPolygon corresponding to id among the ones already created
EPolygon* GetPmtLine( Int_t id )
Returns a EPolygon corresponding to id if doesn't exist. If doesn't exists yet in fPmtLines creates a new one.
void FindPmtsToPaint( Float_t xmin, Float_t ymin, Float_t xmax, Float_t ymax )
Looks for Pmts which centers are in the viewport. Fills fPmtsToPaint and fPixelsToPaint
void Play( Option_t *opt )
Start the movie
void Animate()
Move to next animation step and increase the counter
void NextFrame()
Move the internal counter to the next frame
void MakeGifSequence(const char *option, const char *path)
Build a sequence of gifs inside a dedicated canvas. Gifs are created with opt options
map
const GtuCounts_t* GtuCountsToPaint() const
void CacheTimeInt() const
cache data to speedup animation
Inline Functions
void ~ETriggerPainter() ETriggerPainter ETriggerPainter(EDetector*, ERunParameters*, EChipTrackTrigger*) void Rewind() Bool_t IsEnded() Int_t GetGtu() const Int_t GetFirstGtu() const Int_t GetLastGtu() const ETrigId GetMapToPaintID() const const TVector3& GetCenter() const const TVector3& GetSpread() const const TVector3& GetXaxis() const const TVector3& GetYaxis() const const TVector3& GetZaxis() const Int_t GetViewThreshold() const Float_t GetViewNspread() const Float_t GetViewBorder() const Bool_t GetPixelEmpty() const Bool_t GetPixelOff() const Bool_t GetGtuCounter() const Bool_t GetTimeIntegral() const Bool_t GetStatusBar() const Int_t GetNumColors() const Int_t GetMaxCounts() const Color_t GetPixelColorEmpty() const Color_t GetPixelColorOff() const Color_t GetPmtColorEmpty() const Color_t GetPmtColorHit() const void SetGtu(Int_t gtu) void SetFirstGtu(Int_t gtu) void SetLastGtu(Int_t gtu) void SetMapToPaintID(ETrigId id) void PaintAllHits() void PaintTrigHits() void PaintAllSignals() void PaintTrigSignals() void PaintCellHits() void SetViewThreshold(Int_t t) void SetViewNspread(Float_t s) void SetViewBorder(Float_t b) void SetPixelEmpty(Bool_t b = kTRUE) void SetPixelOff(Bool_t b = kTRUE) void SetGtuCounter(Bool_t b = kTRUE) void SetTimeIntegral(Bool_t b = kTRUE) void SetStatusBar(Bool_t b = kTRUE) void SetNumColors(Int_t n) void SetMaxCounts(Int_t n) void SetPixelColorEmpty(Color_t c) void SetPixelColorOff(Color_t c) void SetPmtColorEmpty(Color_t c) void SetPmtColorHit(Color_t c) TClass* Class() TClass* IsA() const void ShowMembers(TMemberInspector& insp, char* parent) void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) ETriggerPainter ETriggerPainter(const ETriggerPainter&) ETriggerPainter& operator=(const ETriggerPainter&)