1#ifndef __SIMPZBI_ANAPROCESSOR_H__
2#define __SIMPZBI_ANAPROCESSOR_H__
17#include "TLorentzVector.h"
21#include "TEfficiency.h"
67 virtual void initialize(std::string inFilename, std::string outFilename);
72 double calculateZBi(
double n_on,
double n_off,
double tau);
87 void writeGraph(TFile* outF, std::string folder, TGraph* g);
92 void writeTH1F(TFile* outF, std::string folder, TH1F* h);
97 double round(
double var);
108 double m_Ap,
double Mbin=30.0,
double dNdm_sf = 1.0);
166 typedef std::map<std::string, std::pair<double,int>>::iterator
cut_iter_;
Base classes for all user event processing components to extend.
Base class for all event processing components.
Read in flat TTree and create new cut variables for SIMP analysis.
All SIMP Equations for calculating expected signal.
Cutflow optimization tool for SIMPS.
IterativeCutSelector * persistentCutsSelector_
double calculateZBi(double n_on, double n_off, double tau)
description
std::string variableHistCfgFilename_
std::string signalVtxMCSelection_
int debug_
//<! description
std::string tritrigFilename_
std::vector< double > new_variable_params_
std::string signalVtxAnaFilename_
std::shared_ptr< ZBiHistos > bkgHistos_
void fillEventHistograms(std::shared_ptr< ZBiHistos > histos, SimpAnaTTree *MTT)
description
std::map< std::string, std::pair< double, int > >::iterator cut_iter_
virtual void configure(const ParameterSet ¶meters)
description
double countControlRegionBackgroundRate(std::string inFilename, std::string tree_name, double m_Ap, double Mbin=30.0, double dNdm_sf=1.0)
description
void getSignalMCAnaVtxZ_h(std::string signalMCAnaFilename, std::string signal_pdgid)
description
bool failTestCut(std::string cutname, SimpAnaTTree *MTT)
description
virtual void initialize(TTree *tree)
description
std::vector< std::string > cutVariables_
virtual void finalize()
description
std::vector< std::string > new_variables_
std::string signalVtxAnaTreename_
double round(double var)
description
std::string bkgVtxAnaTreename_
bool failPersistentCuts(SimpAnaTTree *MTT)
description
void writeTH1F(TFile *outF, std::string folder, TH1F *h)
description
std::string cuts_cfgFile_
void writeGraph(TFile *outF, std::string folder, TGraph *g)
description
double mass_window_nsigma_
std::map< std::string, std::pair< double, int > > * testCutsPtr_
std::string bkgControlRegionFilename_
std::shared_ptr< ZBiHistos > processorHistos_
void addNewVariables(SimpAnaTTree *MTT, std::string variable, double param)
description
std::map< std::string, std::pair< double, int > > * persistentCutsPtr_
~SimpZBiOptimizationProcessor()
std::shared_ptr< ZBiHistos > signalHistos_
std::map< std::string, double > initialIntegrals_
std::shared_ptr< ZBiHistos > testCutHistos_
std::string signal_pdgid_
std::string bkgVtxAnaFilename_
std::map< std::string, double * > tritrig_tuple_
std::string signalMCAnaFilename_
virtual bool process(IEvent *event)
description
SimpAnaTTree * signalMTT_
std::string bkgControlRegionTreename_
virtual bool process()
description
IterativeCutSelector * testCutsSelector_