src
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_zErrorBeamSpot
float m_zErrorBeamSpot
Definition:
VertexBeamspotOrigins.h:41
Vertex.h
VertexBeamspotOrigins::VertexBeamspotOrigins
VertexBeamspotOrigins(const edm::ParameterSet ®PSet, edm::ConsumesCollector &&iC)
Definition:
VertexBeamspotOrigins.h:20
Event.h
VertexBeamspotOrigins::token_beamSpot
edm::EDGetTokenT< reco::BeamSpot > token_beamSpot
Definition:
VertexBeamspotOrigins.h:36
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::Origins
std::vector< std::pair< GlobalPoint, float > > Origins
Definition:
VertexBeamspotOrigins.h:17
VertexFwd.h
VertexBeamspotOrigins::m_maxNVertices
int m_maxNVertices
Definition:
VertexBeamspotOrigins.h:38
VertexBeamspotOrigins::~VertexBeamspotOrigins
~VertexBeamspotOrigins()=default
edm::EDGetTokenT< reco::VertexCollection >
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:52
ParameterSet.h
iEvent
int iEvent
Definition:
GenABIO.cc:224
VertexBeamspotOrigins::m_nSigmaZVertex
float m_nSigmaZVertex
Definition:
VertexBeamspotOrigins.h:42
ParameterSetDescription.h
submitPVResolutionJobs.desc
string desc
Definition:
submitPVResolutionJobs.py:251
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:18
VertexBeamspotOrigins::m_zErrorVertex
float m_zErrorVertex
Definition:
VertexBeamspotOrigins.h:43
VertexBeamspotOrigins::origins
Origins origins(const edm::Event &iEvent) const
Definition:
VertexBeamspotOrigins.cc:53
BeamSpot.h
VertexBeamspotOrigins::OperationMode::BEAM_SPOT_SIGMA
edm::ParameterSet
Definition:
ParameterSet.h:47
VertexBeamspotOrigins
Definition:
VertexBeamspotOrigins.h:15
VertexBeamspotOrigins::OperationMode::VERTICES_SIGMA
edm::Event
Definition:
Event.h:73
VertexBeamspotOrigins::OperationMode::BEAM_SPOT_FIXED
ConsumesCollector.h
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
VertexBeamspotOrigins::OperationMode::VERTICES_FIXED
Generated for CMSSW Reference Manual by
1.8.14