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
Public Member Functions | Private Attributes | List of all members
BhToysHistoProcessor Class Reference

Insert description here. more details. More...

#include <BhToysHistoProcessor.h>

Inheritance diagram for BhToysHistoProcessor:
Processor

Public Member Functions

 BhToysHistoProcessor (const std::string &name, Process &process)
 Constructor.
 
 ~BhToysHistoProcessor ()
 
virtual void configure (const ParameterSet &parameters)
 Configure using given parameters.
 
virtual void initialize (std::string inFilename, std::string outFilename)
 description
 
virtual bool process ()
 description
 
virtual void initialize (TTree *tree)
 description
 
virtual bool process (IEvent *event)
 description
 
virtual void finalize ()
 description
 
- Public Member Functions inherited from Processor
 Processor (const std::string &name, Process &process)
 Class constructor.
 
virtual ~Processor ()
 
virtual void setFile (TFile *outFile)
 Set output TFile for AnaProcessors.
 

Private Attributes

TFile * inF_ {nullptr}
 description
 
BumpHunterbump_hunter_ {nullptr}
 The bump hunter manager.
 
FlatTupleMakerflat_tuple_ {nullptr}
 The flat tuple manager.
 
std::string massSpectrum_ {"testSpectrum_h"}
 The name of the mass spectrum to fit.
 
TH1 * mass_spec_h {nullptr}
 The mass spectrum to fit.
 
std::string signal_shape_h_name_ {""}
 The signal shape histogram name to use, if defined.
 
std::string signal_shape_h_file_ {""}
 The signal shpae histogram file path, if defined.
 
TH1 * signal_shape_h_ {nullptr}
 The signal shape histogram to use.
 
double mass_hypo_ {100.0}
 The signal hypothesis to use in the fit.
 
int poly_order_ {3}
 Order of polynomial used to model the background.
 
int toy_poly_order_ {-1}
 Order of polynomial used to create the toy generator function.
 
int win_factor_ {10}
 
int seed_ {10}
 
int nToys_ {50}
 Number of toys to throw and fit.
 
int toy_sig_samples_ {0}
 
int bkg_mult_ {1}
 
double res_scale_ {1.00}
 The factor by which to scale the mass resolution function.
 
bool asymptotic_limit_ {true}
 Whether to use the asymptotic upper limit or the power constrained. Defaults to asymptotic.
 
int bkg_model_ {1}
 What background model type to use.
 
int debug_ {0}
 Debug Level.
 

Additional Inherited Members

- Static Public Member Functions inherited from Processor
static void declare (const std::string &classname, ProcessorMaker *)
 Internal function which is part of the ProcessorFactory machinery.
 
- Protected Attributes inherited from Processor
Processprocess_
 
TFile * outF_ {nullptr}
 
std::string name_
 

Detailed Description

Insert description here. more details.

Definition at line 20 of file BhToysHistoProcessor.h.

Constructor & Destructor Documentation

◆ BhToysHistoProcessor()

BhToysHistoProcessor ( const std::string &  name,
Process process 
)

Constructor.

Parameters
name
process

Definition at line 9 of file BhToysHistoProcessor.cxx.

◆ ~BhToysHistoProcessor()

Definition at line 13 of file BhToysHistoProcessor.cxx.

Member Function Documentation

◆ configure()

void configure ( const ParameterSet parameters)
virtual

Configure using given parameters.

Parameters
parametersThe parameters used for configuration.

Reimplemented from Processor.

Definition at line 15 of file BhToysHistoProcessor.cxx.

◆ finalize()

void finalize ( )
virtual

description

Implements Processor.

Definition at line 249 of file BhToysHistoProcessor.cxx.

◆ initialize() [1/2]

void initialize ( std::string  inFilename,
std::string  outFilename 
)
virtual

description

Parameters
inFilename
outFilename

Reimplemented from Processor.

Definition at line 38 of file BhToysHistoProcessor.cxx.

◆ initialize() [2/2]

virtual void initialize ( TTree *  tree)
inlinevirtual

description

Parameters
tree

Implements Processor.

Definition at line 61 of file BhToysHistoProcessor.h.

◆ process() [1/2]

bool process ( )
virtual

description

Returns
true
false

Reimplemented from Processor.

Definition at line 136 of file BhToysHistoProcessor.cxx.

◆ process() [2/2]

virtual bool process ( IEvent event)
inlinevirtual

description

Parameters
event
Returns
true
false

Implements Processor.

Definition at line 70 of file BhToysHistoProcessor.h.

Member Data Documentation

◆ asymptotic_limit_

bool asymptotic_limit_ {true}
private

Whether to use the asymptotic upper limit or the power constrained. Defaults to asymptotic.

Definition at line 129 of file BhToysHistoProcessor.h.

◆ bkg_model_

int bkg_model_ {1}
private

What background model type to use.

Definition at line 130 of file BhToysHistoProcessor.h.

◆ bkg_mult_

int bkg_mult_ {1}
private

Toy background events are by default equal in number to the integral of the invariant mass distribution. The number of events may be modified by a multiplicative factor.

Definition at line 126 of file BhToysHistoProcessor.h.

◆ bump_hunter_

BumpHunter* bump_hunter_ {nullptr}
private

The bump hunter manager.

Definition at line 82 of file BhToysHistoProcessor.h.

◆ debug_

int debug_ {0}
private

Debug Level.

Definition at line 131 of file BhToysHistoProcessor.h.

◆ flat_tuple_

FlatTupleMaker* flat_tuple_ {nullptr}
private

The flat tuple manager.

Definition at line 84 of file BhToysHistoProcessor.h.

◆ inF_

TFile* inF_ {nullptr}
private

description

Definition at line 80 of file BhToysHistoProcessor.h.

◆ mass_hypo_

double mass_hypo_ {100.0}
private

The signal hypothesis to use in the fit.

Definition at line 97 of file BhToysHistoProcessor.h.

◆ mass_spec_h

TH1* mass_spec_h {nullptr}
private

The mass spectrum to fit.

Definition at line 88 of file BhToysHistoProcessor.h.

◆ massSpectrum_

std::string massSpectrum_ {"testSpectrum_h"}
private

The name of the mass spectrum to fit.

Definition at line 86 of file BhToysHistoProcessor.h.

◆ nToys_

int nToys_ {50}
private

Number of toys to throw and fit.

Definition at line 113 of file BhToysHistoProcessor.h.

◆ poly_order_

int poly_order_ {3}
private

Order of polynomial used to model the background.

Definition at line 98 of file BhToysHistoProcessor.h.

◆ res_scale_

double res_scale_ {1.00}
private

The factor by which to scale the mass resolution function.

Definition at line 128 of file BhToysHistoProcessor.h.

◆ seed_

int seed_ {10}
private

The seed used in generating random numbers. The default of 0 causes the generator to use the system time.

Definition at line 111 of file BhToysHistoProcessor.h.

◆ signal_shape_h_

TH1* signal_shape_h_ {nullptr}
private

The signal shape histogram to use.

Definition at line 95 of file BhToysHistoProcessor.h.

◆ signal_shape_h_file_

std::string signal_shape_h_file_ {""}
private

The signal shpae histogram file path, if defined.

Definition at line 93 of file BhToysHistoProcessor.h.

◆ signal_shape_h_name_

std::string signal_shape_h_name_ {""}
private

The signal shape histogram name to use, if defined.

Definition at line 91 of file BhToysHistoProcessor.h.

◆ toy_poly_order_

int toy_poly_order_ {-1}
private

Order of polynomial used to create the toy generator function.

Definition at line 99 of file BhToysHistoProcessor.h.

◆ toy_sig_samples_

int toy_sig_samples_ {0}
private

Number of samples for signal to employ in toy model generation. Defaults to zero.

Definition at line 119 of file BhToysHistoProcessor.h.

◆ win_factor_

int win_factor_ {10}
private

The factor that determines the size of the mass window as window_size = (mass_resolution*win_factor)

Definition at line 105 of file BhToysHistoProcessor.h.


The documentation for this class was generated from the following files: