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
BhToysHistoProcessor.h
Go to the documentation of this file.
1#ifndef __BHTOYS_HISTOPROCESSOR_H__
2#define __BHTOYS_HISTOPROCESSOR_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
14class TTree;
15
21
22 public:
29 BhToysHistoProcessor(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
80 TFile* inF_{nullptr};
81
83
85
86 std::string massSpectrum_{"testSpectrum_h"};
87
88 TH1* mass_spec_h{nullptr};
89
90 //std::string* signal_shape_h_name_{"bhTight/bhTight_vtx_InvM_h"};
91 std::string signal_shape_h_name_{""};
92 //std::string* signal_shape_h_file_{"/volatile/hallb/hps/mccarty/anaBhAp100.root"};
93 std::string signal_shape_h_file_{""};
94
95 TH1* signal_shape_h_{nullptr};
96
97 double mass_hypo_{100.0};
98 int poly_order_{3};
100
105 int win_factor_{10};
106
111 int seed_{10};
112
113 int nToys_{50};
114
120
126 int bkg_mult_{1};
127
128 double res_scale_{1.00};
129 bool asymptotic_limit_{true};
130 int bkg_model_{1};
131 int debug_{0};
132};
133
134#endif
Base classes for all user event processing components to extend.
Insert description here. more details.
virtual void configure(const ParameterSet &parameters)
Configure using given parameters.
int bkg_model_
What background model type to use.
int toy_poly_order_
Order of polynomial used to create the toy generator function.
virtual void initialize(TTree *tree)
description
virtual void finalize()
description
TH1 * signal_shape_h_
The signal shape histogram to use.
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_
Number of toys to throw and fit.
double res_scale_
The factor by which to scale the mass resolution function.
virtual void initialize(std::string inFilename, std::string outFilename)
description
FlatTupleMaker * flat_tuple_
The flat tuple manager.
TFile * inF_
description
std::string signal_shape_h_file_
The signal shpae histogram file path, if defined.
std::string signal_shape_h_name_
The signal shape histogram name to use, if defined.
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.
virtual bool process()
description
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