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
SvtRawDataAnaProcessor.h
Go to the documentation of this file.
1#ifndef __RAWSVTHIT_ANAPROCESSOR_H__
2#define __RAWSVTHIT_ANAPROCESSOR_H__
3
4//HPSTR
5#include "HpsEvent.h"
6#include "RawSvtHit.h"
7#include "RawSvtHitHistos.h"
8#include "AnaHelpers.h"
9#include "Event.h"
10#include "BaseSelector.h"
11#include "RawSvtHitHistos.h"
12#include "EventHeader.h"
13#include "VTPData.h"
14#include "TSData.h"
15#include "CalCluster.h"
16#include "Track.h"
17#include "TrackerHit.h"
18
19//#include <IMPL/TrackerHitImpl.h>"
20//ROOT
21
22#include "Processor.h"
23#include "TClonesArray.h"
24#include "TBranch.h"
25#include "TTree.h"
26#include "TFile.h"
27#include "TF1.h"
28#include "TGraphErrors.h"
29#include "TAxis.h"
30#include "TROOT.h"
31#include "TPad.h"
32#include "TCanvas.h"
33#include "TLegend.h"
34
35class TTree;
36
37
39
40 public:
41
42 SvtRawDataAnaProcessor(const std::string& name, Process& process);
43
45
46 virtual bool process(IEvent* ievent);
47
48 virtual void initialize(TTree* tree);
49
50 virtual void sample(RawSvtHit* thisHit, std::string word, IEvent* ievent, long t,int i);
51
52 virtual TF1* fourPoleFitFunction(std::string word, int caser);
53
54 virtual float str_to_float(std::string word);
55
56 float reverseEngineerTime(float ti, long t);
57
58 //virtual int maximum(int arr[]);
59
60 virtual void finalize();
61
62 virtual void configure(const ParameterSet& parameters);
63
64 private:
65
66 //Containers to hold histogrammer info
68 std::string histCfgFilename_;
69 Float_t TimeRef_;
70 Float_t AmpRef_;
72 int * adcs_;
74 int readout[3]={0,0,0};
75
76 float times1_[2][4][512][3];
77 float times2_[8][4][640][3];
78 float baseErr1_[2][4][512][12];
79 float baseErr2_[8][4][640][12];
80 std::vector<std::string> MatchList_;
81
82 TTree* tree_;
83 TBranch* bsvtHits_{nullptr};
84 TBranch* bvtpBank_{nullptr};
85 TBranch* btsBank_{nullptr};
86 TBranch* brecoClu_{nullptr};
87 TBranch* bPart_{nullptr};
88 TBranch* bTrk_{nullptr};
89
90 TBranch* bevH_;
91
92 std::vector<RawSvtHit*> * svtHits_{};
95 std::vector<CalCluster*>* recoClu_{};
96 std::vector<Track*>* Trk_{};
97 std::vector<Particle*>* Part_{};
98 //std::vector<Track> Trk_{};
100
101 std::string anaName_{"rawSvtHitAna"};
102 std::string svtHitColl_{"RotatedHelicalTrackHits"};
103 std::vector<std::string> regionSelections_;
104 std::map<std::string, std::shared_ptr<BaseSelector>> reg_selectors_;
105 std::map<std::string,std::shared_ptr<RawSvtHitHistos>> reg_histos_;
106 typedef std::map<std::string,std::shared_ptr<RawSvtHitHistos>>::iterator reg_it;
107 std::vector<std::string> regions_;
108 std::string baselineFile_;
109 std::string timeProfiles_;
110 int tphase_{6};
111
112 //Debug Level
113 int debug_{0};
114
115};
116
117#endif
Helper class for hipster analysis.
Class used to encapsulate event information.
Class defining methods used to access event information and data collections.
Base classes for all user event processing components to extend.
Class used to encapsulate raw svt hit information.
Class used to decode TS words.
Class used to encapsulate track information.
Class used to encapsulate tracker hit information.
Class used to decode VTP 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
std::vector< CalCluster * > * recoClu_
std::vector< std::string > MatchList_
virtual void sample(RawSvtHit *thisHit, std::string word, IEvent *ievent, long t, int i)
float baseErr2_[8][4][640][12]
virtual void configure(const ParameterSet &parameters)
Callback for the Processor to configure itself from the given set of parameters.
virtual void finalize()
Callback for the Processor to take any necessary action when the processing of events finishes,...
float reverseEngineerTime(float ti, long t)
std::vector< Particle * > * Part_
std::vector< std::string > regionSelections_
virtual void initialize(TTree *tree)
Callback for the Processor to take any necessary action when the processing of events starts,...
std::map< std::string, std::shared_ptr< RawSvtHitHistos > >::iterator reg_it
float baseErr1_[2][4][512][12]
std::vector< RawSvtHit * > * svtHits_
virtual float str_to_float(std::string word)
std::map< std::string, std::shared_ptr< RawSvtHitHistos > > reg_histos_
std::map< std::string, std::shared_ptr< BaseSelector > > reg_selectors_
virtual TF1 * fourPoleFitFunction(std::string word, int caser)
std::vector< Track * > * Trk_
std::vector< std::string > regions_