ATLAS Offline Software
|
#include "AsgMessaging/MessageCheck.h"
#include <AsgTools/StandaloneToolHandle.h>
#include "FakeBkgTools/FakeBkgInternals.h"
#include "FakeBkgTools/LhoodMMEvent.h"
#include "FakeBkgTools/ApplyFakeFactor.h"
#include "FakeBkgTools/AsymptMatrixTool.h"
#include "FakeBkgTools/LhoodMM_tools.h"
#include "xAODEgamma/Electron.h"
#include "AthContainers/Accessor.h"
#include "TFile.h"
#include "TTree.h"
#include "TH1F.h"
#include "TH2F.h"
#include "TRandom3.h"
#include "TSystem.h"
#include <getopt.h>
#include <unistd.h>
#include <map>
#include <chrono>
#include <fstream>
#include <memory>
Go to the source code of this file.
Classes | |
struct | fbtTestToyMC_config |
Functions | |
StatusCode initialize | ATLAS_NOT_THREAD_SAFE (CP::BaseFakeBkgTool &tool, const std::vector< std::string > &input, const std::string &selection, const std::string &process, bool verbose) |
StatusCode | writeXML (const string &name, int type) |
StatusCode | writeROOT (const string &name, int type, float realeff_mean, float fakeeff_mean, float eff_spread, float eff_delta_with_pt) |
StatusCode setupEfficiencies | ATLAS_NOT_THREAD_SAFE () |
Install fatal handler with default options. More... | |
StatusCode lookupEfficiencies | ATLAS_NOT_THREAD_SAFE (xAOD::IParticle &lepton, ParticleData &lepton_data) |
StatusCode parseArguments | ATLAS_NOT_THREAD_SAFE (int argc, char *argv[], fbtTestToyMC_config &config) |
StatusCode | setupSystBranches (const char *baseName, CP::SystematicVariation sysvar, float &weight, float &weight_err, std::map< CP::SystematicVariation, float > &syst_map, std::map< CP::SystematicVariation, float > &syst_err_map, TTree *ntuple) |
StatusCode | setupSystBranchesAsym (const char *baseName, CP::SystematicVariation sysvar, float &weight, float &weight_poserr, float &weight_negerr, std::map< CP::SystematicVariation, float > &syst_map, std::map< CP::SystematicVariation, float > &syst_poserr_map, std::map< CP::SystematicVariation, float > &syst_negerr_map, TTree *ntuple) |
std::unique_ptr< TFile > | openRootFile (fbtTestToyMC_config &config) |
StatusCode doMerge | ATLAS_NOT_THREAD_SAFE (const std::vector< std::string > &input, const std::string &name, fbtTestToyMC_config &config, TH1F *h_lep_pt, float &lep_pt, TH1F *h_lep_eta, float &lep_eta, TH2F *h_lep_pt_eta, float &fakes, float &poserr, float &negerr, int icase) |
StatusCode Loop | ATLAS_NOT_THREAD_SAFE (fbtTestToyMC_config config) |
double | comboProb (const vector< FakeBkgTools::ParticleData > &leptons_data, const std::bitset< 64 > &tights, const std::bitset< 64 > &reals) |
StatusCode | usage () |
int main | ATLAS_NOT_THREAD_SAFE (int argc, char *argv[]) |
double | comboProb_FF (const vector< FakeBkgTools::ParticleData > &leptons_data, const std::bitset< 64 > &tights, const std::bitset< 64 > &reals) |
Variables | |
TH1F * | h_realeff_e |
TH1F * | h_fakeeff_e |
TH1F * | h_realeff_mu |
TH1F * | h_fakeeff_mu |
TFile * | rootEffFile |
double | totWeight_std |
double | err_std |
double | weight_lepfakes_2tight |
double | weight_lepfakes_3tight |
double | weight_lepfakes_2tight_1loose |
bool | fitFailed |
string | rootEffFileName |
Double_t | n_fake_lhood |
Double_t | n_fake_lhood_tot_poserr |
Double_t | n_fake_lhood_tot_negerr |
std::ofstream * | f_stdneg_lhood_pos |
std::ofstream * | f_stdpos_lhood_0 |
const int | nSave = 4 |
|
inline |
Install fatal handler with default options.
This is meant to be easy to call from python via ctypes.
Install fatal handler with default options.
getLorentzAngle() Read LorentzAngle from HIST and write out into local DB
getBSErrors() Read BSErrors from Monitoring HIST and write out into local DB
getEfficiency() Read Efficiency from Monitoring HIST and write out into local DB
getRawOccupancy() Read RawOccupancy from Monitoring HIST and write out into local DB
getNoiseOccupancy() Read NoiseOccupancy from HIST and write out into local DB
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
beginning of the loop of channels
bad bit newly found
known bad bit
for low noisy cells
for high noisy cells
0.01 is used to scale "PER" to the same order of magnitude to "SIG"
smaller deviation: distorted
checking TmaxAmp, Not mixed with MaxAmp and Width
channel information output
Only dead or distorted, or short known BCs are considered below.
index of bc
Definition at line 985 of file fbtTestToyMC.cxx.
StatusCode doMerge ATLAS_NOT_THREAD_SAFE | ( | const std::vector< std::string > & | input, |
const std::string & | name, | ||
fbtTestToyMC_config & | config, | ||
TH1F * | h_lep_pt, | ||
float & | lep_pt, | ||
TH1F * | h_lep_eta, | ||
float & | lep_eta, | ||
TH2F * | h_lep_pt_eta, | ||
float & | fakes, | ||
float & | poserr, | ||
float & | negerr, | ||
int | icase | ||
) |
Definition at line 1126 of file fbtTestToyMC.cxx.
StatusCode initialize ATLAS_NOT_THREAD_SAFE | ( | CP::BaseFakeBkgTool & | tool, |
const std::vector< std::string > & | input, | ||
const std::string & | selection, | ||
const std::string & | process, | ||
bool | verbose | ||
) |
Definition at line 968 of file fbtTestToyMC.cxx.
StatusCode Loop ATLAS_NOT_THREAD_SAFE | ( | fbtTestToyMC_config | config | ) |
Definition at line 164 of file fbtTestToyMC.cxx.
int main ATLAS_NOT_THREAD_SAFE | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 132 of file fbtTestToyMC.cxx.
StatusCode parseArguments ATLAS_NOT_THREAD_SAFE | ( | int | argc, |
char * | argv[], | ||
fbtTestToyMC_config & | config | ||
) |
Definition at line 773 of file fbtTestToyMC.cxx.
StatusCode lookupEfficiencies ATLAS_NOT_THREAD_SAFE | ( | xAOD::IParticle & | lepton, |
FakeBkgTools::ParticleData & | lepton_data | ||
) |
Definition at line 1012 of file fbtTestToyMC.cxx.
double comboProb | ( | const vector< FakeBkgTools::ParticleData > & | leptons_data, |
const std::bitset< 64 > & | tights, | ||
const std::bitset< 64 > & | reals | ||
) |
Definition at line 1028 of file fbtTestToyMC.cxx.
double comboProb_FF | ( | const vector< FakeBkgTools::ParticleData > & | leptons_data, |
const std::bitset< 64 > & | tights, | ||
const std::bitset< 64 > & | reals | ||
) |
Definition at line 1050 of file fbtTestToyMC.cxx.
std::unique_ptr< TFile > openRootFile | ( | fbtTestToyMC_config & | config | ) |
Definition at line 879 of file fbtTestToyMC.cxx.
StatusCode setupSystBranches | ( | const char * | baseName, |
CP::SystematicVariation | sysvar, | ||
float & | weight, | ||
float & | weight_err, | ||
std::map< CP::SystematicVariation, float > & | syst_map, | ||
std::map< CP::SystematicVariation, float > & | syst_err_map, | ||
TTree * | ntuple | ||
) |
Definition at line 1077 of file fbtTestToyMC.cxx.
StatusCode setupSystBranchesAsym | ( | const char * | baseName, |
CP::SystematicVariation | sysvar, | ||
float & | weight, | ||
float & | weight_poserr, | ||
float & | weight_negerr, | ||
std::map< CP::SystematicVariation, float > & | syst_map, | ||
std::map< CP::SystematicVariation, float > & | syst_poserr_map, | ||
std::map< CP::SystematicVariation, float > & | syst_negerr_map, | ||
TTree * | ntuple | ||
) |
Definition at line 1098 of file fbtTestToyMC.cxx.
StatusCode usage | ( | ) |
Definition at line 1167 of file fbtTestToyMC.cxx.
StatusCode writeROOT | ( | const string & | name, |
int | type, | ||
float | realeff_mean, | ||
float | fakeeff_mean, | ||
float | eff_spread, | ||
float | eff_delta_with_pt | ||
) |
Definition at line 696 of file fbtTestToyMC.cxx.
StatusCode writeXML | ( | const string & | name, |
int | type | ||
) |
double err_std |
Definition at line 111 of file fbtTestToyMC.cxx.
std::ofstream* f_stdneg_lhood_pos |
Definition at line 127 of file fbtTestToyMC.cxx.
std::ofstream* f_stdpos_lhood_0 |
Definition at line 128 of file fbtTestToyMC.cxx.
bool fitFailed |
Definition at line 116 of file fbtTestToyMC.cxx.
TH1F * h_fakeeff_e |
Definition at line 72 of file fbtTestToyMC.cxx.
TH1F * h_fakeeff_mu |
Definition at line 72 of file fbtTestToyMC.cxx.
TH1F* h_realeff_e |
Definition at line 72 of file fbtTestToyMC.cxx.
TH1F * h_realeff_mu |
Definition at line 72 of file fbtTestToyMC.cxx.
Double_t n_fake_lhood |
Definition at line 122 of file fbtTestToyMC.cxx.
Double_t n_fake_lhood_tot_negerr |
Definition at line 125 of file fbtTestToyMC.cxx.
Double_t n_fake_lhood_tot_poserr |
Definition at line 124 of file fbtTestToyMC.cxx.
const int nSave = 4 |
Definition at line 130 of file fbtTestToyMC.cxx.
TFile* rootEffFile |
Definition at line 73 of file fbtTestToyMC.cxx.
string rootEffFileName |
Definition at line 118 of file fbtTestToyMC.cxx.
double totWeight_std |
Definition at line 110 of file fbtTestToyMC.cxx.
double weight_lepfakes_2tight |
Definition at line 112 of file fbtTestToyMC.cxx.
double weight_lepfakes_2tight_1loose |
Definition at line 114 of file fbtTestToyMC.cxx.
double weight_lepfakes_3tight |
Definition at line 113 of file fbtTestToyMC.cxx.