![]() |
ATLAS Offline Software
|
#include "InDetPhysValMonitoring/ResolutionHelper.h"#include "TFile.h"#include "TSystem.h"#include "TH1.h"#include "TH2.h"#include "TObject.h"#include <iostream>#include <memory>#include <string>Go to the source code of this file.
Functions | |
| bool | file_exists (const string &p_name) |
| bool | isResolutionHelper (TObject *entry) |
| std::vector< std::string > | getObservableAndResoAndSuffix (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 72 of file postProcessIDPVMHistos.cxx.
| bool file_exists | ( | const string & | p_name | ) |
Definition at line 31 of file postProcessIDPVMHistos.cxx.
| std::vector<std::string> getObservableAndResoAndSuffix | ( | const TObject * | resHelper | ) |
Definition at line 43 of file postProcessIDPVMHistos.cxx.
| std::pair<std::string, std::string> getPullAndResoNames | ( | const std::string & | type | ) |
Definition at line 86 of file postProcessIDPVMHistos.cxx.
| std::string getResoType | ( | const TObject * | resHelper | ) |
Definition at line 66 of file postProcessIDPVMHistos.cxx.
| bool isResolutionHelper | ( | TObject * | entry | ) |
Definition at line 36 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 166 of file postProcessIDPVMHistos.cxx.
| int postProcessDir | ( | TDirectory * | dir, |
| IDPVM::ResolutionHelper & | theHelper | ||
| ) |
Definition at line 125 of file postProcessIDPVMHistos.cxx.
| int postProcessHistos | ( | TObject * | resHelper, |
| IDPVM::ResolutionHelper & | theHelper | ||
| ) |
Definition at line 99 of file postProcessIDPVMHistos.cxx.
| int pproc_file | ( | const std::string & | p_infile | ) |
Definition at line 151 of file postProcessIDPVMHistos.cxx.
1.8.18