Main Page
Namespaces
Classes
Package Documentation
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
18
using
Origins
= std::vector< std::pair< GlobalPoint, float > >;
// (origin, half-length in z)
19
enum class
OperationMode
{
BEAM_SPOT_FIXED
,
BEAM_SPOT_SIGMA
,
VERTICES_FIXED
,
VERTICES_SIGMA
};
20
21
VertexBeamspotOrigins
(
const
edm::ParameterSet
& regPSet,
edm::ConsumesCollector
&& iC):
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
47
#endif
VertexBeamspotOrigins::origins
Origins origins(const edm::Event &iEvent) const
Definition:
VertexBeamspotOrigins.cc:44
VertexBeamspotOrigins::m_zErrorBeamSpot
float m_zErrorBeamSpot
Definition:
VertexBeamspotOrigins.h:41
VertexBeamspotOrigins::VertexBeamspotOrigins
VertexBeamspotOrigins(const edm::ParameterSet ®PSet, edm::ConsumesCollector &&iC)
Definition:
VertexBeamspotOrigins.h:21
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
Event.h
VertexBeamspotOrigins::token_beamSpot
edm::EDGetTokenT< reco::BeamSpot > token_beamSpot
Definition:
VertexBeamspotOrigins.h:36
VertexBeamspotOrigins::Origins
std::vector< std::pair< GlobalPoint, float > > Origins
Definition:
VertexBeamspotOrigins.h:18
VertexBeamspotOrigins::fillDescriptions
static void fillDescriptions(edm::ParameterSetDescription &desc, const std::string &defaultBeamSpot="offlineBeamSpot", const std::string &defaultVertex="firstStepPrimaryVertices", int defaultMaxVertices=-1)
Definition:
VertexBeamspotOrigins.cc:31
VertexFwd.h
VertexBeamspotOrigins::m_maxNVertices
int m_maxNVertices
Definition:
VertexBeamspotOrigins.h:38
VertexBeamspotOrigins::~VertexBeamspotOrigins
~VertexBeamspotOrigins()=default
edm::EDGetTokenT< reco::VertexCollection >
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:50
ParameterSet.h
iEvent
int iEvent
Definition:
GenABIO.cc:230
VertexBeamspotOrigins::m_nSigmaZVertex
float m_nSigmaZVertex
Definition:
VertexBeamspotOrigins.h:42
ParameterSetDescription.h
Vertex.h
VertexBeamspotOrigins::token_vertex
edm::EDGetTokenT< reco::VertexCollection > token_vertex
Definition:
VertexBeamspotOrigins.h:35
VertexBeamspotOrigins::m_operationMode
OperationMode m_operationMode
Definition:
VertexBeamspotOrigins.h:33
VertexBeamspotOrigins::m_nSigmaZBeamSpot
float m_nSigmaZBeamSpot
Definition:
VertexBeamspotOrigins.h:40
VertexBeamspotOrigins::OperationMode
OperationMode
Definition:
VertexBeamspotOrigins.h:19
VertexBeamspotOrigins::m_zErrorVertex
float m_zErrorVertex
Definition:
VertexBeamspotOrigins.h:43
BeamSpot.h
VertexBeamspotOrigins::OperationMode::BEAM_SPOT_SIGMA
edm::ParameterSet
Definition:
ParameterSet.h:36
VertexBeamspotOrigins
Definition:
VertexBeamspotOrigins.h:15
VertexBeamspotOrigins::OperationMode::VERTICES_SIGMA
edm::Event
Definition:
Event.h:70
VertexBeamspotOrigins::OperationMode::BEAM_SPOT_FIXED
ConsumesCollector.h
edm::ConsumesCollector
Definition:
ConsumesCollector.h:39
VertexBeamspotOrigins::OperationMode::VERTICES_FIXED
Generated for CMSSW Reference Manual by
1.8.11