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
SvtBl2DAnaProcessor.h
Go to the documentation of this file.
1#ifndef __SVTBL2D_ANAPROCESSOR_H__
2#define __SVTBL2D_ANAPROCESSOR_H__
3
4//HPSTR
5#include "HpsEvent.h"
6#include "RawSvtHit.h"
7#include "ModuleMapper.h"
8#include "TSData.h"
9
10//ROOT
11#include "Svt2DBlHistos.h"
12#include "Processor.h"
13#include "TClonesArray.h"
14#include "TFile.h"
15#include "json.hpp"
16
17class TTree;
18
24
25 public:
32 SvtBl2DAnaProcessor(const std::string& name, Process& process);
33
35
43 virtual bool process(IEvent* ievent);
44
50 virtual void initialize(TTree* tree);
51
56 virtual void finalize();
57
63 virtual void configure(const ParameterSet& parameters);
64
65
66 private:
67
68 int Event_number = 0;
70
72
73 std::string histCfgFilename_;
74 std::string rawSvtHitsColl_{"SVTRawTrackerHits"};
75 std::vector<RawSvtHit*>* rawSvtHits_{};
76 TBranch* brawSvtHits_{nullptr};
77 TTree* tree_;
78
79 std::string triggerFilename_;
81 std::string triggerBankColl_{"TSBank"};
82
83 TBranch* btriggerBank_{nullptr};
84 TObject* triggerBank_{};
85 std::map<std::string, bool> prescaledtriggerMap_;
86 std::map<std::string, bool> exttriggerMap_;
87
88 int debug_{0};
89
90};
91
92
93#endif
nlohmann::json json
Base classes for all user event processing components to extend.
Class used to encapsulate raw svt hit information.
Class used to decode TS words.
Definition IEvent.h:7
description
Base class for all event processing components.
Definition Processor.h:34
virtual bool process()
Process the histograms and generate analysis output.
Definition Processor.h:95
description
Insert description here. more details.
virtual void configure(const ParameterSet &parameters)
description
std::string triggerFilename_
trigger selection
virtual void finalize()
description
json triggers_
description
std::vector< RawSvtHit * > * rawSvtHits_
description
virtual void initialize(TTree *tree)
description
TBranch * btriggerBank_
description
TTree * tree_
description
std::string triggerBankColl_
description
Svt2DBlHistos * svtCondHistos
description
std::string histCfgFilename_
configuration parameters
TObject * triggerBank_
description
std::map< std::string, bool > prescaledtriggerMap_
description
std::map< std::string, bool > exttriggerMap_
description
std::string rawSvtHitsColl_
description
TBranch * brawSvtHits_
description
int Event_number
description
ModuleMapper * mmapper_
Initialize ModuleMapper.