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
RecoHitAnaProcessor.h
Go to the documentation of this file.
1#ifndef __RECOHIT_ANAPROCESSOR_H__
2#define __RECOHIT_ANAPROCESSOR_H__
3
4// HPSTR
5#include "HpsEvent.h"
6#include "Collections.h"
7#include "Track.h"
8#include "TrackerHit.h"
9#include "RecoHitAnaHistos.h"
10
11
12// ROOT
13#include "Processor.h"
14#include "TClonesArray.h"
15#include "TBranch.h"
16#include "TTree.h"
17#include "TFile.h"
18
19class TTree;
20
26
27 public:
34 RecoHitAnaProcessor(const std::string& name, Process& process);
35
37
45 virtual bool process(IEvent* ievent);
46
52 virtual void initialize(TTree* tree);
53
58 virtual void finalize();
59
65 virtual void configure(const ParameterSet& parameters);
66
67 private:
68
71 std::string histCfgFilename_;
72
74 TTree* tree_;
75 TBranch* btrkrHits_{nullptr};
76 TBranch* btracks_{nullptr};
77 TBranch* becalHits_{nullptr};
78 TBranch* becalClusters_{nullptr};
79
80 std::vector<TrackerHit*> * trkrHits_{};
81 std::vector<Track*> * tracks_{};
82 std::vector<CalHit*> * ecalHits_{};
83 std::vector<CalCluster*> * ecalClusters_{};
84
85 std::string anaName_{"recoHitAna"};
86 std::string trkColl_{"GBLTracks"};
87 std::string trkrHitColl_{"RotatedHelicalTrackHits"};
88 std::string ecalHitColl_{"EcalCalHits"};
89 std::string ecalClusColl_{"EcalClustersCorr"};
90
91 int debug_{0};
92
93};
94
95
96#endif
Base classes for all user event processing components to extend.
Class used to encapsulate track information.
Class used to encapsulate tracker hit information.
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
Insert description here. more details.
TBranch * becalClusters_
description
RecoHitAnaHistos * histos
std::string trkrHitColl_
description
std::string ecalHitColl_
description
std::vector< CalCluster * > * ecalClusters_
description
std::string anaName_
description
virtual void configure(const ParameterSet &parameters)
description
virtual void finalize()
description
virtual void initialize(TTree *tree)
description
std::vector< CalHit * > * ecalHits_
description
TBranch * becalHits_
description
TBranch * btrkrHits_
description
std::string histCfgFilename_
description
TBranch * btracks_
description
std::string trkColl_
description
std::vector< TrackerHit * > * trkrHits_
description
std::string ecalClusColl_
description
std::vector< Track * > * tracks_
description