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
SvtBlFitHistoProcessor.h
Go to the documentation of this file.
1#ifndef __SVTBLFIT_HISTOPROCESSOR_H__
2#define __SVTBLFIT_HISTOPROCESSOR_H__
3#include <iostream>
4
5//ROOT
6#include "Processor.h"
7#include "TFile.h"
8#include "TTree.h"
9
10//HPSTR
11#include "IEvent.h"
12#include "BlFitHistos.h"
13#include "HistoManager.h"
14#include "FlatTupleMaker.h"
15
21
22 public:
23
30 SvtBlFitHistoProcessor(const std::string& name, Process& process);
31
33
39 virtual void configure(const ParameterSet& parameters);
40
47 virtual void initialize(std::string inFilename, std::string outFilename);
48
55 virtual bool process();
56
62 virtual void initialize(TTree* tree) {};
63
71 virtual bool process(IEvent* event) {};
72
77 virtual void finalize();
78
79 private:
80
81 TFile* inF_{nullptr};
82 TFile* outF_chi2{nullptr};
83
84 int year_=2019;
85
86 //Select which layer to fit baselines. Default is all.
87 std::string layer_{""};
88
89 //json file for histo config
90 std::string histCfgFilename_;
91
92 //json file for reading in rawsvthit histograms
94
95 //Histogram handlers
97
98 //Load apv channel thresholds in
99 std::string thresholdsFileIn_;
100
101 //configurable parameters for fitting. All have default settings.
102 int rebin_{};
104 int deadRMS_{};
105 int debug_{0};
106
107 std::string simpleGausFit_;
108
110
111
112};
113
114#endif
Base classes for all user event processing components to extend.
description
Definition BlFitHistos.h:30
description
Definition IEvent.h:7
description
Base class for all event processing components.
Definition Processor.h:34
Insert description here. more details.
virtual void configure(const ParameterSet &parameters)
description  *  *
virtual void initialize(TTree *tree)
description  *  *
virtual void finalize()
description  * 
std::string layer_
description
std::string thresholdsFileIn_
description
BlFitHistos * fitHistos_
description
std::string histCfgFilename_
description
virtual void initialize(std::string inFilename, std::string outFilename)
description  *  *
FlatTupleMaker * flat_tuple_
description
std::string simpleGausFit_
description
std::string rawhitsHistCfgFilename_
description
virtual bool process(IEvent *event)
description  *  *
virtual bool process()
description  *  *