Main Page
Namespaces
Classes
Package Documentation
EventFilter
Phase2TrackerRawToDigi
plugins
Phase2TrackerDigiProducer.h
Go to the documentation of this file.
1
#ifndef EventFilter_Phase2TrackerRawToDigi_Phase2TrackerDigiProducer_H
2
#define EventFilter_Phase2TrackerRawToDigi_Phase2TrackerDigiProducer_H
3
4
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
5
#include "
FWCore/Framework/interface/EDProducer.h
"
6
#include "
FWCore/Framework/interface/Event.h
"
7
#include "
FWCore/Framework/interface/EventSetup.h
"
8
#include "
FWCore/Framework/interface/ESHandle.h
"
9
#include "
FWCore/Framework/interface/MakerMacros.h
"
10
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
11
#include "
DataFormats/Common/interface/Handle.h
"
12
#include "
DataFormats/Common/interface/DetSetVector.h
"
13
#include "
DataFormats/DetId/interface/DetIdCollection.h
"
14
#include "
DataFormats/FEDRawData/interface/FEDRawDataCollection.h
"
15
#include "
CondFormats/SiStripObjects/interface/Phase2TrackerCabling.h
"
16
#include "
DataFormats/Phase2TrackerDigi/interface/Phase2TrackerDigi.h
"
17
#include <cstdint>
18
#include <iostream>
19
#include <string>
20
#include <vector>
21
22
namespace
Phase2Tracker
{
23
24
class
Phase2TrackerDigiProducer
:
public
edm::EDProducer
25
{
26
public
:
28
Phase2TrackerDigiProducer
(
const
edm::ParameterSet
&
pset
);
30
~Phase2TrackerDigiProducer
()
override
;
31
void
beginJob
()
override
;
32
void
beginRun
(
edm::Run
const
&,
edm::EventSetup
const
&)
override
;
33
void
produce
(
edm::Event
&,
const
edm::EventSetup
&)
override
;
34
void
endJob
()
override
;
35
36
private
:
37
unsigned
int
runNumber_
;
38
edm::EDGetTokenT<FEDRawDataCollection>
token_
;
39
const
Phase2TrackerCabling
*
cabling_
;
40
uint32_t
cacheId_
;
41
DetIdCollection
detids_
;
42
class
Registry
{
43
public
:
45
Registry
(uint32_t aDetid, uint16_t firstStrip,
size_t
indexInVector, uint16_t numberOfDigis) :
46
detid
(aDetid),
first
(firstStrip),
index
(indexInVector),
length
(numberOfDigis) {}
48
bool
operator<
(
const
Registry
&
other
)
const
{
return
(
detid
!= other.
detid
?
detid
< other.
detid
:
first
< other.
first
);}
50
uint32_t
detid
;
51
uint16_t
first
;
52
size_t
index
;
53
uint16_t
length
;
54
};
55
std::vector<Registry>
proc_work_registry_
;
56
std::vector<Phase2TrackerDigi>
proc_work_digis_
;
57
};
58
}
59
#endif // EventFilter_Phase2TrackerRawToDigi_Phase2TrackerDigiProducer_H
Phase2Tracker::Phase2TrackerDigiProducer::cabling_
const Phase2TrackerCabling * cabling_
Definition:
Phase2TrackerDigiProducer.h:39
Phase2Tracker::Phase2TrackerDigiProducer::cacheId_
uint32_t cacheId_
Definition:
Phase2TrackerDigiProducer.h:40
Event.h
MakerMacros.h
edm::EDCollection< DetId >
EventSetup.h
Phase2Tracker::Phase2TrackerDigiProducer::Registry::detid
uint32_t detid
public data members
Definition:
Phase2TrackerDigiProducer.h:50
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
FEDRawDataCollection.h
Phase2Tracker::Phase2TrackerDigiProducer::runNumber_
unsigned int runNumber_
Definition:
Phase2TrackerDigiProducer.h:37
Phase2Tracker::Phase2TrackerDigiProducer::Registry
Definition:
Phase2TrackerDigiProducer.h:42
Phase2Tracker::Phase2TrackerDigiProducer::detids_
DetIdCollection detids_
Definition:
Phase2TrackerDigiProducer.h:41
Phase2Tracker::Phase2TrackerDigiProducer::token_
edm::EDGetTokenT< FEDRawDataCollection > token_
Definition:
Phase2TrackerDigiProducer.h:38
edm::EDGetTokenT< FEDRawDataCollection >
Frameworkfwd.h
edm::EDProducer
Definition:
EDProducer.h:35
Phase2Tracker
Definition:
Phase2TrackerFEDBuffer.h:12
DetSetVector.h
ParameterSet.h
Phase2TrackerDigi.h
DetIdCollection.h
Phase2Tracker::Phase2TrackerDigiProducer::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition:
Phase2TrackerDigiProducer.cc:55
trackingPlots.other
other
Definition:
trackingPlots.py:1436
Phase2Tracker::Phase2TrackerDigiProducer::proc_work_digis_
std::vector< Phase2TrackerDigi > proc_work_digis_
Definition:
Phase2TrackerDigiProducer.h:56
ESHandle.h
edm::EventSetup
Definition:
EventSetup.h:54
Phase2Tracker::Phase2TrackerDigiProducer::proc_work_registry_
std::vector< Registry > proc_work_registry_
Definition:
Phase2TrackerDigiProducer.h:55
Phase2Tracker::Phase2TrackerDigiProducer::Registry::first
uint16_t first
Definition:
Phase2TrackerDigiProducer.h:51
Phase2Tracker::Phase2TrackerDigiProducer::beginJob
void beginJob() override
Definition:
Phase2TrackerDigiProducer.cc:39
EDProducer.h
Phase2Tracker::Phase2TrackerDigiProducer::Phase2TrackerDigiProducer
Phase2TrackerDigiProducer(const edm::ParameterSet &pset)
constructor
Definition:
Phase2TrackerDigiProducer.cc:25
Phase2Tracker::Phase2TrackerDigiProducer::beginRun
void beginRun(edm::Run const &, edm::EventSetup const &) override
Definition:
Phase2TrackerDigiProducer.cc:43
Phase2TrackerCabling
Definition:
Phase2TrackerCabling.h:9
Phase2Tracker::Phase2TrackerDigiProducer::Registry::operator<
bool operator<(const Registry &other) const
< operator to sort registries
Definition:
Phase2TrackerDigiProducer.h:48
Phase2Tracker::Phase2TrackerDigiProducer::Registry::index
size_t index
Definition:
Phase2TrackerDigiProducer.h:52
Phase2Tracker::Phase2TrackerDigiProducer::endJob
void endJob() override
Definition:
Phase2TrackerDigiProducer.cc:51
Phase2Tracker::Phase2TrackerDigiProducer::~Phase2TrackerDigiProducer
~Phase2TrackerDigiProducer() override
default constructor
Definition:
Phase2TrackerDigiProducer.cc:35
Phase2Tracker::Phase2TrackerDigiProducer::Registry::length
uint16_t length
Definition:
Phase2TrackerDigiProducer.h:53
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::Event
Definition:
Event.h:70
Phase2TrackerCabling.h
Phase2Tracker::Phase2TrackerDigiProducer
Definition:
Phase2TrackerDigiProducer.h:24
Phase2Tracker::Phase2TrackerDigiProducer::Registry::Registry
Registry(uint32_t aDetid, uint16_t firstStrip, size_t indexInVector, uint16_t numberOfDigis)
constructor
Definition:
Phase2TrackerDigiProducer.h:45
edm::Run
Definition:
Run.h:44
Handle.h
Generated for CMSSW Reference Manual by
1.8.11