ATLAS Offline Software
|
#include "InDetPhysValMonitoring/ResolutionHelper.h"
#include <iostream>
#include "TFile.h"
#include "TSystem.h"
#include "TH1.h"
#include "TH2.h"
#include "TObject.h"
Go to the source code of this file.
Functions | |
bool | file_exists (const string &p_name) |
bool | isResolutionHelper (TObject *entry) |
std::pair< std::string, std::string > | getObservableAndReso (const TObject *resHelper) |
std::string | getResoType (const TObject *resHelper) |
TH1 * | cloneExisting (const std::string &name) |
std::pair< std::string, std::string > | getPullAndResoNames (const std::string &type) |
int | postProcessHistos (TObject *resHelper, IDPVM::ResolutionHelper &theHelper) |
int | postProcessDir (TDirectory *dir, IDPVM::ResolutionHelper &theHelper) |
int | pproc_file (const std::string &p_infile) |
int | main (int argc, char *argv[]) |
Goal: Update resolutions extracted from 2D histograms after merging several output files (typically after grid running)
Definition in file postProcessIDPVMHistos.cxx.
TH1* cloneExisting | ( | const std::string & | name | ) |
Definition at line 58 of file postProcessIDPVMHistos.cxx.
bool file_exists | ( | const string & | p_name | ) |
Definition at line 29 of file postProcessIDPVMHistos.cxx.
std::pair<std::string, std::string> getObservableAndReso | ( | const TObject * | resHelper | ) |
Definition at line 41 of file postProcessIDPVMHistos.cxx.
std::pair<std::string, std::string> getPullAndResoNames | ( | const std::string & | type | ) |
Definition at line 72 of file postProcessIDPVMHistos.cxx.
std::string getResoType | ( | const TObject * | resHelper | ) |
Definition at line 52 of file postProcessIDPVMHistos.cxx.
bool isResolutionHelper | ( | TObject * | entry | ) |
Definition at line 34 of file postProcessIDPVMHistos.cxx.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Standard usage. The user passes a file they wish to update.
hadd imitation. Ugly, but allows this to run in PhysVal merge transforms. We deliberately ignore the first arg ("-f") in the following. This is because the physval merge step requires passing a "-f" ...
copy the input file to the output file
and mark the output for postprocessing. Input stays invariant in this mode
check if the input exists
and post-process if it does
Definition at line 151 of file postProcessIDPVMHistos.cxx.
int postProcessDir | ( | TDirectory * | dir, |
IDPVM::ResolutionHelper & | theHelper | ||
) |
Definition at line 109 of file postProcessIDPVMHistos.cxx.
int postProcessHistos | ( | TObject * | resHelper, |
IDPVM::ResolutionHelper & | theHelper | ||
) |
Definition at line 85 of file postProcessIDPVMHistos.cxx.
int pproc_file | ( | const std::string & | p_infile | ) |
Definition at line 135 of file postProcessIDPVMHistos.cxx.