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.
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Functions
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
~
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
Files
File List
File Members
All
c
d
f
i
j
l
m
n
p
r
s
u
Functions
c
d
f
i
m
n
r
s
u
Variables
Typedefs
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
Loading...
Searching...
No Matches
processors
include
TridentAnaProcessor.h
Go to the documentation of this file.
1
#ifndef __TRIDENT_ANAPROCESSOR_H__
2
#define __TRIDENT_ANAPROCESSOR_H__
3
4
5
//HPSTR
6
#include "
HpsEvent.h
"
7
#include "
Collections.h
"
8
#include "
EventHeader.h
"
9
#include "
Vertex.h
"
10
#include "
Track.h
"
11
#include "
TrackerHit.h
"
12
#include "
Particle.h
"
13
#include "
Processor.h
"
14
#include "
BaseSelector.h
"
15
#include "
TrackHistos.h
"
16
#include "
FlatTupleMaker.h
"
17
#include "
AnaHelpers.h
"
18
19
20
//ROOT
21
#include "TFile.h"
22
#include "TTree.h"
23
#include "TBranch.h"
24
#include "TVector3.h"
25
26
//C++
27
#include <memory>
28
29
class
TridentAnaProcessor
:
public
Processor
{
30
31
public
:
32
TridentAnaProcessor
(
const
std::string& name,
Process
&
process
);
33
~TridentAnaProcessor
();
34
virtual
bool
process
(
IEvent
* ievent);
35
36
virtual
void
initialize
(TTree* tree);
37
38
virtual
void
finalize
();
39
40
virtual
void
configure
(
const
ParameterSet
& parameters);
41
42
private
:
43
44
std::shared_ptr<BaseSelector>
vtxSelector
;
45
std::shared_ptr<BaseSelector>
trkSelector
;
46
std::vector<std::string>
regionSelections_
;
47
48
std::string
selectionCfg_
;
49
std::string
trkSelCfg_
;
50
51
52
TBranch*
bfspart_
{
nullptr
};
53
TBranch*
bvtxs_
{
nullptr
};
54
TBranch*
btrks_
{
nullptr
};
55
TBranch*
bevth_
{
nullptr
};
56
57
std::vector<Vertex*> *
vtxs_
{};
58
std::vector<Particle*> *
fspart_
{};
59
std::vector<Track*> *
trks_
{};
60
EventHeader
*
evth_
{
nullptr
};
61
62
std::string
anaName_
{
"vtxAna"
};
63
std::string
vtxColl_
{
"Vertices"
};
64
std::string
fspartColl_
{
"FinalStateParticles"
};
65
std::string
trkColl_
{
"GBLTracks"
};
66
TTree*
tree_
{
nullptr
};
67
68
std::shared_ptr<TrackHistos>
_vtx_histos
;
69
70
//Duplicate.. We can make a single class.. ?
71
std::map<std::string, std::shared_ptr<BaseSelector> >
_reg_vtx_selectors
;
72
std::map<std::string, std::shared_ptr<TrackHistos> >
_reg_vtx_histos
;
73
std::map<std::string, std::shared_ptr<FlatTupleMaker> >
_reg_tuples
;
74
75
std::vector<std::string>
_regions
;
76
77
78
typedef
std::map<std::string,std::shared_ptr<TrackHistos> >::iterator
reg_it
;
79
80
std::string
histoCfg_
{
""
};
81
double
timeOffset_
{-999};
82
//In GeV. Default is 2016 value;
83
double
beamE_
{2.3};
84
int
isData
{0};
85
std::shared_ptr<AnaHelpers>
_ah
;
86
87
88
89
//Debug level
90
int
debug_
{0};
91
};
29
class
TridentAnaProcessor
:
public
Processor
{
…
};
92
93
#endif
AnaHelpers.h
Helper class for hipster analysis.
BaseSelector.h
Collections.h
EventHeader.h
Class used to encapsulate event information.
FlatTupleMaker.h
HpsEvent.h
Particle.h
Class used to encapsulate information about a particle.
Processor.h
Base classes for all user event processing components to extend.
TrackHistos.h
Track.h
Class used to encapsulate track information.
TrackerHit.h
Class used to encapsulate tracker hit information.
Vertex.h
Class used to encapsulate Vertex information.
EventHeader
Definition
EventHeader.h:22
IEvent
Definition
IEvent.h:7
ParameterSet
description
Definition
ParameterSet.h:22
Process
Definition
Process.h:29
Processor
Base class for all event processing components.
Definition
Processor.h:34
Processor::process
virtual bool process()
Process the histograms and generate analysis output.
Definition
Processor.h:95
TridentAnaProcessor
Definition
TridentAnaProcessor.h:29
TridentAnaProcessor::histoCfg_
std::string histoCfg_
Definition
TridentAnaProcessor.h:80
TridentAnaProcessor::debug_
int debug_
Definition
TridentAnaProcessor.h:90
TridentAnaProcessor::timeOffset_
double timeOffset_
Definition
TridentAnaProcessor.h:81
TridentAnaProcessor::selectionCfg_
std::string selectionCfg_
Definition
TridentAnaProcessor.h:48
TridentAnaProcessor::anaName_
std::string anaName_
Definition
TridentAnaProcessor.h:62
TridentAnaProcessor::initialize
virtual void initialize(TTree *tree)
Callback for the Processor to take any necessary action when the processing of events starts,...
TridentAnaProcessor::~TridentAnaProcessor
~TridentAnaProcessor()
TridentAnaProcessor::TridentAnaProcessor
TridentAnaProcessor(const std::string &name, Process &process)
TridentAnaProcessor::regionSelections_
std::vector< std::string > regionSelections_
Definition
TridentAnaProcessor.h:46
TridentAnaProcessor::finalize
virtual void finalize()
Callback for the Processor to take any necessary action when the processing of events finishes,...
TridentAnaProcessor::_reg_vtx_histos
std::map< std::string, std::shared_ptr< TrackHistos > > _reg_vtx_histos
Definition
TridentAnaProcessor.h:72
TridentAnaProcessor::tree_
TTree * tree_
Definition
TridentAnaProcessor.h:66
TridentAnaProcessor::configure
virtual void configure(const ParameterSet ¶meters)
Callback for the Processor to configure itself from the given set of parameters.
TridentAnaProcessor::bvtxs_
TBranch * bvtxs_
Definition
TridentAnaProcessor.h:53
TridentAnaProcessor::beamE_
double beamE_
Definition
TridentAnaProcessor.h:83
TridentAnaProcessor::trks_
std::vector< Track * > * trks_
Definition
TridentAnaProcessor.h:59
TridentAnaProcessor::_reg_vtx_selectors
std::map< std::string, std::shared_ptr< BaseSelector > > _reg_vtx_selectors
Definition
TridentAnaProcessor.h:71
TridentAnaProcessor::reg_it
std::map< std::string, std::shared_ptr< TrackHistos > >::iterator reg_it
Definition
TridentAnaProcessor.h:78
TridentAnaProcessor::vtxSelector
std::shared_ptr< BaseSelector > vtxSelector
Definition
TridentAnaProcessor.h:44
TridentAnaProcessor::fspartColl_
std::string fspartColl_
Definition
TridentAnaProcessor.h:64
TridentAnaProcessor::_vtx_histos
std::shared_ptr< TrackHistos > _vtx_histos
Definition
TridentAnaProcessor.h:68
TridentAnaProcessor::trkSelCfg_
std::string trkSelCfg_
Definition
TridentAnaProcessor.h:49
TridentAnaProcessor::evth_
EventHeader * evth_
Definition
TridentAnaProcessor.h:60
TridentAnaProcessor::process
virtual bool process(IEvent *ievent)
Process the event and put new data products into it.
TridentAnaProcessor::_reg_tuples
std::map< std::string, std::shared_ptr< FlatTupleMaker > > _reg_tuples
Definition
TridentAnaProcessor.h:73
TridentAnaProcessor::_ah
std::shared_ptr< AnaHelpers > _ah
Definition
TridentAnaProcessor.h:85
TridentAnaProcessor::bevth_
TBranch * bevth_
Definition
TridentAnaProcessor.h:55
TridentAnaProcessor::trkColl_
std::string trkColl_
Definition
TridentAnaProcessor.h:65
TridentAnaProcessor::btrks_
TBranch * btrks_
Definition
TridentAnaProcessor.h:54
TridentAnaProcessor::vtxColl_
std::string vtxColl_
Definition
TridentAnaProcessor.h:63
TridentAnaProcessor::trkSelector
std::shared_ptr< BaseSelector > trkSelector
Definition
TridentAnaProcessor.h:45
TridentAnaProcessor::fspart_
std::vector< Particle * > * fspart_
Definition
TridentAnaProcessor.h:58
TridentAnaProcessor::vtxs_
std::vector< Vertex * > * vtxs_
Definition
TridentAnaProcessor.h:57
TridentAnaProcessor::bfspart_
TBranch * bfspart_
Definition
TridentAnaProcessor.h:52
TridentAnaProcessor::_regions
std::vector< std::string > _regions
Definition
TridentAnaProcessor.h:75
TridentAnaProcessor::isData
int isData
Definition
TridentAnaProcessor.h:84
Generated by
1.9.8