PHENIXTools
Loading...
Searching...
No Matches
PHENIXTools Namespace Reference

Contains all functions and variables that are needed for this project. More...

Functions

void DrawPreliminary (const double x, const double y, const double size=0.25)
 Draw preliminary logo on a TPad.
void DrawBezierShape (const std::string inputFileName, const double shiftX, const double shiftY, const double scaleX, const double scaleY, const Color_t color)
void DrawRectangle (const double x1, const double y1, const double x2, const double y2, const double x3, const double y3, const double x4, const double y4, const double scaleX, const double scaleY, const Color_t color)
 Draws rectangle.

Variables

int uniqueId = 0
 Variable that lets TObjects have unique name so that they will not be overwritten.

Detailed Description

Contains all functions and variables that are needed for this project.

Function Documentation

◆ DrawBezierShape()

void PHENIXTools::DrawBezierShape ( const std::string inputFileName,
const double shiftX,
const double shiftY,
const double scaleX,
const double scaleY,
const Color_t color )

Draws bezier shape from the points that were extracted by dividing bezier shape in inkscape into many segments

◆ DrawPreliminary()

void PHENIXTools::DrawPreliminary ( const double x,
const double y,
const double size = 0.25 )

Draw preliminary logo on a TPad.

This is the only function that is needed for the user for the logo to be drawn.

Parameters
[in]xNDC coordinate along x axis that shows where to put the logo
[in]yNDC coordinate along y axis that shows where to put the logo
[in]sizeNDC size of a logo

The logo will be drawn (in NDC) from x to x + size along X axis and from y to y + 0.4772*size along y axis.

Warning: do not set your TPad size less than 400 pixels in width or height. This might mess up the calculation of sizes of the logo along x and y axis since pixels must be used for consistency.

◆ DrawRectangle()

void PHENIXTools::DrawRectangle ( const double x1,
const double y1,
const double x2,
const double y2,
const double x3,
const double y3,
const double x4,
const double y4,
const double scaleX,
const double scaleY,
const Color_t color )

Draws rectangle.

Variable Documentation

◆ uniqueId

int PHENIXTools::uniqueId = 0

Variable that lets TObjects have unique name so that they will not be overwritten.