Main Page
Namespaces
Classes
Package Documentation
RecoTracker
ConversionSeedGenerators
plugins
SeedForPhotonConversionFromQuadruplets.h
Go to the documentation of this file.
1
#ifndef SeedForPhotonConversionFromQuadruplets_H
2
#define SeedForPhotonConversionFromQuadruplets_H
3
4
#include "
RecoTracker/TkTrackingRegions/interface/GlobalTrackingRegion.h
"
5
#include "
RecoTracker/TkSeedingLayers/interface/SeedingHitSet.h
"
6
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
7
#include "
DataFormats/TrajectorySeed/interface/TrajectorySeedCollection.h
"
8
#include "
FWCore/Utilities/interface/GCC11Compatibility.h
"
9
10
#include "
PrintRecoObjects.h
"
11
#include "
Quad.h
"
12
13
#include "
RecoTracker/TransientTrackingRecHit/interface/TkTransientTrackingRecHitBuilder.h
"
14
15
class
FreeTrajectoryState
;
16
class
SeedComparitor
;
17
namespace
edm
{
18
class
ConsumesCollector;
19
}
20
21
class
SeedForPhotonConversionFromQuadruplets
{
22
public
:
23
static
const
int
cotTheta_Max = 99999;
24
25
SeedForPhotonConversionFromQuadruplets
(
const
edm::ParameterSet
&
cfg
,
26
edm::ConsumesCollector
& iC,
27
const
edm::ParameterSet
&
SeedComparitorPSet
);
28
29
SeedForPhotonConversionFromQuadruplets
(
edm::ConsumesCollector
& iC,
30
const
edm::ParameterSet
&
SeedComparitorPSet
,
31
const
std::string
&
propagator
=
"PropagatorWithMaterial"
,
32
double
seedMomentumForBOFF = -5.0);
33
34
//dtor
35
~
SeedForPhotonConversionFromQuadruplets
();
36
37
const
TrajectorySeed
* trajectorySeed(
TrajectorySeedCollection
&
seedCollection
,
38
const
SeedingHitSet
& phits,
39
const
SeedingHitSet
& mhits,
40
const
TrackingRegion
&
region
,
41
const
edm::Event
&
ev
,
42
const
edm::EventSetup
& es,
43
std::stringstream&
ss
,
44
std::vector<Quad>& quadV,
45
edm::ParameterSet
&
QuadCutPSet
);
46
47
double
simpleGetSlope(
const
SeedingHitSet::ConstRecHitPointer
& ohit,
48
const
SeedingHitSet::ConstRecHitPointer
& nohit,
49
const
SeedingHitSet::ConstRecHitPointer
& ihit,
50
const
SeedingHitSet::ConstRecHitPointer
& nihit,
51
const
TrackingRegion
&
region
,
52
double
& cotTheta,
53
double
&
z0
);
54
double
verySimpleFit(
int
size
,
double
* ax,
double
* ay,
double
* e2y,
double
& p0,
double
& e2p0,
double
&
p1
);
55
double
getSqrEffectiveErrorOnZ(
const
SeedingHitSet::ConstRecHitPointer
&
hit
,
const
TrackingRegion
&
region
);
56
57
//
58
// Some utility methods added by sguazz
59
void
stupidPrint(
std::string
s
,
float
*
d
);
60
void
stupidPrint(
std::string
s
,
double
*
d
);
61
void
stupidPrint(
const
char
*
s
,
GlobalPoint
*
d
);
62
void
stupidPrint(
const
char
*
s
,
GlobalPoint
*
d
,
int
n
);
63
void
bubbleSortVsPhi(
GlobalPoint
arr[],
int
n
,
GlobalPoint
vtx
);
64
void
bubbleReverseSortVsPhi(
GlobalPoint
arr[],
int
n
,
GlobalPoint
vtx
);
65
//
66
//
67
68
protected
:
69
bool
checkHit
(
const
TrajectoryStateOnSurface
&,
70
const
SeedingHitSet::ConstRecHitPointer
&
hit
,
71
const
edm::EventSetup
& es)
const
{
72
return
true
;
73
}
74
75
GlobalTrajectoryParameters
initialKinematic(
const
SeedingHitSet
&
hits
,
76
const
GlobalPoint
& vertexPos,
77
const
edm::EventSetup
& es,
78
const
float
cotTheta)
const
;
79
80
CurvilinearTrajectoryError
initialError(
const
GlobalVector
& vertexBounds,
float
ptMin
,
float
sinTheta)
const
;
81
82
const
TrajectorySeed
* buildSeed(
TrajectorySeedCollection
&
seedCollection
,
83
const
SeedingHitSet
& hits,
84
const
FreeTrajectoryState
& fts,
85
const
edm::EventSetup
& es,
86
bool
apply_dzCut,
87
const
TrackingRegion
&
region
)
const
;
88
89
bool
buildSeedBool(
TrajectorySeedCollection
& seedCollection,
90
const
SeedingHitSet
& hits,
91
const
FreeTrajectoryState
& fts,
92
const
edm::EventSetup
& es,
93
bool
apply_dzCut,
94
const
TrackingRegion
& region,
95
double
dzcut)
const
;
96
97
SeedingHitSet::RecHitPointer
refitHit(
SeedingHitSet::ConstRecHitPointer
hit
,
98
const
TrajectoryStateOnSurface
& state)
const
;
99
100
bool
similarQuadExist(
Quad
& thisQuad, std::vector<Quad>& quadV);
101
102
double
DeltaPhiManual(
const
math::XYZVector
& v1,
const
math::XYZVector
& v2);
103
104
protected
:
105
std::string
thePropagatorLabel
;
106
double
theBOFFMomentum
;
107
double
kPI_
;
108
109
// FIXME (well the whole class needs to be fixed!)
110
TkClonerImpl
cloner
;
111
112
std::stringstream*
pss
;
113
PrintRecoObjects
po
;
114
std::unique_ptr<SeedComparitor>
theComparitor
;
115
};
116
#endif
findQualityFiles.size
size
Write out results.
Definition:
findQualityFiles.py:443
PhotonConversionTrajectorySeedProducerFromQuadruplets_cfi.QuadCutPSet
QuadCutPSet
Definition:
PhotonConversionTrajectorySeedProducerFromQuadruplets_cfi.py:43
SeedForPhotonConversionFromQuadruplets::theBOFFMomentum
double theBOFFMomentum
Definition:
SeedForPhotonConversionFromQuadruplets.h:106
SeedForPhotonConversionFromQuadruplets::kPI_
double kPI_
Definition:
SeedForPhotonConversionFromQuadruplets.h:107
PrintRecoObjects.h
Vector3DBase
Definition:
Vector3DBase.h:8
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
TrackCandidateProducer_cfi.propagator
propagator
Definition:
TrackCandidateProducer_cfi.py:17
contentValuesCheck.ss
ss
Definition:
contentValuesCheck.py:33
hfClusterShapes_cfi.hits
hits
Definition:
hfClusterShapes_cfi.py:5
GlobalTrajectoryParameters
Definition:
GlobalTrajectoryParameters.h:15
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
HLT_2018_cff.region
region
Definition:
HLT_2018_cff.py:81376
GlobalTrackingRegion.h
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:95
TrajectoryStateOnSurface
Definition:
TrajectoryStateOnSurface.h:16
TrackingRegion
Definition:
TrackingRegion.h:40
ElectronSeedTrackRefFix_cfi.seedCollection
seedCollection
Definition:
ElectronSeedTrackRefFix_cfi.py:9
SeedForPhotonConversionFromQuadruplets::pss
std::stringstream * pss
Definition:
SeedForPhotonConversionFromQuadruplets.h:112
dqmiodumpmetadata.n
n
Definition:
dqmiodumpmetadata.py:28
ParameterSet.h
SeedForPhotonConversionFromQuadruplets
Definition:
SeedForPhotonConversionFromQuadruplets.h:21
SeedingHitSet::ConstRecHitPointer
BaseTrackerRecHit const * ConstRecHitPointer
Definition:
SeedingHitSet.h:10
SeedForPhotonConversionFromQuadruplets::po
PrintRecoObjects po
Definition:
SeedForPhotonConversionFromQuadruplets.h:113
TrajectorySeedCollection
std::vector< TrajectorySeed > TrajectorySeedCollection
Definition:
TrajectorySeedCollection.h:6
FreeTrajectoryState
Definition:
FreeTrajectoryState.h:27
SeedForPhotonConversionFromQuadruplets::theComparitor
std::unique_ptr< SeedComparitor > theComparitor
Definition:
SeedForPhotonConversionFromQuadruplets.h:114
SeedingHitSet
Definition:
SeedingHitSet.h:6
TkTransientTrackingRecHitBuilder.h
SeedForPhotonConversionFromQuadruplets::cloner
TkClonerImpl cloner
Definition:
SeedForPhotonConversionFromQuadruplets.h:110
edm::EventSetup
Definition:
EventSetup.h:57
SeedForPhotonConversionFromQuadruplets::checkHit
bool checkHit(const TrajectoryStateOnSurface &, const SeedingHitSet::ConstRecHitPointer &hit, const edm::EventSetup &es) const
Definition:
SeedForPhotonConversionFromQuadruplets.h:69
ptMin
float ptMin
Definition:
PhotonIDValueMapProducer.cc:153
looper.cfg
cfg
Definition:
looper.py:297
ztail.d
d
Definition:
ztail.py:151
HLT_2018_cff.SeedComparitorPSet
SeedComparitorPSet
Definition:
HLT_2018_cff.py:8525
math::XYZVector
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition:
Vector3D.h:31
BaseTrackerRecHit
Definition:
BaseTrackerRecHit.h:15
Quad.h
GCC11Compatibility.h
hit
Definition:
SiStripHitEffFromCalibTree.cc:88
Point3DBase< float, GlobalTag >
edm
HLT enums.
Definition:
AlignableModifier.h:19
p1
double p1[4]
Definition:
TauolaWrapper.h:89
SeedForPhotonConversionFromQuadruplets::thePropagatorLabel
std::string thePropagatorLabel
Definition:
SeedForPhotonConversionFromQuadruplets.h:105
TrajectorySeedCollection.h
edm::ParameterSet
Definition:
ParameterSet.h:36
HLTMuonOfflineAnalyzer_cfi.z0
z0
Definition:
HLTMuonOfflineAnalyzer_cfi.py:98
badGlobalMuonTaggersAOD_cff.vtx
vtx
Definition:
badGlobalMuonTaggersAOD_cff.py:5
TkClonerImpl
Definition:
TkClonerImpl.h:12
SeedingHitSet.h
TrajectorySeed
Definition:
TrajectorySeed.h:17
edm::Event
Definition:
Event.h:72
Quad
Definition:
Quad.h:4
CurvilinearTrajectoryError
Definition:
CurvilinearTrajectoryError.h:27
PrintRecoObjects
Definition:
PrintRecoObjects.h:20
SeedComparitor
Definition:
SeedComparitor.h:25
edm::ConsumesCollector
Definition:
ConsumesCollector.h:39
Generated for CMSSW Reference Manual by
1.8.11