RecoTracker
TkTrackingRegions
plugins
VertexBeamspotOrigins.h
Go to the documentation of this file.
1
#ifndef RecoTracker_TkTrackingRegions_VertexBeamspotOrigins_h
2
#define RecoTracker_TkTrackingRegions_VertexBeamspotOrigins_h
3
4
#include "
FWCore/Framework/interface/Event.h
"
5
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
6
#include "
FWCore/ParameterSet/interface/ParameterSetDescription.h
"
7
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
8
#include "
DataFormats/BeamSpot/interface/BeamSpot.h
"
9
#include "
DataFormats/VertexReco/interface/Vertex.h
"
10
#include "
DataFormats/VertexReco/interface/VertexFwd.h
"
11
12
#include <vector>
13
#include <utility>
14
15
class
VertexBeamspotOrigins
{
16
public
:
17
using
Origins
= std::vector<std::pair<GlobalPoint, float> >;
// (origin, half-length in z)
18
enum class
OperationMode
{
BEAM_SPOT_FIXED
,
BEAM_SPOT_SIGMA
,
VERTICES_FIXED
,
VERTICES_SIGMA
};
19
20
VertexBeamspotOrigins
(
const
edm::ParameterSet
& regPSet,
edm::ConsumesCollector
&& iC)
21
:
VertexBeamspotOrigins
(regPSet, iC) {}
22
VertexBeamspotOrigins
(
const
edm::ParameterSet
& regPSet,
edm::ConsumesCollector
& iC);
23
~VertexBeamspotOrigins
() =
default
;
24
25
static
void
fillDescriptions
(
edm::ParameterSetDescription
&
desc
,
26
const
std::string
& defaultBeamSpot =
"offlineBeamSpot"
,
27
const
std::string
& defaultVertex =
"firstStepPrimaryVertices"
,
28
int
defaultMaxVertices = -1);
29
30
Origins
origins
(
const
edm::Event
&
iEvent
)
const
;
31
32
private
:
33
OperationMode
m_operationMode
;
34
35
edm::EDGetTokenT<reco::VertexCollection>
token_vertex
;
36
edm::EDGetTokenT<reco::BeamSpot>
token_beamSpot
;
37
38
int
m_maxNVertices
;
39
40
float
m_nSigmaZBeamSpot
;
41
float
m_zErrorBeamSpot
;
42
float
m_nSigmaZVertex
;
43
float
m_zErrorVertex
;
44
};
45
46
#endif
VertexBeamspotOrigins::m_operationMode
OperationMode m_operationMode
Definition:
VertexBeamspotOrigins.h:33
VertexBeamspotOrigins::OperationMode::BEAM_SPOT_FIXED
VertexBeamspotOrigins::fillDescriptions
static void fillDescriptions(edm::ParameterSetDescription &desc, const std::string &defaultBeamSpot="offlineBeamSpot", const std::string &defaultVertex="firstStepPrimaryVertices", int defaultMaxVertices=-1)
Definition:
VertexBeamspotOrigins.cc:38
VertexBeamspotOrigins::~VertexBeamspotOrigins
~VertexBeamspotOrigins()=default
VertexBeamspotOrigins::OperationMode::VERTICES_SIGMA
edm::EDGetTokenT< reco::VertexCollection >
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:52
VertexBeamspotOrigins::OperationMode::BEAM_SPOT_SIGMA
VertexBeamspotOrigins::token_vertex
edm::EDGetTokenT< reco::VertexCollection > token_vertex
Definition:
VertexBeamspotOrigins.h:35
BeamSpot.h
VertexBeamspotOrigins::token_beamSpot
edm::EDGetTokenT< reco::BeamSpot > token_beamSpot
Definition:
VertexBeamspotOrigins.h:36
VertexBeamspotOrigins::m_zErrorVertex
float m_zErrorVertex
Definition:
VertexBeamspotOrigins.h:43
VertexBeamspotOrigins::Origins
std::vector< std::pair< GlobalPoint, float > > Origins
Definition:
VertexBeamspotOrigins.h:17
VertexBeamspotOrigins::OperationMode::VERTICES_FIXED
ParameterSetDescription.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
Vertex.h
VertexBeamspotOrigins::m_maxNVertices
int m_maxNVertices
Definition:
VertexBeamspotOrigins.h:38
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
VertexBeamspotOrigins::OperationMode
OperationMode
Definition:
VertexBeamspotOrigins.h:18
VertexBeamspotOrigins::m_zErrorBeamSpot
float m_zErrorBeamSpot
Definition:
VertexBeamspotOrigins.h:41
iEvent
int iEvent
Definition:
GenABIO.cc:224
VertexBeamspotOrigins::m_nSigmaZBeamSpot
float m_nSigmaZBeamSpot
Definition:
VertexBeamspotOrigins.h:40
VertexBeamspotOrigins::m_nSigmaZVertex
float m_nSigmaZVertex
Definition:
VertexBeamspotOrigins.h:42
VertexFwd.h
submitPVResolutionJobs.desc
string desc
Definition:
submitPVResolutionJobs.py:251
VertexBeamspotOrigins
Definition:
VertexBeamspotOrigins.h:15
ConsumesCollector.h
ParameterSet.h
VertexBeamspotOrigins::VertexBeamspotOrigins
VertexBeamspotOrigins(const edm::ParameterSet ®PSet, edm::ConsumesCollector &&iC)
Definition:
VertexBeamspotOrigins.h:20
edm::Event
Definition:
Event.h:73
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
VertexBeamspotOrigins::origins
Origins origins(const edm::Event &iEvent) const
Definition:
VertexBeamspotOrigins.cc:53
Generated for CMSSW Reference Manual by
1.8.16