Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Alignment
CommonAlignmentProducer
plugins
AlignmentCSCTrackSelectorModule.cc
Go to the documentation of this file.
1
2
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
3
#include "
FWCore/Framework/interface/MakerMacros.h
"
4
#include "
CommonTools/UtilAlgos/interface/ObjectSelectorStream.h
"
5
6
//the selectores used to select the tracks
7
#include "
Alignment/CommonAlignmentProducer/interface/AlignmentCSCTrackSelector.h
"
8
#include "
Alignment/CommonAlignmentProducer/interface/AlignmentGlobalTrackSelector.h
"
9
#include "
Alignment/CommonAlignmentProducer/interface/AlignmentTwoBodyDecayTrackSelector.h
"
10
11
// the following include is necessary to clone all track branches
12
// including recoTrackExtras and TrackingRecHitsOwned.
13
// if you remove it the code will compile, but the cloned
14
// tracks have only the recoTracks branch!
15
#include "
CommonTools/RecoAlgos/interface/TrackSelector.h
"
16
17
struct
CSCTrackConfigSelector
{
18
typedef
std::vector<const reco::Track *>
container
;
19
typedef
container::const_iterator
const_iterator
;
20
typedef
reco::TrackCollection
collection
;
21
22
CSCTrackConfigSelector
(
const
edm::ParameterSet
&
cfg
,
edm::ConsumesCollector
&&iC) :
theBaseSelector
(
cfg
) {}
23
24
const_iterator
begin
()
const
{
return
theSelectedTracks
.begin(); }
25
const_iterator
end
()
const
{
return
theSelectedTracks
.end(); }
26
size_t
size
()
const
{
return
theSelectedTracks
.size(); }
27
28
void
select
(
const
edm::Handle<reco::TrackCollection>
&
c
,
const
edm::Event
&evt,
const
edm::EventSetup
&
/*dummy*/
) {
29
container
all
;
30
for
(reco::TrackCollection::const_iterator
i
=
c
.product()->begin();
i
!=
c
.product()->end(); ++
i
) {
31
all
.push_back(&*
i
);
32
}
33
theSelectedTracks
=
theBaseSelector
.
select
(
all
, evt);
// might add dummy
34
}
35
36
private
:
37
container
theSelectedTracks
;
38
39
AlignmentCSCTrackSelector
theBaseSelector
;
40
};
41
42
typedef
ObjectSelectorStream<CSCTrackConfigSelector>
AlignmentCSCTrackSelectorModule
;
43
44
DEFINE_FWK_MODULE
(
AlignmentCSCTrackSelectorModule
);
CSCTrackConfigSelector::end
const_iterator end() const
Definition:
AlignmentCSCTrackSelectorModule.cc:25
AlignmentTwoBodyDecayTrackSelector.h
mps_fire.i
i
Definition:
mps_fire.py:428
ObjectSelectorStream.h
TrackSelector.h
AlignmentCSCTrackSelectorModule
ObjectSelectorStream< CSCTrackConfigSelector > AlignmentCSCTrackSelectorModule
Definition:
AlignmentCSCTrackSelectorModule.cc:42
AlignmentCSCTrackSelector::select
Tracks select(const Tracks &tracks, const edm::Event &evt) const
select tracks
Definition:
AlignmentCSCTrackSelector.cc:29
CSCTrackConfigSelector
Definition:
AlignmentCSCTrackSelectorModule.cc:17
edm::Handle< reco::TrackCollection >
CSCTrackConfigSelector::select
void select(const edm::Handle< reco::TrackCollection > &c, const edm::Event &evt, const edm::EventSetup &)
Definition:
AlignmentCSCTrackSelectorModule.cc:28
python.cmstools.all
def all(container)
workaround iterator generators for ROOT classes
Definition:
cmstools.py:26
MakerMacros.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
edm::ParameterSet
Definition:
ParameterSet.h:47
CSCTrackConfigSelector::container
std::vector< const reco::Track * > container
Definition:
AlignmentCSCTrackSelectorModule.cc:18
ObjectSelectorStream
edm::EventSetup
Definition:
EventSetup.h:58
looper.cfg
cfg
Definition:
looper.py:297
CSCTrackConfigSelector::CSCTrackConfigSelector
CSCTrackConfigSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
Definition:
AlignmentCSCTrackSelectorModule.cc:22
CSCTrackConfigSelector::const_iterator
container::const_iterator const_iterator
Definition:
AlignmentCSCTrackSelectorModule.cc:19
AlignmentGlobalTrackSelector.h
CSCTrackConfigSelector::size
size_t size() const
Definition:
AlignmentCSCTrackSelectorModule.cc:26
ConsumesCollector.h
c
auto & c
Definition:
CAHitNtupletGeneratorKernelsImpl.h:46
CSCTrackConfigSelector::theBaseSelector
AlignmentCSCTrackSelector theBaseSelector
Definition:
AlignmentCSCTrackSelectorModule.cc:39
edm::Event
Definition:
Event.h:73
AlignmentCSCTrackSelector
Definition:
AlignmentCSCTrackSelector.h:15
CSCTrackConfigSelector::theSelectedTracks
container theSelectedTracks
Definition:
AlignmentCSCTrackSelectorModule.cc:37
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition:
TrackFwd.h:14
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
CSCTrackConfigSelector::collection
reco::TrackCollection collection
Definition:
AlignmentCSCTrackSelectorModule.cc:20
AlignmentCSCTrackSelector.h
CSCTrackConfigSelector::begin
const_iterator begin() const
Definition:
AlignmentCSCTrackSelectorModule.cc:24
Generated for CMSSW Reference Manual by
1.8.16