class for estimation of basic quantities for any Float_t branch in the tree
More...
|
| anyVar_class (TChain *data_chain_, std::vector< std::string > branchNames, ElectronCategory_class &cutter, std::string massBranchName, std::string outDirFitRes, TDirectory *dir, bool updateOnly=true) |
|
void | Import (TString commonCut, TString eleID_, std::set< TString > &branchList, unsigned int modulo=1) |
| to be called in the main
|
|
void | TreeAnalyzeShervin (std::string region, TCut cut_ele1, TCut cut_ele2, float scale=1., float smearing=0.) |
|
|
void | ImportTree (TChain *chain, TCut &commonCut, std::set< TString > &commonCutBranches, std::set< TString > &branchList, unsigned int modulo) |
| add to the chain the entry list with selected events, the returned pointer is the same as the one in input
|
|
void | TreeToTree (TChain *chain, std::set< TString > &branchList, unsigned int modulo=0) |
| skim the input TChain with selected events, copying only active branches
|
|
|
std::vector< std::unique_ptr
< std::ofstream > > | _statfiles |
| one file for each branch, here the stats are saved
|
|
std::string | massBranchName_ |
| branch name for the di-object invariant mass
|
|
Double_t | weight |
| variable with the total event weight
|
|
class for estimation of basic quantities for any Float_t branch in the tree
- How to test linearity
for scale in 0.98 0.99 0.995 1 1.005 1.01 1.02 ; do mkdir -p scale_${scale}; ./bin/ZFitter.exe -f data/validation/test_ss.dat --regionsFile=data/regions/validation.dat --noPU --commonCut="Et_25" --outDirFitResData=scale_${scale}/ --scale=$scale > scale_${scale}/scale.log; done
with fish: for scale in scale_*; set scale (echo $scale | sed 's|scale_||') ; echo -ne "$scale\t"; grep EB-gold scale_{$scale}/invMass*.dat; end > p.dat
in gnuplot: f(x) = m * x + q
p 'p.dat' u ($1-1):($7) w lp
fit f(x) 'p.dat' u ($1-1):($7) via m,q
rep f(x)
print m/q
anyVar_class::anyVar_class |
( |
TChain * |
data_chain_, |
|
|
std::vector< std::string > |
branchNames, |
|
|
ElectronCategory_class & |
cutter, |
|
|
std::string |
massBranchName, |
|
|
std::string |
outDirFitRes, |
|
|
TDirectory * |
dir, |
|
|
bool |
updateOnly = true |
|
) |
| |
- Parameters
-
data_chain_ | chain with the data to be analyzed. |
branchNames | vector of <branchName, kType> |
cutter | already contructed with the right energySC branch set |
massBranchName | name of the invariant mass branch |
outDirFitRes | name of the output directory storing the files with the stats |
updateOnly | if true opens the output files in append mode |
References _statfiles.
void anyVar_class::TreeAnalyzeShervin |
( |
std::string |
region, |
|
|
TCut |
cut_ele1, |
|
|
TCut |
cut_ele2, |
|
|
float |
scale = 1. , |
|
|
float |
smearing = 0. |
|
) |
| |
- Return values
-
VOID | The method is void, but it prints to one file the region name and the stats. The name of the output file is the same as the branch used to collect the stat. Refer to stats to see what is the print format |
References _statfiles, and massBranchName_.
The documentation for this class was generated from the following files:
- ZFitter/interface/anyVar_class.h
- ZFitter/src/anyVar_class.cc