Main Page
Namespaces
Classes
Package Documentation
src
L1Trigger
L1TMuonCPPF
interface
RecHitProcessor.h
Go to the documentation of this file.
1
#ifndef L1Trigger_L1TMuonCPPF_RecHitProcessor_h
2
#define L1Trigger_L1TMuonCPPF_RecHitProcessor_h
3
4
#include "
FWCore/Framework/interface/ESHandle.h
"
5
#include "
FWCore/Framework/interface/Event.h
"
6
#include "
FWCore/Framework/interface/EventSetup.h
"
7
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
8
9
#include "
Geometry/RPCGeometry/interface/RPCGeometry.h
"
10
#include "
Geometry/RPCGeometry/interface/RPCRoll.h
"
11
#include "
Geometry/Records/interface/MuonGeometryRecord.h
"
12
13
#include "
DataFormats/L1TMuon/interface/CPPFDigi.h
"
14
#include "
DataFormats/MuonDetId/interface/RPCDetId.h
"
15
#include "
DataFormats/RPCRecHit/interface/RPCRecHitCollection.h
"
16
17
#include "
CondFormats/RPCObjects/interface/RPCDeadStrips.h
"
18
#include "
CondFormats/RPCObjects/interface/RPCMaskedStrips.h
"
19
20
#include "
CondFormats/Serialization/interface/Serializable.h
"
21
#include "
L1Trigger/L1TMuonEndCap/interface/TrackTools.h
"
22
23
#include <boost/cstdint.hpp>
24
#include <iostream>
25
#include <memory>
26
#include <sstream>
27
#include <string>
28
#include <vector>
29
30
class
RecHitProcessor
{
31
public
:
32
explicit
RecHitProcessor
();
33
~RecHitProcessor
();
34
35
struct
CppfItem
{
36
37
int
lb
;
38
int
rawId
;
39
int
strip
;
40
int
lbchannel
;
41
int
halfchannel
;
42
int
int_phi
;
43
int
int_theta
;
44
COND_SERIALIZABLE
;
45
};
46
47
std::vector<CppfItem>
const
&
getCppfVec
()
const
{
return
CppfVec
; }
48
std::vector<CppfItem>
CppfVec
;
49
50
void
processLook
(
51
// Input
52
const
edm::Event
&
iEvent
,
const
edm::EventSetup
&iSetup,
53
const
edm::EDGetToken
&recHitToken,
54
std::vector<RecHitProcessor::CppfItem> &CppfVec1,
55
// Output
56
l1t::CPPFDigiCollection
&cppfDigis,
const
int
MaxClusterSize)
const
;
57
58
void
process
(
59
// Input
60
const
edm::Event
&
iEvent
,
const
edm::EventSetup
&iSetup,
61
const
edm::EDGetToken
&recHitToken,
62
// Output
63
l1t::CPPFDigiCollection
&cppfDigis)
const
;
64
65
void
print
(
int
a
,
int
b
,
float
c
,
float
d
)
const
{
66
std::cout
<< a <<
" "
<< b <<
" "
<< c <<
" "
<< d << std::endl;
67
};
68
69
COND_SERIALIZABLE
;
70
71
private
:
72
};
73
74
#endif
/* #define L1Trigger_L1TMuonCPPF_RecHitProcessor_h */
RecHitProcessor::print
void print(int a, int b, float c, float d) const
Definition:
RecHitProcessor.h:65
RPCDeadStrips.h
MessageLogger.h
RecHitProcessor::CppfVec
std::vector< CppfItem > CppfVec
Definition:
RecHitProcessor.h:48
RPCMaskedStrips.h
RPCRoll.h
RecHitProcessor::CppfItem::halfchannel
int halfchannel
Definition:
RecHitProcessor.h:41
RPCDetId.h
MuonGeometryRecord.h
Event.h
EnergyCorrector.c
c
Definition:
EnergyCorrector.py:44
EventSetup.h
RecHitProcessor::CppfItem::strip
int strip
Definition:
RecHitProcessor.h:39
RecHitProcessor::CppfItem
Definition:
RecHitProcessor.h:35
edm::EDGetToken
Definition:
EDGetToken.h:35
RPCRecHitCollection.h
RecHitProcessor::CppfItem::lbchannel
int lbchannel
Definition:
RecHitProcessor.h:40
iEvent
int iEvent
Definition:
GenABIO.cc:224
CPPFDigi.h
ESHandle.h
TrackTools.h
edm::EventSetup
Definition:
EventSetup.h:57
RecHitProcessor::~RecHitProcessor
~RecHitProcessor()
Definition:
RecHitProcessor.cc:5
edmIntegrityCheck.d
d
Definition:
edmIntegrityCheck.py:66
RecHitProcessor
Definition:
RecHitProcessor.h:30
RecHitProcessor::processLook
void processLook(const edm::Event &iEvent, const edm::EventSetup &iSetup, const edm::EDGetToken &recHitToken, std::vector< RecHitProcessor::CppfItem > &CppfVec1, l1t::CPPFDigiCollection &cppfDigis, const int MaxClusterSize) const
Definition:
RecHitProcessor.cc:7
RecHitProcessor::RecHitProcessor
RecHitProcessor()
Definition:
RecHitProcessor.cc:3
RecHitProcessor::CppfItem::int_theta
int int_theta
Definition:
RecHitProcessor.h:43
RecHitProcessor::CppfItem::rawId
int rawId
Definition:
RecHitProcessor.h:38
b
double b
Definition:
hdecay.h:120
RecHitProcessor::process
void process(const edm::Event &iEvent, const edm::EventSetup &iSetup, const edm::EDGetToken &recHitToken, l1t::CPPFDigiCollection &cppfDigis) const
Definition:
RecHitProcessor.cc:258
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition:
Serializable.h:38
RecHitProcessor::CppfItem::int_phi
int int_phi
Definition:
RecHitProcessor.h:42
a
double a
Definition:
hdecay.h:121
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
RPCGeometry.h
edm::Event
Definition:
Event.h:71
Serializable.h
RecHitProcessor::CppfItem::lb
int lb
Definition:
RecHitProcessor.h:37
l1t::CPPFDigiCollection
std::vector< CPPFDigi > CPPFDigiCollection
Definition:
CPPFDigi.h:68
RecHitProcessor::getCppfVec
std::vector< CppfItem > const & getCppfVec() const
Definition:
RecHitProcessor.h:47
Generated for CMSSW Reference Manual by
1.8.11