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
Apv25RoXtalkAnaProcessor.h
Go to the documentation of this file.
1#ifndef __APV25ROXTALK_ANAPROCESSOR_H__
2#define __APV25ROXTALK_ANAPROCESSOR_H__
3
4// HPSTR
5#include "Processor.h"
6#include "HpsEvent.h"
7#include "Collections.h"
8#include "EventHeader.h"
9#include "RawSvtHit.h"
10#include "ModuleMapper.h"
11// #include "Apv25XtalkAnaHistos.h"
12
13// ROOT
14#include "TClonesArray.h"
15#include "TBranch.h"
16#include "TH1D.h"
17#include "TH2D.h"
18#include "TGraph.h"
19#include "TTree.h"
20#include "TFile.h"
21#include "TString.h"
22
23class TTree;
24
30
31 public:
38 Apv25RoXtalkAnaProcessor(const std::string& name, Process& process);
39
41
49 virtual bool process(IEvent* ievent);
50
56 virtual void initialize(TTree* tree);
57
62 virtual void finalize();
63
69 virtual void configure(const ParameterSet& parameters);
70
71
72 private:
78 void emulateApv25Buff(int buffIter);
79
80 //Containers to hold histogrammer info
81 //RecoHitAnaHistos* histos{nullptr};
82
83 std::string histCfgFilename_;
84 ModuleMapper * modMap_{nullptr};
85
87 TTree* tree_;
88 TBranch* bevth_{nullptr};
89 TBranch* brawHits_{nullptr};
90
91 EventHeader* evth_{nullptr};
92 std::vector<RawSvtHit*> * rawHits_{};
93
94 std::string anaName_{"apvRoXtalkAna"};
95 std::string rawHitColl_{"SVTRawTrackerHits"};
96 int syncPhase_{224};
97 int trigPhase_{8};
98 int trigDel_{6696};
99
100 std::vector<long> reads;
101 std::vector<long> readEvs;
102 std::vector<long> eventTimes;
103 std::vector<int> hitMultis;
104 std::vector<int> lFEBMultis;
105 double lFEBrms[210];
106 double lLowCut;
107 double lHighCut;
108 std::vector<int> hFEBMultis;
109 double hFEBrms[210];
110 double hLowCut;
111 double hHighCut;
112 double sps[210];
113
114 int debug_{0};
115
116};
117
118
119#endif
Class used to encapsulate event information.
Base classes for all user event processing components to extend.
Class used to encapsulate raw svt hit information.
Insert description here. more details.
std::string rawHitColl_
description
std::string anaName_
description
std::vector< int > hitMultis
description
virtual void configure(const ParameterSet &parameters)
Configure using given parameters.
virtual void finalize()
description
std::vector< RawSvtHit * > * rawHits_
description
virtual void initialize(TTree *tree)
description
std::vector< long > eventTimes
description
std::vector< long > readEvs
description
std::vector< int > lFEBMultis
description
EventHeader * evth_
description
std::string histCfgFilename_
description
void emulateApv25Buff(int buffIter)
description
std::vector< long > reads
description
std::vector< int > hFEBMultis
description
ModuleMapper * modMap_
description
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