L1Trigger
L1TTwinMux
interface
RPCHitCleaner.h
Go to the documentation of this file.
1
//-------------------------------------------------
2
//
3
// Class: RPCHitCleaner
4
//
5
// RPCHitCleaner
6
//
7
//
8
// Author :
9
// G. Flouris U Ioannina Feb. 2015
10
//--------------------------------------------------
11
12
#ifndef L1T_TwinMuxRPC_HITCLEANER_H
13
#define L1T_TwinMuxRPC_HITCLEANER_H
14
15
#include "
DataFormats/RPCDigi/interface/RPCDigiCollection.h
"
16
17
#include "
CondFormats/L1TObjects/interface/L1TTwinMuxParams.h
"
18
#include "
CondFormats/DataRecord/interface/L1TTwinMuxParamsRcd.h
"
19
20
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
21
#include "
FWCore/Framework/interface/EDProducer.h
"
22
#include "
FWCore/Framework/interface/Event.h
"
23
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
24
#include "
FWCore/Framework/interface/ESHandle.h
"
25
#include "
FWCore/Framework/interface/EventSetup.h
"
26
27
#include <iostream>
28
29
class
RPCHitCleaner
{
30
public
:
31
RPCHitCleaner
(
RPCDigiCollection
const
& inrpcDigis);
32
33
void
run
(
const
edm::EventSetup
&
c
);
34
36
RPCDigiCollection
const
&
getRPCCollection
() {
return
m_outrpcDigis
; }
37
38
struct
detId_Ext
{
39
RPCDetId
detid
;
40
int
bx
;
41
int
strip
;
42
bool
const
operator<
(
const
detId_Ext
&
o
)
const
{
43
return
strip
<
o
.strip || (
strip
==
o
.strip &&
detid
<
o
.detid) ||
44
(
bx
<
o
.bx &&
strip
==
o
.strip &&
detid
==
o
.detid);
45
}
46
};
47
48
private
:
50
RPCDigiCollection
const
&
m_inrpcDigis
;
52
RPCDigiCollection
m_outrpcDigis
;
53
};
54
#endif
RPCHitCleaner::detId_Ext::strip
int strip
Definition:
RPCHitCleaner.h:41
RPCHitCleaner::detId_Ext::bx
int bx
Definition:
RPCHitCleaner.h:40
L1TTwinMuxParams.h
EDProducer.h
ESHandle.h
RPCHitCleaner
Definition:
RPCHitCleaner.h:29
RPCDetId
Definition:
RPCDetId.h:16
RPCHitCleaner::detId_Ext::detid
RPCDetId detid
Definition:
RPCHitCleaner.h:39
L1TTwinMuxParamsRcd.h
EcalTangentSkim_cfg.o
o
Definition:
EcalTangentSkim_cfg.py:36
RPCDigiCollection
RPCHitCleaner::detId_Ext
Definition:
RPCHitCleaner.h:38
RPCHitCleaner::m_outrpcDigis
RPCDigiCollection m_outrpcDigis
Output.
Definition:
RPCHitCleaner.h:52
Event.h
RPCHitCleaner::RPCHitCleaner
RPCHitCleaner(RPCDigiCollection const &inrpcDigis)
Definition:
RPCHitCleaner.cc:28
edm::EventSetup
Definition:
EventSetup.h:57
RPCHitCleaner::m_inrpcDigis
RPCDigiCollection const & m_inrpcDigis
Input.
Definition:
RPCHitCleaner.h:50
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
RPCHitCleaner::detId_Ext::operator<
const bool operator<(const detId_Ext &o) const
Definition:
RPCHitCleaner.h:42
RPCHitCleaner::run
void run(const edm::EventSetup &c)
Definition:
RPCHitCleaner.cc:51
Frameworkfwd.h
EventSetup.h
RPCDigiCollection.h
ParameterSet.h
RPCHitCleaner::getRPCCollection
RPCDigiCollection const & getRPCCollection()
Return Output RPCCollection.
Definition:
RPCHitCleaner.h:36
Generated for CMSSW Reference Manual by
1.8.16