This macro was created for the evaluation of Computational Physics course in 2006. We thank to Prof. Inkyu Park for his special lecture on ROOT and to all of ROOT team
void mp3player()
{
TPad *pad=
new TPad(
"pad",
"Pad",0,0.5,0.5,1);
TPad *pad2=
new TPad(
"pad2",
"Pad2",0.5,0.5,1,1);
Tex.
DrawLatex(0.3,0.81,
"Mariah Carey - Shake it off");
Tex.
DrawLatex(0.3,0.71,
"Alicia keys - If I ain't got you");
Tex.
DrawLatex(0.3,0.61,
"Michael Jackson - Billie Jean");
Tex.
DrawLatex(0.3,0.51,
"Christina Milian - Am to Pm");
Tex.
DrawLatex(0.3,0.41,
"Zapp&Roger - Slow and Easy");
Tex.
DrawLatex(0.3,0.31,
"Black Eyes Peas - Let's get retarded");
Tex.
DrawLatex(0.3,0.21,
"Bosson - One in a Millin");
Tex.
DrawLatex(0.2,0.11,
"Click Button!! You Can Listen to Musics");
TPad *pad3=
new TPad(
"pad3",
"Pad3",0,0,1,0.5);
TPad *pad4=
new TPad(
"pad4",
"Pad4",0.6,0.1,0.9,0.9);
Tex.
DrawLatex(0.06,0.85,
"IAudio U3 Mp3 Player");
L.DrawLine(0.05, 0.83,0.90, 0.83);
Tex.
DrawLatex(0.06,0.65,
"+ 60mW High Generating Power");
Tex.
DrawLatex(0.06,0.45,
"+ Noble White&Black");
Tex.
DrawLatex(0.06,0.35,
"+ Text Viewer+Image Viewer");
Tex.
DrawLatex(0.06,0.25,
"+ 20 Hours Playing");
Tex.
DrawLatex(0.06,0.15,
"+ The Best Quality of Sound");
}
void Sound(int i)
{
char sound[128];
sprintf(sound,"cat sound%d.wav > /dev/audio",i);
}
R__EXTERN TSystem * gSystem
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
Class describing rotation + translation.
The manager class for any TGeo geometry.
TGeoVolume * MakeTube(const char *name, TGeoMedium *medium, Double_t rmin, Double_t rmax, Double_t dz)
Make in one step a volume pointing to a tube shape with given medium.
void CloseGeometry(Option_t *option="d")
Closing geometry implies checking the geometry validity, fixing shapes with negative parameters (run-...
TGeoVolume * MakeBox(const char *name, TGeoMedium *medium, Double_t dx, Double_t dy, Double_t dz)
Make in one step a volume pointing to a box shape with given medium.
TGeoVolume * MakeSphere(const char *name, TGeoMedium *medium, Double_t rmin, Double_t rmax, Double_t themin=0, Double_t themax=180, Double_t phimin=0, Double_t phimax=360)
Make in one step a volume pointing to a sphere shape with given medium.
void SetTopVolume(TGeoVolume *vol)
Set the top volume and corresponding node as starting point of the geometry.
void SetTopVisible(Bool_t vis=kTRUE)
make top volume visible on screen
TGeoVolume * MakeTubs(const char *name, TGeoMedium *medium, Double_t rmin, Double_t rmax, Double_t dz, Double_t phi1, Double_t phi2)
Make in one step a volume pointing to a tube segment shape with given medium.
Base class describing materials.
Media are used to store properties related to tracking and which are useful only when using geometry ...
Class describing rotations.
Class describing translations.
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
virtual void AddNodeOverlap(TGeoVolume *vol, Int_t copy_no, TGeoMatrix *mat=0, Option_t *option="")
Add a TGeoNode to the list of nodes.
virtual void Draw(Option_t *option="")
draw top volume according to option
virtual void SetLineColor(Color_t lcolor)
Set the line color.
To draw Mathematical Formula.
TLatex * DrawLatex(Double_t x, Double_t y, const char *text)
Make a copy of this object with the new parameters And copy object attributes.
The most important graphics class in the ROOT system.
virtual void Draw(Option_t *option="")
Draw Pad in Current pad (re-parent pad if necessary).
TVirtualPad * cd(Int_t subpadnumber=0)
Set Current pad.
A Pave (see TPave) with text, lines or/and boxes inside.
virtual TText * AddText(Double_t x1, Double_t y1, const char *label)
Add a new Text line to this pavetext at given coordinates.
virtual void Draw(Option_t *option="")
Draw this pavetext with its current attributes.
virtual Int_t Exec(const char *shellcmd)
Execute a command.
static constexpr double L