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
VtxHistoProcessor.h
Go to the documentation of this file.
1#ifndef __VTX_HISTOPROCESSOR_H__
2#define __VTX_HISTOPROCESSOR_H__
3
4// HPSTR
5#include "Processor.h"
6#include "HistogramHelpers.h"
7
8// ROOT
9#include "TFile.h"
10#include "TH1F.h"
11#include "TH2F.h"
12#include "TAxis.h"
13
14// CPLUSPLUS
15#include <map>
16#include <vector>
17#include <memory>
18
24
25 public:
32 VtxHistoProcessor(const std::string& name, Process& process);
33
35
41 virtual void configure(const ParameterSet& parameters);
42
49 virtual void initialize(std::string inFilename, std::string outFilename);
50
57 virtual bool process();
58
64 virtual void initialize(TTree* tree) {};
65
73 virtual bool process(IEvent* event) { return true;};
74
79 virtual void finalize();
80
81 private:
82
83 TFile* inF_{nullptr};
84
85 int debug_{0};
86 int rebin_{1};
87
88 std::vector<std::string> selections_{};
89 std::vector<std::string> projections_;
90 std::map<std::string,TH2F*> _histos2d;
91 typedef std::map<std::string,TH2F*>::iterator it2d_;
92
93 std::map<std::string,TH1F* > _histos1d;
94 typedef std::map<std::string,TH1F*>::iterator it1d_;
95
96};
97
98
99#endif
Base classes for all user event processing components to extend.
Definition IEvent.h:7
description
Base class for all event processing components.
Definition Processor.h:34
Insert description here. more details.
int debug_
Debug Level.
virtual void configure(const ParameterSet &parameters)
description
virtual void initialize(TTree *tree)
description
virtual void finalize()
description
std::map< std::string, TH2F * >::iterator it2d_
std::map< std::string, TH2F * > _histos2d
Map storing the 2D histograms.
std::map< std::string, TH1F * >::iterator it1d_
virtual void initialize(std::string inFilename, std::string outFilename)
description
std::map< std::string, TH1F * > _histos1d
Map storing the 1D biases and resolutions.
TFile * inF_
description
int rebin_
Rebin factor.
std::vector< std::string > projections_
2D histos to project
virtual bool process(IEvent *event)
description
virtual bool process()
description
std::vector< std::string > selections_
Selection folder.