Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
compareDistributions.C File Reference
#include "TFile.h"
#include "TH1F.h"
#include "TROOT.h"
#include "TTree.h"
+ Include dependency graph for compareDistributions.C:

Go to the source code of this file.

Functions

void compareDistributions (std::string inFile1, std::string hist1Name, int col1, std::string inFile2, std::string hist2Name, int col2)
 

Function Documentation

void compareDistributions ( std::string  inFile1,
std::string  hist1Name,
int  col1,
std::string  inFile2,
std::string  hist2Name,
int  col2 
)

This root script reads in two histograms with the names 'hist1Name' and 'hist2Name' from the root file 'inFile' and draws them normalized with different colors in one Canvas

Definition at line 19 of file compareDistributions.C.

View newest version in sPHENIX GitHub at line 19 of file compareDistributions.C

References h1, h2, and leg.