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
RawSvtHitHistos.h
Go to the documentation of this file.
1#ifndef RAWSVTHITHISTOS_H
2#define RAWSVTHITHISTOS_H
3
4#include "TFile.h"
5#include "HistoManager.h"
6#include "TGraphErrors.h"
7#include "TKey.h"
8#include "TList.h"
9#include "TH1.h"
10#include "RawSvtHit.h"
11//include "BaseSelectorSVT.h"
12//#include "AnaHelpers.h"
13
14//#include "BaseSelector.h"
15//#include "AnaHelpers.h"
16
17#include "ModuleMapper.h"
18
19#include <string>
20
21
23
24 public:
25 RawSvtHitHistos(const std::string& inputName, ModuleMapper* mmapper_);
27
28 void DefineHistos();
29 void FillHistograms(RawSvtHit* rawSvtHit,float weight = 1.,int Ireg=0,unsigned int nhit = 0,Float_t TimeDiff = -42069.0,Float_t AmpDiff = -42069.0);
30 void saveHistosSVT(TFile* outF,std::string folder);
31 private:
32
34
35 int debug_ = 1;
36 int adcs_[6];
37
38 TH1F* svtCondHisto{nullptr};
39 //std::map<std::string,std::shared_ptr<BaseSelector>> reg_selectors_;
40 //ModuleMapperi
42 //std::shared_ptr<BaseSelector> reg_selector;
43 //float times1_[2][4][512][3];
44 //float times2_[8][4][640][3];
45 float baseErr1_[2][4][512][12];
46 float baseErr2_[8][4][640][12];
47 std::vector<std::string> regions_;
48 std::vector<std::string> hybridNames;
49 std::vector<std::string> hybridNames2;
50 std::string swTag;
51};
52
53
54#endif
Class used to encapsulate raw svt hit information.
description
void DefineHistos()
Definition of histograms from json config.
float baseErr2_[8][4][640][12]
std::vector< std::string > hybridNames
std::string swTag
float baseErr1_[2][4][512][12]
void FillHistograms(RawSvtHit *rawSvtHit, float weight=1., int Ireg=0, unsigned int nhit=0, Float_t TimeDiff=-42069.0, Float_t AmpDiff=-42069.0)
std::vector< std::string > hybridNames2
ModuleMapper * mmapper_
void saveHistosSVT(TFile *outF, std::string folder)
std::vector< std::string > regions_