15 #ifndef GW_MATPLAYER_H
16 #define GW_MATPLAYER_H
45 #include <RQ_OBJECT.h>
57 RQ_OBJECT(
"MatPlayer")
60 static Int_t fLastX, fLastY;
61 static TList *fgPlayers;
71 std::pair<TFormula *, TFormula *> fWidthGate;
74 std::pair<Float_t,Float_t> fStep;
93 void SetMatrix(TH2 *);
95 virtual void Clear(
const Option_t *opt=
"");
98 bool IsBox(
const TBox *,
const TBox *)
const;
100 static void SubstractBG_RAD(TH2 *);
101 static void SubstractBG_SNIP(TH2 *);
111 void SetGateX(Option_t *opt =
"Gx");
138 void SetMatrix(
const char *);
149 Double_t
GetWidthGate(Double_t pos, Option_t *opt =
"Gx");
151 void SetWidthGate(Double_t wx = 2.5, Double_t wy = 2.5) { fWidthGate.first->SetParameter(0,wx); fWidthGate.second->SetParameter(0,wy); }
157 void XEventAction(Int_t event, Int_t px, Int_t py, TObject *obj);
void SetCanvas()
set current canvas as the mother of the current pad
Int_t InitGating(Option_t *opt="Gx")
static void SubstractBG(const char *, Option_t *)
Generic method to substract background of the current matrix.
Double_t GetWidthGate(Double_t pos, Option_t *opt="Gx")
get width for gate at position pos
ClassDef(MatPlayer, 0)
rootcint dictionary
void ShowGates(Option_t *o="BGx")
to show the gates used for the last gating
void SetGateX(Option_t *opt="Gx")
set a gate using the last mouse position
void Reset()
to reset the conditions of gating in the current pad
void SetWidthGate(Double_t wx=2.5, Double_t wy=2.5)
set default width for gates
void ProjectionY(Option_t *option)
to project
MatPlayer is a tool to play with 2D matrices.
static TList * GetListOfPlayers()
To get the list of all open MatPlayers.
void XEventAction(Int_t event, Int_t px, Int_t py, TObject *obj)
slots