ATLAS Offline Software
|
#include <string>
#include <iostream>
#include <cstdlib>
#include <cmath>
#include "TrigInDetAnalysis/Efficiency1D.h"
#include "ReadCards.h"
#include "TH1F.h"
#include "TH1D.h"
#include "TF1.h"
#include "TFile.h"
#include "TPad.h"
#include "TCanvas.h"
#include "TStyle.h"
#include "AtlasStyle.h"
#include "DrawLabel.h"
Go to the source code of this file.
Functions | |
int | usage (const std::string &err_msg="", int status=0) |
void | add_to_bin (double d, TH1 *h, TH1 *h0) |
std::string | runfit (TH1F *h) |
void | efficiency (std::vector< double > &bins, std::vector< double > &values, const std::vector< std::string > &files, const std::string &histname, const std::string &tplotname, const std::string &label="") |
void | mean (std::vector< double > &bins, std::vector< double > &values, const std::vector< std::string > &files, const std::string &histname, const std::string &tplotname, const std::string &label="") |
int | main (int argc, char **argv) |
Variables | |
bool | doFit = false |
bool | doLogx = false |
double | ptmax = 0 |
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
Definition in file dependence.cxx.
void add_to_bin | ( | double | d, |
TH1 * | h, | ||
TH1 * | h0 | ||
) |
void efficiency | ( | std::vector< double > & | bins, |
std::vector< double > & | values, | ||
const std::vector< std::string > & | files, | ||
const std::string & | histname, | ||
const std::string & | tplotname, | ||
const std::string & | label = "" |
||
) |
fetch the numerator and denominator histograms from the efficiency
Definition at line 128 of file dependence.cxx.
int main | ( | int | argc, |
char ** | argv | ||
) |
configuration file ...
read command line arguments ...
open configuration file ...
get the list of efficiencies to cteate ...
get the bins for the efficiency, and the values to be used for each file ...
and the list of files ...
off we go ...
Definition at line 360 of file dependence.cxx.
void mean | ( | std::vector< double > & | bins, |
std::vector< double > & | values, | ||
const std::vector< std::string > & | files, | ||
const std::string & | histname, | ||
const std::string & | tplotname, | ||
const std::string & | label = "" |
||
) |
get the histogram from which we wish to extract the mean
technically we do not need to delete the histgram, as it belongs to the file so will be deleted when the file is Closed, before before it is deleted
Definition at line 254 of file dependence.cxx.
std::string runfit | ( | TH1F * | h | ) |
Definition at line 80 of file dependence.cxx.
int usage | ( | const std::string & | err_msg = "" , |
int | status = 0 |
||
) |
Definition at line 31 of file dependence.cxx.
bool doFit = false |
Definition at line 57 of file dependence.cxx.
bool doLogx = false |
Definition at line 58 of file dependence.cxx.
double ptmax = 0 |
Definition at line 60 of file dependence.cxx.