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
ClusterOnTrackAnaProcessor.h
Go to the documentation of this file.
1#ifndef __CLUSTERONTRACK_ANAPROCESSOR_H__
2#define __CLUSTERONTRACK_ANAPROCESSOR_H__
3
4//HPSTR
5#include "HpsEvent.h"
6#include "Track.h"
7#include "TrackerHit.h"
8
9
10//ROOT
11#include "ClusterHistos.h"
12#include "Processor.h"
13#include "TClonesArray.h"
14#include "TFile.h"
15
16class TTree;
17
23
24 public:
31 ClusterOnTrackAnaProcessor(const std::string& name, Process& process);
32
34
42 virtual bool process(IEvent* ievent);
43
49 virtual void initialize(TTree* tree);
50
55 virtual void finalize();
56
62 virtual void configure(const ParameterSet& parameters);
63
70 void setBaselineFits(const std::string& baselineFits, const std::string& baselineRun){
71 baselineFits_ = baselineFits;
72 baselineRun_ = baselineRun;
73 };
74
75
76 private:
77
79
81 TTree* tree_;
82
83 std::vector<Track*> *tracks_{};
84 TBranch* btracks_{nullptr};
85 std::vector<TrackerHit*> hits_{};
86 TBranch* bhits_{nullptr};
87
88 std::string anaName_{"hitsOnTrack_2D"};
89 std::string trkColl_{"GBLTracks"};
90 std::string baselineFits_{""};
91 std::string baselineRun_{""};
92
93 int debug_{0};
94
95};
96
97#endif
Base classes for all user event processing components to extend.
Class used to encapsulate track information.
Class used to encapsulate tracker hit information.
Insert description here. more details.
virtual void configure(const ParameterSet &parameters)
Configure using given parameters.
virtual void initialize(TTree *tree)
description
void setBaselineFits(const std::string &baselineFits, const std::string &baselineRun)
Set baseline fits.
std::vector< TrackerHit * > hits_
description
ClusterHistos * clusterHistos
description
std::vector< Track * > * tracks_
Containers for adding to the TTree.
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