hpstr
The Heavy Photon Search Toolkit for Reconstruction (hpstr) provides an interface to physics data from the HPS experiment saved in the LCIO format and converts it into an ROOT based format.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
BhMassResSystematicsProcessor.h
Go to the documentation of this file.
1#ifndef __BH_MASSRESSYSTEMATICSPROCESSOR_H__
2#define __BH_MASSRESSYSTEMATICSPROCESSOR_H__
3
4// HPSTR
5#include "BumpHunter.h"
6#include "FlatTupleMaker.h"
7#include "HpsFitResult.h"
8
9// ROOT
10#include "Processor.h"
11#include "TFile.h"
12#include "TH1.h"
13#include "TRandom3.h"
14
15class TTree;
16
22 public:
29 BhMassResSystematicsProcessor(const std::string& name, Process& process);
30
32
38 virtual void configure(const ParameterSet& parameters);
39
46 virtual void initialize(std::string inFilename, std::string outFilename);
47
54 virtual bool process();
55
61 virtual void initialize(TTree* tree) {};
62
70 virtual bool process(IEvent* event) { return true;};
71
76 virtual void finalize();
77
78 private:
79 TFile* inF_{nullptr};
80 TFile* function_file_{nullptr};
81 std::string function_name_{""};
84 std::string massSpectrum_{"testSpectrum_h"};
85 TH1* mass_spec_h{nullptr};
86 double mass_hypo_{100.0};
87 double seed_ = 0.0;
88 int poly_order_{3};
89 int win_factor_{10};
90 bool asymptotic_limit_{true};
91 int bkg_model_{3};
92 double res_width_{0.05};
93 int res_runs_{1000};
94 int toy_res_runs_{100};
95 int nToys_{1000};
96 int debug_{0};
97};
98
99#endif
Base classes for all user event processing components to extend.
Insert description here. more details.
TFile * function_file_
The file that contains the mass resolution error parameterization.
virtual void configure(const ParameterSet &parameters)
Configure using given parameters.
int bkg_model_
What background model type to use.
virtual void initialize(TTree *tree)
description
double res_width_
The width of the resolution Gaussian.
int res_runs_
How many resolution variance runs to make.
double seed_
The toy generator seed. This is always zero.
double mass_hypo_
The signal hypothesis to use in the fit.
int poly_order_
Order of polynomial used to model the background.
BumpHunter * bump_hunter_
The bump hunter manager.
int nToys_
How many toys to generated.
int win_factor_
The factor that determines the size of the mass window as.
virtual void initialize(std::string inFilename, std::string outFilename)
Initialize processor.
int toy_res_runs_
How many resolution variance runs to make.
FlatTupleMaker * flat_tuple_
The flat tuple manager.
TH1 * mass_spec_h
The mass spectrum to fit.
virtual bool process(IEvent *event)
description
bool asymptotic_limit_
Whether to use the asymptotic upper limit or the power constrained. Defaults to asymptotic.
std::string function_name_
The name of the function object in the error file.
std::string massSpectrum_
The name of the mass spectrum to fit.
description
Definition BumpHunter.h:49
description
Definition IEvent.h:7
description
Base class for all event processing components.
Definition Processor.h:34