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
public
:
27
Phase2TrackerDigiProducer
(
const
edm::ParameterSet
&
pset
);
29
~Phase2TrackerDigiProducer
()
override
;
30
void
beginJob
()
override
;
31
void
beginRun
(
edm::Run
const
&,
edm::EventSetup
const
&)
override
;
32
void
produce
(
edm::Event
&,
const
edm::EventSetup
&)
override
;
33
void
endJob
()
override
;
34
35
private
:
36
unsigned
int
runNumber_
;
37
edm::EDGetTokenT<FEDRawDataCollection>
token_
;
38
const
Phase2TrackerCabling
*
cabling_
;
39
uint32_t
cacheId_
;
40
DetIdCollection
detids_
;
41
class
Registry
{
42
public
:
44
Registry
(uint32_t aDetid, uint16_t firstStrip,
size_t
indexInVector, uint16_t numberOfDigis)
45
:
detid
(aDetid),
first
(firstStrip),
index
(indexInVector),
length
(numberOfDigis) {}
47
bool
operator<
(
const
Registry
&
other
)
const
{
48
return
(
detid
!=
other
.detid ?
detid
<
other
.detid :
first
<
other
.first);
49
}
51
uint32_t
detid
;
52
uint16_t
first
;
53
size_t
index
;
54
uint16_t
length
;
55
};
56
std::vector<Registry>
proc_work_registry_
;
57
std::vector<Phase2TrackerDigi>
proc_work_digis_
;
58
};
59
}
// namespace Phase2Tracker
60
#endif // EventFilter_Phase2TrackerRawToDigi_Phase2TrackerDigiProducer_H
Handle.h
EDProducer.h
ESHandle.h
Phase2TrackerCabling
Definition:
Phase2TrackerCabling.h:9
Phase2Tracker::Phase2TrackerDigiProducer::proc_work_digis_
std::vector< Phase2TrackerDigi > proc_work_digis_
Definition:
Phase2TrackerDigiProducer.h:57
edm::Run
Definition:
Run.h:45
edm::EDGetTokenT< FEDRawDataCollection >
Phase2Tracker::Phase2TrackerDigiProducer::Registry::first
uint16_t first
Definition:
Phase2TrackerDigiProducer.h:52
Phase2Tracker::Phase2TrackerDigiProducer::beginRun
void beginRun(edm::Run const &, edm::EventSetup const &) override
Definition:
Phase2TrackerDigiProducer.cc:36
Phase2Tracker::Phase2TrackerDigiProducer::Phase2TrackerDigiProducer
Phase2TrackerDigiProducer(const edm::ParameterSet &pset)
constructor
Definition:
Phase2TrackerDigiProducer.cc:25
Phase2Tracker::Phase2TrackerDigiProducer::Registry::operator<
bool operator<(const Registry &other) const
< operator to sort registries
Definition:
Phase2TrackerDigiProducer.h:47
MakerMacros.h
Phase2Tracker::Phase2TrackerDigiProducer::endJob
void endJob() override
Definition:
Phase2TrackerDigiProducer.cc:43
Phase2Tracker::Phase2TrackerDigiProducer::Registry::Registry
Registry(uint32_t aDetid, uint16_t firstStrip, size_t indexInVector, uint16_t numberOfDigis)
constructor
Definition:
Phase2TrackerDigiProducer.h:44
Phase2Tracker::Phase2TrackerDigiProducer::detids_
DetIdCollection detids_
Definition:
Phase2TrackerDigiProducer.h:40
trackingPlots.other
other
Definition:
trackingPlots.py:1465
Phase2Tracker::Phase2TrackerDigiProducer::beginJob
void beginJob() override
Definition:
Phase2TrackerDigiProducer.cc:34
Phase2Tracker::Phase2TrackerDigiProducer::Registry
Definition:
Phase2TrackerDigiProducer.h:41
Phase2Tracker::Phase2TrackerDigiProducer::token_
edm::EDGetTokenT< FEDRawDataCollection > token_
Definition:
Phase2TrackerDigiProducer.h:37
Phase2TrackerDigi.h
edm::ParameterSet
Definition:
ParameterSet.h:36
Event.h
FEDRawDataCollection.h
edm::EventSetup
Definition:
EventSetup.h:57
DetSetVector.h
Phase2TrackerCabling.h
Phase2Tracker::Phase2TrackerDigiProducer::runNumber_
unsigned int runNumber_
Definition:
Phase2TrackerDigiProducer.h:36
Phase2Tracker::Phase2TrackerDigiProducer::Registry::index
size_t index
Definition:
Phase2TrackerDigiProducer.h:53
edm::EDCollection< DetId >
Phase2Tracker::Phase2TrackerDigiProducer::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition:
Phase2TrackerDigiProducer.cc:45
Phase2Tracker::Phase2TrackerDigiProducer::proc_work_registry_
std::vector< Registry > proc_work_registry_
Definition:
Phase2TrackerDigiProducer.h:56
Phase2Tracker::Phase2TrackerDigiProducer::cabling_
const Phase2TrackerCabling * cabling_
Definition:
Phase2TrackerDigiProducer.h:38
Phase2Tracker::Phase2TrackerDigiProducer
Definition:
Phase2TrackerDigiProducer.h:24
Frameworkfwd.h
Phase2Tracker::Phase2TrackerDigiProducer::cacheId_
uint32_t cacheId_
Definition:
Phase2TrackerDigiProducer.h:39
EventSetup.h
edm::EDProducer
Definition:
EDProducer.h:36
Phase2Tracker::Phase2TrackerDigiProducer::Registry::length
uint16_t length
Definition:
Phase2TrackerDigiProducer.h:54
ParameterSet.h
Phase2Tracker::Phase2TrackerDigiProducer::Registry::detid
uint32_t detid
public data members
Definition:
Phase2TrackerDigiProducer.h:51
edm::Event
Definition:
Event.h:73
Phase2Tracker::Phase2TrackerDigiProducer::~Phase2TrackerDigiProducer
~Phase2TrackerDigiProducer() override
default constructor
Definition:
Phase2TrackerDigiProducer.cc:32
Phase2Tracker
Definition:
Phase2TrackerFEDBuffer.h:12
DetIdCollection.h
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
Generated for CMSSW Reference Manual by
1.8.16