Jump to content

FE4 THREAD


Fia
 Share

Recommended Posts

  • Replies 674.9k
  • Created
  • Last Reply

Top Posters In This Topic

  • TheEnd

    72124

  • Rei Rei

    41380

  • Ϲharlie

    31020

  • Icon of Sin

    29767

Top Posters In This Topic

Don't be so sure. You already said that about Fia.

I'm not being so sure. I said "I think," not "I'm certain."

More boring than Soluna x Roxas, if that's possible >_>

Nope, it isn't possible.

No.

Aaaaaaaaaaaaaalways.

Link to comment
Share on other sites

Watching paint dry.

I've found that to be more enjoyable >_>

NoName is already more boring than Soluna x Roxas, sir. >_>

It's close, though >_>

Nope, it isn't possible.

>_>

Link to comment
Share on other sites

But, you're not bad-ass enough to keep level with zetta

yeah, same here...no idea...oh well. i could just keep the regular name...until I start working on my SF box.

Name referenceeeeeeeeeeeeeeeeee

That works too.

Link to comment
Share on other sites

Oh. I've been caught.

Nap is over, still have massive headache. Code did not write itself while I slept. Disappointment.

Yes, you have been caught. (Sadly, no ralts? yet, for Gallade Zak).

headaches are no good...and hmmm, code? language?

Link to comment
Share on other sites

Yes, you have been caught. (Sadly, no ralts? yet, for Gallade Zak).

headaches are no good...and hmmm, code? language?

Code is C++ in varying levels of strictness. The stuff I compile needs to be nice and standard, but the stuff I just toss in the interpreter can be lazy as hell.

e.g.

[spoiler=Boring]

{
 gROOT->SetStyle("Plain");
 gStyle->SetOptFit(0);
 gStyle->SetHistFillStyle(4000);
 gStyle->SetHistMinimumZero(kTRUE);
 gStyle->SetPalette(1);
 gStyle->SetCanvasDefW(800);
 gStyle->SetCanvasDefH(650);
 gStyle->SetCanvasColor(kWhite);
 gStyle->SetCanvasBorderMode(0);
 gStyle->SetPadColor(kWhite);
 gStyle->SetPadBorderMode(0);
 gStyle->SetTitleFontSize(0.06);
 gStyle->SetOptStat(0);

 TFile hists("MuidHists.root");
 TH1D* hist1 = new TH1D("hist1", "Dimuon Mass (OpSign,Peak)", 150, 2.0,5.0);
 hist1 = (TH1D*) hists.Get("MuMuMassOpMuid");
 TH1D* hist2 = new TH1D("hist2", "Dimuon Mass (OpSign,Side)", 150, 2.0,5.0);
 hist2 = (TH1D*) hists.Get("MuMuMassSameMuid");

 hist1->SetLineColor(kRed);
 hist2->SetLineColor(kBlue);

 TLegend* Legend = new TLegend(.60, .72, .85, .87);
 Legend->SetFillColor(0);
 Legend->SetTextSize(0.045);
 Legend->SetBorderSize(0);

 Legend->AddEntry(hist1, "Opposite Charge");
 Legend->AddEntry(hist2, "Same Charge");

//   Double_t scale;
//   if (hist1->Integral()) scale = 1/hist1->Integral();
//   else scale = 0;
//   hist1->Scale(scale);
//   if (hist2->Integral()) scale = 1/hist2->Integral();
//   else scale = 0;
//   hist2->Scale(scale);

 string title="Dimuon Mass (Muid,Muid);GeV;Events";
 if(hist1->GetMaximum()>hist2->GetMaximum()){
   hist1->SetTitle(title.c_str());
   hist1->Draw();
   hist2->Draw("same");
 }
 else{
   hist2->SetTitle(title.c_str());
   hist2->Draw();
   hist1->Draw("same");
 }


 Legend->Draw("same");

 c1->SaveAs("MuidMuMuMass.png");
}

Edit: Added spoilers. Yes, that is a complete, running code, that, provided an input file with histograms, will produce a neat .png plot output.

Edited by Balcerzak
Link to comment
Share on other sites

Code is C++ in varying levels of strictness. The stuff I compile needs to be nice and standard, but the stuff I just toss in the interpreter can be lazy as hell.

x_x I can read that...not that I understand it fully, but I can figure out the code.

Is that openGL? or some type of graphics language?

Edited by Hatari
Link to comment
Share on other sites

x_x I can read that...not that I understand it fully, but I can figure out the code.

Is that openGL? or some type of graphics language?

High Energy Physics package called ROOT.

It may or may not use openGL itself. I don't really know.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...