Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
boundParamResolution.C File Reference
#include <array>
#include <iostream>
#include <map>
#include <string>
#include <vector>
#include <TCanvas.h>
#include <TColor.h>
#include <TDirectory.h>
#include <TError.h>
#include <TF1.h>
#include <TFile.h>
#include <TH1F.h>
#include <TH2F.h>
#include <TLegend.h>
#include <TMath.h>
#include <TProfile2D.h>
#include <TStyle.h>
#include <TTree.h>
#include "CommonUtils.h"
#include "TreeReader.h"
+ Include dependency graph for boundParamResolution.C:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int boundParamResolution (const std::string &inFile, const std::string &treeName, const std::string &outFile, bool predicted=true, bool filtered=true, bool smoothed=true, bool fitFiltered=true, bool fitPredicted=true, bool fitSmoothed=true, const std::string &saveAs="")
 

Function Documentation

int boundParamResolution ( const std::string &  inFile,
const std::string &  treeName,
const std::string &  outFile,
bool  predicted = true,
bool  filtered = true,
bool  smoothed = true,
bool  fitFiltered = true,
bool  fitPredicted = true,
bool  fitSmoothed = true,
const std::string &  saveAs = "" 
)

Plot the bound parameter resolutions

(loc1, phi, theta, q/p, t) at all track states from root file produced by the RootTrajectoryStatesWriter

Parameters
inFilethe input root file
treeNamethe input tree name (default: 'trackstates)
outFilethe output root file
pTypesthe track parameter types (prt, flt, smt)
saveAsthe plot saving type

Helper method to make a volLayId string for identification & cut

ensures a unique identification

Helper method to estimate the ranges

Takes identification & cut from the first one

Always fill (-1,-1), (vol, -1), (vol, lay)

Definition at line 44 of file boundParamResolution.C.

View newest version in sPHENIX GitHub at line 44 of file boundParamResolution.C

References adaptColorPalette(), drawOptions, fid, file, TrackStatesReader::filtered, TrackStatesReader::g_x_flt, TrackStatesReader::g_x_prt, TrackStatesReader::g_x_smt, TrackStatesReader::g_y_flt, TrackStatesReader::g_y_prt, TrackStatesReader::g_y_smt, TrackStatesReader::g_z_flt, TrackStatesReader::g_z_prt, TrackStatesReader::g_z_smt, Acts::EventDataView3DTest::gauss(), TreeReader::getEntry(), i, j, TrackStatesReader::layer_id, CKF_timing_vs_mu::mu, perf_headwind::name, TrackStatesReader::nMeasurements, out, TrackStatesReader::predicted, TrackStatesReader::pull_LOC0_flt, TrackStatesReader::pull_LOC0_prt, TrackStatesReader::pull_LOC0_smt, TrackStatesReader::pull_LOC1_flt, TrackStatesReader::pull_LOC1_prt, TrackStatesReader::pull_LOC1_smt, TrackStatesReader::pull_PHI_flt, TrackStatesReader::pull_PHI_prt, TrackStatesReader::pull_PHI_smt, TrackStatesReader::pull_QOP_flt, TrackStatesReader::pull_QOP_prt, TrackStatesReader::pull_QOP_smt, TrackStatesReader::pull_T_flt, TrackStatesReader::pull_T_prt, TrackStatesReader::pull_T_smt, TrackStatesReader::pull_THETA_flt, TrackStatesReader::pull_THETA_prt, TrackStatesReader::pull_THETA_smt, check_smearing_config::ref, TrackStatesReader::res_LOC0_flt, TrackStatesReader::res_LOC0_prt, TrackStatesReader::res_LOC0_smt, TrackStatesReader::res_LOC1_flt, TrackStatesReader::res_LOC1_prt, TrackStatesReader::res_LOC1_smt, TrackStatesReader::res_PHI_flt, TrackStatesReader::res_PHI_prt, TrackStatesReader::res_PHI_smt, TrackStatesReader::res_QOP_flt, TrackStatesReader::res_QOP_prt, TrackStatesReader::res_QOP_smt, TrackStatesReader::res_T_flt, TrackStatesReader::res_T_prt, TrackStatesReader::res_T_smt, TrackStatesReader::res_THETA_flt, TrackStatesReader::res_THETA_prt, TrackStatesReader::res_THETA_smt, setHistStyle(), sigma, TrackStatesReader::smoothed, to_string(), tree, parse_cmake_options::type, and TrackStatesReader::volume_id.

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: