Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
RecoTracker
TkSeedingLayers
src
HitExtractorSTRP.h
Go to the documentation of this file.
1
#ifndef RecoTracker_TkSeedingLayers_HitExtractorSTRP_H
2
#define RecoTracker_TkSeedingLayers_HitExtractorSTRP_H
3
4
#include "
RecoTracker/TkSeedingLayers/interface/SeedingLayer.h
"
5
#include "
FWCore/Utilities/interface/InputTag.h
"
6
#include "
HitExtractor.h
"
7
8
#include "
DataFormats/TrackerRecHit2D/interface/SiStripRecHit2D.h
"
9
10
#include <vector>
11
class
DetLayer
;
12
13
14
namespace
ctfseeding {
15
16
class
HitExtractorSTRP
:
public
HitExtractor
{
17
18
public
:
19
typedef
SiStripRecHit2D::ClusterRef
SiStripClusterRef
;
20
21
HitExtractorSTRP
(
const
DetLayer
* detLayer,
SeedingLayer::Side
& side,
int
idLayer);
22
virtual
~HitExtractorSTRP
(){}
23
24
virtual
HitExtractor::Hits
hits
(
const
SeedingLayer
& sl,
const
edm::Event
& ,
const
edm::EventSetup
& )
const
;
25
virtual
HitExtractorSTRP
*
clone
()
const
{
return
new
HitExtractorSTRP
(*
this
); }
26
27
void
useMatchedHits
(
const
edm::InputTag
&
m
) {
hasMatchedHits
=
true
;
theMatchedHits
=
m
; }
28
void
useRPhiHits
(
const
edm::InputTag
&
m
) {
hasRPhiHits
=
true
;
theRPhiHits
=
m
; }
29
void
useStereoHits
(
const
edm::InputTag
&
m
) {
hasStereoHits
=
true
;
theStereoHits
=
m
; }
30
void
useRingSelector
(
int
minRing,
int
maxRing);
31
void
useSimpleRphiHitsCleaner
(
bool
use) {
hasSimpleRphiHitsCleaner
= use;}
32
33
void
cleanedOfClusters
(
const
edm::Event
& ev,
HitExtractor::Hits
&
hits
,
bool
matched)
const
;
34
bool
skipThis
(
TransientTrackingRecHit::ConstRecHitPointer
& ptr,
edm::Handle
<
edmNew::DetSetVector<SiStripClusterRef>
> & stripClusterRefs,
35
TransientTrackingRecHit::ConstRecHitPointer
& replaceMe)
const
;
36
bool
skipThis
(
const
SiStripRecHit2D
*
hit
,
edm::Handle
<
edmNew::DetSetVector<SiStripClusterRef>
> & stripClusterRefs)
const
;
37
void
project
(
TransientTrackingRecHit::ConstRecHitPointer
& ptr,
38
const
SiStripRecHit2D
*
hit
,
39
TransientTrackingRecHit::ConstRecHitPointer
& replaceMe)
const
;
40
void
setNoProjection
()
const
{
failProjection
=
true
;};
41
private
:
42
bool
ringRange
(
int
ring
)
const
;
43
private
:
44
const
DetLayer
*
theLayer
;
45
SeedingLayer::Side
theSide
;
46
mutable
const
SeedingLayer
*
theSLayer
;
47
int
theIdLayer
;
48
bool
hasMatchedHits
;
edm::InputTag
theMatchedHits
;
49
bool
hasRPhiHits
;
edm::InputTag
theRPhiHits
;
50
bool
hasStereoHits
;
edm::InputTag
theStereoHits
;
51
bool
hasRingSelector
;
int
theMinRing
,
theMaxRing
;
52
bool
hasSimpleRphiHitsCleaner
;
53
mutable
bool
failProjection
;
54
};
55
56
}
57
#endif
ctfseeding::HitExtractorSTRP::hasSimpleRphiHitsCleaner
bool hasSimpleRphiHitsCleaner
Definition:
HitExtractorSTRP.h:52
ctfseeding::HitExtractorSTRP::HitExtractorSTRP
HitExtractorSTRP(const DetLayer *detLayer, SeedingLayer::Side &side, int idLayer)
Definition:
HitExtractorSTRP.cc:25
ctfseeding::HitExtractorSTRP::useMatchedHits
void useMatchedHits(const edm::InputTag &m)
Definition:
HitExtractorSTRP.h:27
ConstReferenceCountingPointer< TransientTrackingRecHit >
ctfseeding::HitExtractorSTRP::theMaxRing
int theMaxRing
Definition:
HitExtractorSTRP.h:51
ctfseeding::HitExtractorSTRP::ringRange
bool ringRange(int ring) const
Definition:
HitExtractorSTRP.cc:39
HitExtractor.h
ctfseeding::HitExtractorSTRP::cleanedOfClusters
void cleanedOfClusters(const edm::Event &ev, HitExtractor::Hits &hits, bool matched) const
Definition:
HitExtractorSTRP.cc:101
SiStripRecHit2D
Definition:
SiStripRecHit2D.h:10
ctfseeding::HitExtractor
Definition:
HitExtractor.h:14
ctfseeding::HitExtractorSTRP::theSide
SeedingLayer::Side theSide
Definition:
HitExtractorSTRP.h:45
edm::Handle
Definition:
AssociativeIterator.h:48
SiStripRecHit2D.h
ctfseeding::SeedingLayer
Definition:
SeedingLayer.h:18
ctfseeding::HitExtractorSTRP::useRPhiHits
void useRPhiHits(const edm::InputTag &m)
Definition:
HitExtractorSTRP.h:28
ctfseeding::HitExtractorSTRP::theStereoHits
edm::InputTag theStereoHits
Definition:
HitExtractorSTRP.h:50
ctfseeding::HitExtractorSTRP::hasRPhiHits
bool hasRPhiHits
Definition:
HitExtractorSTRP.h:49
ctfseeding::HitExtractorSTRP::hits
virtual HitExtractor::Hits hits(const SeedingLayer &sl, const edm::Event &, const edm::EventSetup &) const
Definition:
HitExtractorSTRP.cc:130
ctfseeding::HitExtractorSTRP::hasStereoHits
bool hasStereoHits
Definition:
HitExtractorSTRP.h:50
ctfseeding::HitExtractorSTRP::theMinRing
int theMinRing
Definition:
HitExtractorSTRP.h:51
ctfseeding::HitExtractorSTRP::skipThis
bool skipThis(TransientTrackingRecHit::ConstRecHitPointer &ptr, edm::Handle< edmNew::DetSetVector< SiStripClusterRef > > &stripClusterRefs, TransientTrackingRecHit::ConstRecHitPointer &replaceMe) const
Definition:
HitExtractorSTRP.cc:74
edmNew::DetSetVector
Definition:
DetSetNew.h:8
edm::EventSetup
Definition:
EventSetup.h:44
DetLayer
Definition:
DetLayer.h:26
ctfseeding::HitExtractorSTRP::hasMatchedHits
bool hasMatchedHits
Definition:
HitExtractorSTRP.h:48
ctfseeding::HitExtractorSTRP::setNoProjection
void setNoProjection() const
Definition:
HitExtractorSTRP.h:40
relativeConstraints.ring
tuple ring
Definition:
relativeConstraints.py:67
ctfseeding::HitExtractorSTRP::theSLayer
const SeedingLayer * theSLayer
Definition:
HitExtractorSTRP.h:46
ctfseeding::HitExtractorSTRP
Definition:
HitExtractorSTRP.h:16
ctfseeding::HitExtractorSTRP::useRingSelector
void useRingSelector(int minRing, int maxRing)
Definition:
HitExtractorSTRP.cc:32
m
int m
Definition:
DTDataIntegrityTask.cc:32
ctfseeding::HitExtractorSTRP::theLayer
const DetLayer * theLayer
Definition:
HitExtractorSTRP.h:44
ctfseeding::HitExtractorSTRP::theRPhiHits
edm::InputTag theRPhiHits
Definition:
HitExtractorSTRP.h:49
ctfseeding::HitExtractorSTRP::clone
virtual HitExtractorSTRP * clone() const
Definition:
HitExtractorSTRP.h:25
ctfseeding::HitExtractorSTRP::useSimpleRphiHitsCleaner
void useSimpleRphiHitsCleaner(bool use)
Definition:
HitExtractorSTRP.h:31
ctfseeding::HitExtractorSTRP::project
void project(TransientTrackingRecHit::ConstRecHitPointer &ptr, const SiStripRecHit2D *hit, TransientTrackingRecHit::ConstRecHitPointer &replaceMe) const
Definition:
HitExtractorSTRP.cc:63
SeedingLayer.h
hit
Definition:
SiStripHitEffFromCalibTree.cc:87
edm::InputTag
Definition:
InputTag.h:12
InputTag.h
ctfseeding::HitExtractorSTRP::theIdLayer
int theIdLayer
Definition:
HitExtractorSTRP.h:47
ctfseeding::HitExtractorSTRP::SiStripClusterRef
SiStripRecHit2D::ClusterRef SiStripClusterRef
Definition:
HitExtractorSTRP.h:19
ctfseeding::HitExtractorSTRP::~HitExtractorSTRP
virtual ~HitExtractorSTRP()
Definition:
HitExtractorSTRP.h:22
ctfseeding::HitExtractorSTRP::useStereoHits
void useStereoHits(const edm::InputTag &m)
Definition:
HitExtractorSTRP.h:29
edm::Event
Definition:
Event.h:49
ctfseeding::SeedingLayer::Side
Side
Definition:
SeedingLayer.h:20
edm::Ref< edmNew::DetSetVector< SiStripCluster >, SiStripCluster >
ctfseeding::HitExtractorSTRP::failProjection
bool failProjection
Definition:
HitExtractorSTRP.h:53
ctfseeding::HitExtractorSTRP::hasRingSelector
bool hasRingSelector
Definition:
HitExtractorSTRP.h:51
ctfseeding::HitExtractorSTRP::theMatchedHits
edm::InputTag theMatchedHits
Definition:
HitExtractorSTRP.h:48
ctfseeding::HitExtractor::Hits
std::vector< TransientTrackingRecHit::ConstRecHitPointer > Hits
Definition:
HitExtractor.h:16
Generated for CMSSW Reference Manual by
1.8.5