Changeset View
Changeset View
Standalone View
Standalone View
validation/compareRootFiles.cc
Show First 20 Lines • Show All 118 Lines • ▼ Show 20 Lines | void compareRootFiles::getMtmPlots() | ||||
oldHistVect.push_back( oldOtherMtmHist ); | oldHistVect.push_back( oldOtherMtmHist ); | ||||
_theCanvas->Clear(); | _theCanvas->Clear(); | ||||
_theCanvas->UseCurrentStyle(); | _theCanvas->UseCurrentStyle(); | ||||
_theCanvas->cd( 1 ); | _theCanvas->cd( 1 ); | ||||
gPad->SetLogy(); | gPad->SetLogy(); | ||||
// Different colours for the particle groups | // Different colours for the particle groups | ||||
int colours[6] = {1, 2, 4, 6, 8, 28}; | int colours[6] = { 1, 2, 4, 6, 8, 28 }; | ||||
string histLabels[6] = { | string histLabels[6] = { | ||||
"Leptons,#gamma", "Pions", "Kaons", "D+,D-,D0", | "Leptons,#gamma", "Pions", "Kaons", "D+,D-,D0", | ||||
"Light/strange baryons", "Other"}; | "Light/strange baryons", "Other" }; | ||||
TLegend* theLegend = new TLegend( 0.7, 0.7, 0.9, 0.9 ); | TLegend* theLegend = new TLegend( 0.7, 0.7, 0.9, 0.9 ); | ||||
theLegend->SetFillColor( kWhite ); | theLegend->SetFillColor( kWhite ); | ||||
double newHistMax( 0.0 ), oldHistMax( 0.0 ); | double newHistMax( 0.0 ), oldHistMax( 0.0 ); | ||||
int newHistMaxInt( 0 ), oldHistMaxInt( 0 ); | int newHistMaxInt( 0 ), oldHistMaxInt( 0 ); | ||||
double totalNewFreq( 0.0 ), totalOldFreq( 0.0 ); | double totalNewFreq( 0.0 ), totalOldFreq( 0.0 ); | ||||
▲ Show 20 Lines • Show All 530 Lines • Show Last 20 Lines |