EFocalSurfacePainter
#include "EFocalSurfacePainter.hh" |
EFocalSurfacePainter
class description - source file - inheritance tree (.pdf)
class EFocalSurfacePainter : public EAnimator
Inheritance Chart: | |||||||||||||
|
private:
void BuildPolyLines() void CacheIntegral() const void ClearPolyLines() void Constructor() Int_t CurrentCode() const void FillChipTriggers() EPolygon* FindPmtLine(Int_t) const void FindPmtsToPaint(Float_t, Float_t, Float_t, Float_t) Bool_t FindView(Int_t) Int_t GetColorPalette(Int_t i) const Int_t GetNormColorPalette(Float_t i) const Int_t GetPaletteNumColors() const EPolygon* GetPixelLine(Int_t) EPolygon* GetPmtLine(Int_t) const map<int,map<int,int,less<int>,allocator<pair<const int,int> > >,less<int>,allocator<pair<const int,map<int,int,less<int>,allocator<pair<const int,int> > > > > >* GtuCountsToPaint() const Bool_t Load() const map<int,int,less<int>,allocator<pair<const int,int> > >* MapToPaint() const void PaintHits() void PaintNightGlowRate() public:
EFocalSurfacePainter() EFocalSurfacePainter(EEvent*) EFocalSurfacePainter(EDetector*, ERunParameters*) EFocalSurfacePainter(const EFocalSurfacePainter&) virtual ~EFocalSurfacePainter() virtual void Animate() virtual void ApplyTriggerThreshold(ETriggerTypeIdentifier) virtual void CellHits() virtual void CenterViewOnPmt(Int_t) 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) virtual void FeeHits() virtual void FeeSignals() Float_t GetAlpha() const Int_t GetCurrentMapID() const Int_t GetCurrentTrigger() const Int_t GetFirstGtu() const Int_t GetGtu() const TH1F* GetHitsHist() const TStyle* GetHitsHistStyle() const TH1F* GetHitsMaxProfile() const Int_t GetIntegral() const Int_t GetLastGtu() const UInt_t GetMaxCounts() const TH1F* GetNoiseMaxProfile() const TH1F* GetNoiseMeanProfile() const TH1F* GetNoiseMinProfile() const UInt_t GetNumColors() const virtual char* GetObjectInfo(Int_t px, Int_t py) const Color_t GetPixelColorEmpty() const Color_t GetPixelColorOff() const Color_t GetPmtColorEmpty() const Color_t GetPmtColorHit() const ERunParameters* GetRunPars() const TH1F* GetSigMaxProfile() const TH1F* GetSigProfile() const const TVector3& GetSpread() const const TVector3& GetViewCenter() const Float_t GetViewRange() const Int_t GetViewThreshold() const virtual TClass* IsA() const Bool_t IsAbsoluteThreshold() const Bool_t IsApplyThreshold() const Bool_t IsDrawNightGlow() const virtual Bool_t IsEnded() Bool_t IsShowAxis() const Bool_t IsShowEmptyPixels() const Bool_t IsShowGtuCounter() const Bool_t IsShowOffPixels() const Bool_t IsStdPalette() const Bool_t IsTriggerEnabled(ETriggerTypeIdentifier) void MakeGifSequence(const char* option = "", const char* path = "Anim") virtual void Modified(Bool_t flag = 1) virtual void Move() virtual void NextFrame() EFocalSurfacePainter& operator=(const EFocalSurfacePainter&) virtual void Paint(Option_t* = "") virtual void Play(Option_t* = "") virtual void Rewind() void SetAbsoluteThreshold(Bool_t t = kTRUE) void SetAlpha(Float_t alpha) void SetApplyThreshold(Bool_t apply = kTRUE) void SetCurrentMapID(Int_t id) void SetDrawNightGlow(Bool_t draw = kTRUE) void SetFirstGtu(Int_t gtu) void SetGtu(Int_t gtu) void SetHitsHistStyle(TStyle* sty) void SetIntegral(Int_t id) void SetLastGtu(Int_t gtu) void SetMaxCounts(UInt_t n) void SetNumColors(UInt_t n) void SetPaletteOffset(Color_t c) void SetPixelEmptyColor(Color_t c) void SetPixelOffColor(Color_t c) void SetPmtColorEmpty(Color_t c) void SetPmtColorHit(Color_t c) void SetShowAxis(Bool_t show = kTRUE) void SetShowEmptyPixels(Bool_t show = kTRUE) void SetShowGtuCounter(Bool_t show = kTRUE) void SetShowOffPixels(Bool_t show = kTRUE) void SetStdPalette(Bool_t std = kTRUE) void SetViewBorder(Float_t b) virtual void SetViewCenter(Float_t x, Float_t y) void SetViewRange(Float_t s) void SetViewThreshold(Int_t t) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) void UpdateHist(Bool_t force = kFALSE)
Data Members
private:
Int_t fGtu current gtu Int_t fCurrentMapID identifier of the data to paint Int_t fCurrentTrigger identifier of the trigger Bool_t fModified Int_t fViewThreshold min counts of hits used to def the VP Float_t fViewRange size of viewport in signal Nspread Float_t fViewBorder border size, from 0 to 0.5 Bool_t fAutoThreshold it true and no count over threshold are found, it is lowered to find the viewport Int_t fGifCanvasW width of the gif sequence canvas Int_t fGifCanvasH hieght of the gif sequence canvas Bool_t fShowAxis true to draw axis are shown Bool_t fShowEmptyPixels true to draw pixels with 0 hits Bool_t fShowOffPixels true to draw pixels even not in the maps Bool_t fShowGtuCounter true to draw the gtu counter Bool_t fDrawNightGlow true to draw nightglow rate Int_t fIntegral true to draw time integral of the track Bool_t fAutoRadius true to set the view according the signal Bool_t fMoveView if true the next leftmouse click moves the view center Float_t fAlpha Bool_t fApplyThreshold if true subtracts mu-fAlpha*sqrt(mu) from each Efee Bool_t fAbsoluteThreshold if true the threshold is absolute: subtract fAlpha 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 Float_t fXmin X coord of the frame lower left corner Float_t fXmax X coord of the frame lower right corner Float_t fYmin Y coord of the frame lower left corner Float_t fYmax Y coord of the frame lower right corner Bool_t fStdPalette if true uses the gStyle palette Int_t fPaletteOffset first color in the palette Int_t fNumColors maximum number of colors UInt_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 EDetector* fDetector ERunParameters* fRunPars map<ETriggerTypeIdentifier,int,less<ETriggerTypeIdentifier>,allocator<pair<const ETriggerTypeIdentifier,int> > > fTriggers array of the chip tracking triggers Bool_t fHasTriggersFilled TH1F* fH1Hits TStyle* fHitsStyle TH1F* fH1SigProfile TH1F* fH1SigMaxProfile pixel max signal per GTU TH1F* fH1NoiseMaxProfile pixel max noise per GTU (only EC with signal) TH1F* fH1NoiseMinProfile pixel min noise per GTU (only EC with signal) TH1F* fH1NoiseMeanProfile pixel mean noise per GTU (in EC most hitted) TH1F* fH1HitsMaxProfile pixel max hits per GTU (only pixels with signal) map<int,map<int,int,less<int>,allocator<pair<const int,int> > >,less<int>,allocator<pair<const int,map<int,int,less<int>,allocator<pair<const int,int> > > > > > fFrontEndHits map fe hits per gtu map<int,map<int,int,less<int>,allocator<pair<const int,int> > >,less<int>,allocator<pair<const int,map<int,int,less<int>,allocator<pair<const int,int> > > > > > fFrontEndSignals map fe signals per gtu map<int,map<int,int,less<int>,allocator<pair<const int,int> > >,less<int>,allocator<pair<const int,map<int,int,less<int>,allocator<pair<const int,int> > > > > > fFrontEndNoises map fe background per gtu map<int,map<int,int,less<int>,allocator<pair<const int,int> > >,less<int>,allocator<pair<const int,map<int,int,less<int>,allocator<pair<const int,int> > > > > > fMacroCellHits map mc hits map<int,map<int,int,less<int>,allocator<pair<const int,int> > >,less<int>,allocator<pair<const int,map<int,int,less<int>,allocator<pair<const int,int> > > > > > fSelFrontEndHits map fe hits in pixels with signal map<int,map<int,int,less<int>,allocator<pair<const int,int> > >,less<int>,allocator<pair<const int,map<int,int,less<int>,allocator<pair<const int,int> > > > > > fECHits map elem. cell hits per gtu Int_t fFirstGtu first gtu in data Int_t fLastGtu last gtu in data TVector3 fViewCenter signal center in Detector coordinates TVector3 fSpread signal spread TSeqCollection* fLines list of lines used by the destructor vector<Int_t> fPmtsToPaint list of the pmt ids in the viewport map<int,EPolygon*,less<int>,allocator<pair<const int,EPolygon*> > > fPmtLines map<int,EPolygon*,less<int>,allocator<pair<const int,EPolygon*> > > fPixelLines map<int,int,less<int>,allocator<pair<const int,int> > > fCountsSum map<int,map<int,int,less<int>,allocator<pair<const int,int> > >,less<int>,allocator<pair<const int,map<int,int,less<int>,allocator<pair<const int,int> > > > > > fCache Int_t fCacheCode TText fTxtCounter TText fTxtSum TGaxis fXaxis TGaxis fYaxis TGaxis fHaxis public:
static const enum EFocalSurfacePainter:: kColorPixelEmpty static const enum EFocalSurfacePainter:: kColorPixelOff static const enum EFocalSurfacePainter:: kColorPmtEmpty static const enum EFocalSurfacePainter:: kColorPmtHit
Class Description
EFocalSurfacePainter A painter to show the development of the signal on the focal surface. Setters: ViewNspread MaxColors TO BE DONE
EFocalSurfacePainter() : fDetector(0), fRunPars(0), fH1Hits(0), fHitsStyle(0), fH1SigProfile(0), fH1SigMaxProfile(0), fH1NoiseMaxProfile(0), fH1NoiseMinProfile(0), fH1NoiseMeanProfile(0), fH1HitsMaxProfile(0), fLines(0)
Default constructor
EFocalSurfacePainter( EEvent* ev ) : fH1Hits(0), fHitsStyle(0), fH1SigProfile(0), fH1SigMaxProfile(0), fH1NoiseMaxProfile(0), fH1NoiseMinProfile(0), fH1NoiseMeanProfile(0), fH1HitsMaxProfile(0), fLines(0)
EFocalSurfacePainter( EDetector* det, ERunParameters* runpars) : fH1Hits(0), fHitsStyle(0), fH1SigProfile(0), fH1SigMaxProfile(0), fH1NoiseMaxProfile(0), fH1NoiseMinProfile(0), fH1NoiseMeanProfile(0), fH1HitsMaxProfile(0), fLines(0)
void Constructor()
Constructor
~EFocalSurfacePainter()
Destructor
void Clear( Option_t *opt )
Clear all temporay containers
void Draw( Option_t *opt )
Build polylines and then append the FSP to pad
void UpdateHist( Bool_t force )
void Paint( Option_t *opt )
Options: ng: paints pmts with a different colors according to the simulated bg rate hits: paints the electronics hits on the focal surface
Int_t GetColorPalette( Int_t theColor) const
-1 pixel color empty -2 pixel color off -3 pmt empty -4 pmt hit 0-n palette color
Int_t GetNormColorPalette(Float_t theColor ) const
convert 0-1 to mincol-maxcol
void PaintHits()
Paint the
void PaintNightGlowRate()
Paint the elementary cells with color depending on the ng rate.
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.
Bool_t FindView( Int_t id )
calculates center, spread and orientation of the viewport
void CenterViewOnPmt( Int_t pmtid)
void BuildPolyLines()
Creates all the polylines for all the hits in the event
void ClearPolyLines()
remove all the polylines stored in memory
Bool_t Load()
Load data and fills GtuCounts from the event and the runparameters
void ApplyTriggerThreshold( ETriggerTypeIdentifier id )
Apply a threshold on the pixels according to the trigger threshold
void FillChipTriggers()
Fill the map with the chip tracking trigger thresholds
Bool_t IsTriggerEnabled( ETriggerTypeIdentifier id )
Check if a given trigger is enabled
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
const Counts_t* MapToPaint() const
const GtuCounts_t* GtuCountsToPaint() const
void CacheIntegral() const
cache data to speed-up animation
Inline Functions
void Rewind() Bool_t IsEnded() ERunParameters* GetRunPars() const void FeeHits() void FeeSignals() void CellHits() void Move() void SetViewCenter(Float_t x, Float_t y) void Modified(Bool_t flag = 1) Float_t GetAlpha() const Int_t GetCurrentMapID() const Int_t GetFirstGtu() const Int_t GetGtu() const TH1F* GetHitsHist() const TStyle* GetHitsHistStyle() const TH1F* GetSigProfile() const TH1F* GetSigMaxProfile() const TH1F* GetNoiseMaxProfile() const TH1F* GetNoiseMinProfile() const TH1F* GetNoiseMeanProfile() const TH1F* GetHitsMaxProfile() const Int_t GetLastGtu() const const TVector3& GetSpread() const const TVector3& GetViewCenter() const Float_t GetViewRange() const Int_t GetViewThreshold() const Bool_t IsApplyThreshold() const Bool_t IsAbsoluteThreshold() const Bool_t IsShowAxis() const Bool_t IsShowEmptyPixels() const Bool_t IsShowOffPixels() const Bool_t IsShowGtuCounter() const Bool_t IsDrawNightGlow() const Bool_t IsStdPalette() const Int_t GetIntegral() const Int_t GetCurrentTrigger() const UInt_t GetNumColors() const UInt_t GetMaxCounts() const Color_t GetPixelColorEmpty() const Color_t GetPixelColorOff() const Color_t GetPmtColorEmpty() const Color_t GetPmtColorHit() const void SetAlpha(Float_t alpha) void SetApplyThreshold(Bool_t apply = kTRUE) void SetAbsoluteThreshold(Bool_t t = kTRUE) void SetCurrentMapID(Int_t id) void SetPaletteOffset(Color_t c) void SetFirstGtu(Int_t gtu) void SetGtu(Int_t gtu) void SetHitsHistStyle(TStyle* sty) void SetLastGtu(Int_t gtu) void SetMaxCounts(UInt_t n) void SetNumColors(UInt_t n) void SetPixelEmptyColor(Color_t c) void SetPixelOffColor(Color_t c) void SetPmtColorEmpty(Color_t c) void SetPmtColorHit(Color_t c) void SetStdPalette(Bool_t std = kTRUE) void SetShowAxis(Bool_t show = kTRUE) void SetShowGtuCounter(Bool_t show = kTRUE) void SetShowEmptyPixels(Bool_t show = kTRUE) void SetShowOffPixels(Bool_t show = kTRUE) void SetDrawNightGlow(Bool_t draw = kTRUE) void SetIntegral(Int_t id) void SetViewBorder(Float_t b) void SetViewRange(Float_t s) void SetViewThreshold(Int_t t) Int_t CurrentCode() const Int_t GetPaletteNumColors() const TClass* Class() TClass* IsA() const void ShowMembers(TMemberInspector& insp, char* parent) void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) EFocalSurfacePainter EFocalSurfacePainter(const EFocalSurfacePainter&) EFocalSurfacePainter& operator=(const EFocalSurfacePainter&)