L1Trigger
DTTrackFinder
plugins
DTTrackFinder.cc
Go to the documentation of this file.
1
//-------------------------------------------------
2
//
3
// Class: DTTrackFinder
4
//
5
// L1 DT Track Finder EDProducer
6
//
7
//
8
//
9
// Author :
10
// J. Troconiz UAM Madrid
11
//
12
//--------------------------------------------------
13
14
#include "
DTTrackFinder.h
"
15
16
#include "
DataFormats/Common/interface/Handle.h
"
17
#include "
FWCore/Framework/interface/Event.h
"
18
19
#include <
DataFormats/L1DTTrackFinder/interface/L1MuDTChambPhContainer.h
>
20
#include <
DataFormats/L1DTTrackFinder/interface/L1MuDTChambThContainer.h
>
21
#include <
DataFormats/L1DTTrackFinder/interface/L1MuDTTrackContainer.h
>
22
#include <
DataFormats/L1GlobalMuonTrigger/interface/L1MuRegionalCand.h
>
23
24
#include "
L1Trigger/DTTrackFinder/src/L1MuDTTFConfig.h
"
25
#include "
L1Trigger/DTTrackFinder/interface/L1MuDTTFSetup.h
"
26
#include "
L1Trigger/DTTrackFinder/interface/L1MuDTTrackFinder.h
"
27
28
#include <iostream>
29
#include <iomanip>
30
31
using namespace
std
;
32
33
DTTrackFinder::DTTrackFinder
(
const
edm::ParameterSet
&
pset
) {
34
produces<L1MuDTTrackContainer>(
"DTTF"
);
35
produces<vector<L1MuRegionalCand> >(
"DT"
);
36
37
setup1 =
new
L1MuDTTFSetup
(
pset
, consumesCollector());
38
usesResource(
"DTTrackFinder"
);
39
}
40
41
DTTrackFinder::~DTTrackFinder
() {
delete
setup1; }
42
43
void
DTTrackFinder::produce
(
edm::Event
&
e
,
const
edm::EventSetup
&
c
) {
44
if
(
L1MuDTTFConfig::Debug
(1))
45
cout
<< endl;
46
if
(
L1MuDTTFConfig::Debug
(1))
47
cout
<<
"**** L1MuonDTTFTrigger processing event ****"
<< endl;
48
49
L1MuDTTrackFinder
* dtbx = setup1->TrackFinder();
50
dtbx->
clear
();
51
dtbx->
run
(
e
,
c
);
52
53
int
ndt = dtbx->
numberOfTracks
();
54
if
(
L1MuDTTFConfig::Debug
(1))
55
cout
<<
"Number of muons found by the L1 DTBX TRIGGER : "
<< ndt << endl;
56
57
unique_ptr<L1MuDTTrackContainer> tra_product(
new
L1MuDTTrackContainer
);
58
unique_ptr<vector<L1MuRegionalCand> > vec_product(
new
vector<L1MuRegionalCand>);
59
60
vector<L1MuDTTrackCand>& dtTracks = dtbx->
getcache0
();
61
tra_product->setContainer(dtTracks);
62
vector<L1MuRegionalCand>& DTTracks = dtbx->
getcache
();
63
*vec_product = DTTracks;
64
65
e
.put(
std::move
(tra_product),
"DTTF"
);
66
e
.put(
std::move
(vec_product),
"DT"
);
67
}
L1MuDTTFSetup
Definition:
L1MuDTTFSetup.h:36
Handle.h
L1MuDTTFConfig.h
DTTrackFinder::~DTTrackFinder
~DTTrackFinder() override
Destructor.
Definition:
DTTrackFinder.cc:41
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
L1MuDTChambThContainer.h
L1MuDTTrackFinder::run
void run(const edm::Event &e, const edm::EventSetup &c)
run the barrel MTTF
Definition:
L1MuDTTrackFinder.cc:156
L1MuDTTrackFinder.h
L1MuRegionalCand.h
L1MuDTTrackFinder::getcache0
std::vector< L1MuDTTrackCand > & getcache0()
Definition:
L1MuDTTrackFinder.h:104
DTTrackFinder::DTTrackFinder
DTTrackFinder(const edm::ParameterSet &pset)
Constructor.
Definition:
DTTrackFinder.cc:33
L1MuDTTrackFinder::getcache
std::vector< L1MuRegionalCand > & getcache()
Definition:
L1MuDTTrackFinder.h:106
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
L1MuDTTrackFinder::numberOfTracks
int numberOfTracks()
get number of muon candidates found by the barrel MTTF
Definition:
L1MuDTTrackFinder.cc:299
DTTrackFinder::produce
void produce(edm::Event &e, const edm::EventSetup &c) override
Produce digis out of raw data.
Definition:
DTTrackFinder.cc:43
edm::EventSetup
Definition:
EventSetup.h:57
DTTrackFinder.h
L1MuDTTFSetup.h
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
L1MuDTChambPhContainer.h
L1MuDTTrackContainer.h
eostools.move
def move(src, dest)
Definition:
eostools.py:511
std
Definition:
JetResolutionObject.h:76
L1MuDTTrackFinder
Definition:
L1MuDTTrackFinder.h:56
L1MuDTTrackFinder::clear
void clear()
Definition:
L1MuDTTrackFinder.cc:305
L1MuDTTFConfig::Debug
static bool Debug()
Definition:
L1MuDTTFConfig.h:49
L1MuDTTrackContainer
Definition:
L1MuDTTrackContainer.h:33
edm::Event
Definition:
Event.h:73
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
Generated for CMSSW Reference Manual by
1.8.16