Analysis Software
Documentation for sPHENIX simulation software
|
#include <bitset>
#include <fstream>
#include <iostream>
#include <limits>
#include <map>
#include <string>
#include <vector>
#include <TCanvas.h>
#include <TChain.h>
#include <TF1.h>
#include <TFile.h>
#include <TH1F.h>
#include <TH2F.h>
#include <TH3F.h>
#include <TLegend.h>
#include <TMath.h>
#include <TStyle.h>
#include <TTree.h>
#include <TVectorF.h>
#include "CommonUtils.h"
#include "TreeReader.h"
Go to the source code of this file.
Functions | |
int | trackSummaryAnalysis (const std::vector< std::string > &inFiles, const std::string &inTree, const std::string &outFile, const std::string &inConfig="", const std::string &outConfig="", unsigned long nEntries=0, unsigned int nPeakEntries=0, float pullRange=6., unsigned int nHistBins=61, unsigned int nPhiBins=10, const std::array< float, 2 > &phiRange={-M_PI, M_PI}, unsigned int nEtaBins=10, const std::array< float, 2 > &etaRange={-3, 3}, const std::vector< double > &ptBorders={0., std::numeric_limits< double >::infinity()}, const std::bitset< 7 > &residualPulls=std::bitset< 7 >{"1111111"}, const std::bitset< 5 > &auxiliary=std::bitset< 5 >{"11111"}) |
int trackSummaryAnalysis | ( | const std::vector< std::string > & | inFiles, |
const std::string & | inTree, | ||
const std::string & | outFile, | ||
const std::string & | inConfig = "" , |
||
const std::string & | outConfig = "" , |
||
unsigned long | nEntries = 0 , |
||
unsigned int | nPeakEntries = 0 , |
||
float | pullRange = 6. , |
||
unsigned int | nHistBins = 61 , |
||
unsigned int | nPhiBins = 10 , |
||
const std::array< float, 2 > & | phiRange = {-M_PI, M_PI} , |
||
unsigned int | nEtaBins = 10 , |
||
const std::array< float, 2 > & | etaRange = {-3, 3} , |
||
const std::vector< double > & | ptBorders = {0., std::numeric_limits<double>::infinity()} , |
||
const std::bitset< 7 > & | residualPulls = std::bitset<7>{"1111111"} , |
||
const std::bitset< 5 > & | auxiliary = std::bitset<5>{"11111"} |
||
) |
This ROOT script will plot the residual and pull of perigee track parameters (d0, z0, phi, theta, q/p, pT, t) from root file produced by the RootTrajectorySummaryWriter
inFiles | the list of input files |
inTree | the name of the input tree |
outFile | the name of the output file |
inConfig | the (optional) input configuration JSON file |
outConfig | the (optional) output configuration JSON file |
residualPulls | the bitset of the parameters set |
Helper method to handle range without possibility to read in
handle | the parameter handle in question |
handleTag | the unique tangle tag |
peakEntries | the number of entries used for range peaking |
Preparation of handles / acceptance range
Helper method to analyse bins
residualPullsMatrix | the 2D matrix of handles |
auxiliaryMatrix | the 2D matrix of the auxiliary handles |
matrixTag | the identification tag for the matrix |
outputBorders | the border vector for the outer bins |
innerBorders | the border vector for the inner bins |
fXTitle | the title of the x axis of the first projection |
sXTitle | the title of the x axis of the second projection |
Write out the projection histogram
h2 | the 2D histogram as source for the projects |
fXTitle | the title of the x axis of the first projection |
fYTitle | the title of the y axis of the first projection |
sXTitle | the title of the x axis of the second projection |
sYTitle | the title of the y axis of the second projection |
Definition at line 53 of file trackSummaryAnalysis.C.
View newest version in sPHENIX GitHub at line 53 of file trackSummaryAnalysis.C
Referenced by main().