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
16
class
FreeTrajectoryState
;
17
class
SeedComparitor
;
18
namespace
edm
{
class
ConsumesCollector;}
19
20
class
SeedForPhotonConversionFromQuadruplets
{
21
public
:
22
static
const
int
cotTheta_Max=99999;
23
24
SeedForPhotonConversionFromQuadruplets
(
const
edm::ParameterSet
&
cfg
,
edm::ConsumesCollector
& iC,
const
edm::ParameterSet
&
SeedComparitorPSet
);
25
26
SeedForPhotonConversionFromQuadruplets
(
edm::ConsumesCollector
& iC,
const
edm::ParameterSet
&
SeedComparitorPSet
,
27
const
std::string
&
propagator
=
"PropagatorWithMaterial"
,
double
seedMomentumForBOFF = -5.0);
28
29
//dtor
30
~
SeedForPhotonConversionFromQuadruplets
();
31
32
const
TrajectorySeed
* trajectorySeed(
TrajectorySeedCollection
& seedCollection,
33
const
SeedingHitSet
& phits,
34
const
SeedingHitSet
& mhits,
35
const
TrackingRegion
& region,
36
const
edm::Event
&
ev
,
37
const
edm::EventSetup
& es,
38
std::stringstream& ss, std::vector<Quad> & quadV,
39
edm::ParameterSet
&
QuadCutPSet
);
40
41
42
double
simpleGetSlope(
const
SeedingHitSet::ConstRecHitPointer
&ohit,
const
SeedingHitSet::ConstRecHitPointer
&nohit,
const
SeedingHitSet::ConstRecHitPointer
&ihit,
const
SeedingHitSet::ConstRecHitPointer
&nihit,
const
TrackingRegion
& region,
double
& cotTheta,
double
& z0);
43
double
verySimpleFit(
int
size
,
double
*
ax
,
double
* ay,
double
* e2y,
double
& p0,
double
& e2p0,
double
&
p1
);
44
double
getSqrEffectiveErrorOnZ(
const
SeedingHitSet::ConstRecHitPointer
&
hit
,
const
TrackingRegion
& region);
45
46
//
47
// Some utility methods added by sguazz
48
void
stupidPrint(
std::string
s
,
float
*
d
);
49
void
stupidPrint(
std::string
s
,
double
*
d
);
50
void
stupidPrint(
const
char
*
s
,
GlobalPoint
*
d
);
51
void
stupidPrint(
const
char
*
s
,
GlobalPoint
*
d
,
int
n
);
52
void
bubbleSortVsPhi(
GlobalPoint
arr[],
int
n
,
GlobalPoint
vtx
);
53
void
bubbleReverseSortVsPhi(
GlobalPoint
arr[],
int
n
,
GlobalPoint
vtx
);
54
//
55
//
56
57
58
59
60
protected
:
61
62
bool
checkHit
(
63
const
TrajectoryStateOnSurface
&,
64
const
SeedingHitSet::ConstRecHitPointer
&
hit
,
65
const
edm::EventSetup
& es)
const
{
return
true
; }
66
67
GlobalTrajectoryParameters
initialKinematic(
68
const
SeedingHitSet
&
hits
,
69
const
GlobalPoint
& vertexPos,
70
const
edm::EventSetup
& es,
71
const
float
cotTheta)
const
;
72
73
CurvilinearTrajectoryError
initialError(
74
const
GlobalVector
& vertexBounds,
75
float
ptMin
,
76
float
sinTheta)
const
;
77
78
const
TrajectorySeed
* buildSeed(
79
TrajectorySeedCollection
& seedCollection,
80
const
SeedingHitSet
& hits,
81
const
FreeTrajectoryState
& fts,
82
const
edm::EventSetup
& es,
83
bool
apply_dzCut,
84
const
TrackingRegion
®ion)
const
;
85
86
bool
buildSeedBool(
87
TrajectorySeedCollection
& seedCollection,
88
const
SeedingHitSet
& hits,
89
const
FreeTrajectoryState
& fts,
90
const
edm::EventSetup
& es,
91
bool
apply_dzCut,
92
const
TrackingRegion
& region,
93
double
dzcut)
const
;
94
95
SeedingHitSet::RecHitPointer
refitHit(
96
SeedingHitSet::ConstRecHitPointer
hit
,
97
const
TrajectoryStateOnSurface
&state)
const
;
98
99
bool
similarQuadExist(
Quad
& thisQuad, std::vector<Quad>& quadV);
100
101
double
DeltaPhiManual(
const
math::XYZVector
& v1,
const
math::XYZVector
& v2);
102
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
mutable
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:442
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
create_public_lumi_plots.ax
ax
Definition:
create_public_lumi_plots.py:1092
Vector3DBase< float, GlobalTag >
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
hfClusterShapes_cfi.hits
hits
Definition:
hfClusterShapes_cfi.py:5
GlobalTrajectoryParameters
Definition:
GlobalTrajectoryParameters.h:15
alignCSCRings.s
s
Definition:
alignCSCRings.py:91
GlobalTrackingRegion.h
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:95
TrajectoryStateOnSurface
Definition:
TrajectoryStateOnSurface.h:17
TrackingRegion
Definition:
TrackingRegion.h:40
SeedForPhotonConversionFromQuadruplets::pss
std::stringstream * pss
Definition:
SeedForPhotonConversionFromQuadruplets.h:112
ParameterSet.h
SeedForPhotonConversionFromQuadruplets
Definition:
SeedForPhotonConversionFromQuadruplets.h:20
SeedingHitSet::ConstRecHitPointer
BaseTrackerRecHit const * ConstRecHitPointer
Definition:
SeedingHitSet.h:11
SeedForPhotonConversionFromQuadruplets::po
PrintRecoObjects po
Definition:
SeedForPhotonConversionFromQuadruplets.h:113
TrajectorySeedCollection
std::vector< TrajectorySeed > TrajectorySeedCollection
Definition:
TrajectorySeedCollection.h:6
FreeTrajectoryState
Definition:
FreeTrajectoryState.h:29
SeedForPhotonConversionFromQuadruplets::theComparitor
std::unique_ptr< SeedComparitor > theComparitor
Definition:
SeedForPhotonConversionFromQuadruplets.h:114
SeedingHitSet
Definition:
SeedingHitSet.h:6
TkTransientTrackingRecHitBuilder.h
ALCARECOTkAlBeamHalo_cff.ptMin
ptMin
Definition:
ALCARECOTkAlBeamHalo_cff.py:30
SeedForPhotonConversionFromQuadruplets::cloner
TkClonerImpl cloner
Definition:
SeedForPhotonConversionFromQuadruplets.h:110
edm::EventSetup
Definition:
EventSetup.h:45
SeedForPhotonConversionFromQuadruplets::checkHit
bool checkHit(const TrajectoryStateOnSurface &, const SeedingHitSet::ConstRecHitPointer &hit, const edm::EventSetup &es) const
Definition:
SeedForPhotonConversionFromQuadruplets.h:62
looper.cfg
cfg
Definition:
looper.py:293
edmIntegrityCheck.d
d
Definition:
edmIntegrityCheck.py:65
math::XYZVector
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition:
Vector3D.h:30
BaseTrackerRecHit
Definition:
BaseTrackerRecHit.h:33
Quad.h
GCC11Compatibility.h
gen::n
int n
Definition:
Cascade2Hadronizer.cc:79
hit
Definition:
SiStripHitEffFromCalibTree.cc:86
Point3DBase< float, GlobalTag >
hiDetachedTripletStep_cff.SeedComparitorPSet
SeedComparitorPSet
Definition:
hiDetachedTripletStep_cff.py:69
edm
HLT enums.
Definition:
AlignableModifier.h:17
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
badGlobalMuonTaggersAOD_cff.vtx
vtx
Definition:
badGlobalMuonTaggersAOD_cff.py:5
TkClonerImpl
Definition:
TkClonerImpl.h:13
SeedingHitSet.h
PhotonConversionTrajectorySeedProducerFromQuadruplets_cfi.propagator
propagator
Definition:
PhotonConversionTrajectorySeedProducerFromQuadruplets_cfi.py:41
TrajectorySeed
Definition:
TrajectorySeed.h:17
edm::Event
Definition:
Event.h:66
Quad
Definition:
Quad.h:4
CurvilinearTrajectoryError
Definition:
CurvilinearTrajectoryError.h:27
PrintRecoObjects
Definition:
PrintRecoObjects.h:22
SeedComparitor
Definition:
SeedComparitor.h:22
edm::ConsumesCollector
Definition:
ConsumesCollector.h:39
Generated for CMSSW Reference Manual by
1.8.11