CMS 3D CMS Logo

SeedForPhotonConversionFromQuadruplets.h
Go to the documentation of this file.
1 #ifndef SeedForPhotonConversionFromQuadruplets_H
2 #define SeedForPhotonConversionFromQuadruplets_H
3 
8 
9 #include "PrintRecoObjects.h"
10 #include "Quad.h"
11 
13 
15 class SeedComparitor;
16 namespace edm {
17  class ConsumesCollector;
18 }
19 
21 public:
22  static const int cotTheta_Max = 99999;
23 
27 
30  const std::string& propagator = "PropagatorWithMaterial",
31  double seedMomentumForBOFF = -5.0);
32 
33  //dtor
35 
37  const SeedingHitSet& phits,
38  const SeedingHitSet& mhits,
39  const TrackingRegion& region,
40  const edm::Event& ev,
41  const edm::EventSetup& es,
42  std::stringstream& ss,
43  std::vector<Quad>& quadV,
45 
50  const TrackingRegion& region,
51  double& cotTheta,
52  double& z0);
53  double verySimpleFit(int size, double* ax, double* ay, double* e2y, double& p0, double& e2p0, double& p1);
55 
56  //
57  // Some utility methods added by sguazz
58  void stupidPrint(std::string s, float* d);
59  void stupidPrint(std::string s, double* d);
60  void stupidPrint(const char* s, GlobalPoint* d);
61  void stupidPrint(const char* s, GlobalPoint* d, int n);
62  void bubbleSortVsPhi(GlobalPoint arr[], int n, GlobalPoint vtx);
64  //
65  //
66 
67 protected:
70  const edm::EventSetup& es) const {
71  return true;
72  }
73 
75  const GlobalPoint& vertexPos,
76  const edm::EventSetup& es,
77  const float cotTheta) const;
78 
79  CurvilinearTrajectoryError initialError(const GlobalVector& vertexBounds, float ptMin, float sinTheta) const;
80 
82  const SeedingHitSet& hits,
83  const FreeTrajectoryState& fts,
84  const edm::EventSetup& es,
85  bool apply_dzCut,
86  const TrackingRegion& region) const;
87 
89  const SeedingHitSet& hits,
90  const FreeTrajectoryState& fts,
91  const edm::EventSetup& es,
92  bool apply_dzCut,
93  const TrackingRegion& region,
94  double dzcut) const;
95 
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 protected:
106  double kPI_;
107 
108  // FIXME (well the whole class needs to be fixed!)
110 
111  std::stringstream* pss;
113  std::unique_ptr<SeedComparitor> theComparitor;
114 };
115 #endif
Vector3DBase
Definition: Vector3DBase.h:8
GlobalTrackingRegion.h
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
TrajectorySeedCollection
std::vector< TrajectorySeed > TrajectorySeedCollection
Definition: TrajectorySeedCollection.h:6
Quad.h
hfClusterShapes_cfi.hits
hits
Definition: hfClusterShapes_cfi.py:5
SeedingHitSet
Definition: SeedingHitSet.h:6
SeedForPhotonConversionFromQuadruplets::theBOFFMomentum
double theBOFFMomentum
Definition: SeedForPhotonConversionFromQuadruplets.h:105
SeedForPhotonConversionFromQuadruplets::cotTheta_Max
static const int cotTheta_Max
Definition: SeedForPhotonConversionFromQuadruplets.h:22
SeedForPhotonConversionFromQuadruplets::similarQuadExist
bool similarQuadExist(Quad &thisQuad, std::vector< Quad > &quadV)
Definition: SeedForPhotonConversionFromQuadruplets.cc:1042
PhotonConversionTrajectorySeedProducerFromQuadruplets_cfi.QuadCutPSet
QuadCutPSet
Definition: PhotonConversionTrajectorySeedProducerFromQuadruplets_cfi.py:43
edm
HLT enums.
Definition: AlignableModifier.h:19
SeedForPhotonConversionFromQuadruplets::po
PrintRecoObjects po
Definition: SeedForPhotonConversionFromQuadruplets.h:112
SeedingHitSet::ConstRecHitPointer
BaseTrackerRecHit const * ConstRecHitPointer
Definition: SeedingHitSet.h:10
ptMin
constexpr float ptMin
Definition: PhotonIDValueMapProducer.cc:155
SeedForPhotonConversionFromQuadruplets::buildSeed
const TrajectorySeed * buildSeed(TrajectorySeedCollection &seedCollection, const SeedingHitSet &hits, const FreeTrajectoryState &fts, const edm::EventSetup &es, bool apply_dzCut, const TrackingRegion &region) const
Definition: SeedForPhotonConversionFromQuadruplets.cc:693
SeedForPhotonConversionFromQuadruplets::bubbleReverseSortVsPhi
void bubbleReverseSortVsPhi(GlobalPoint arr[], int n, GlobalPoint vtx)
Definition: SeedForPhotonConversionFromQuadruplets.cc:965
SeedForPhotonConversionFromQuadruplets::verySimpleFit
double verySimpleFit(int size, double *ax, double *ay, double *e2y, double &p0, double &e2p0, double &p1)
Definition: SeedForPhotonConversionFromQuadruplets.cc:1025
SeedForPhotonConversionFromQuadruplets::initialError
CurvilinearTrajectoryError initialError(const GlobalVector &vertexBounds, float ptMin, float sinTheta) const
Definition: SeedForPhotonConversionFromQuadruplets.cc:670
TkTransientTrackingRecHitBuilder.h
SeedForPhotonConversionFromQuadruplets::kPI_
double kPI_
Definition: SeedForPhotonConversionFromQuadruplets.h:106
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
alignCSCRings.s
s
Definition: alignCSCRings.py:92
SeedForPhotonConversionFromQuadruplets::theComparitor
std::unique_ptr< SeedComparitor > theComparitor
Definition: SeedForPhotonConversionFromQuadruplets.h:113
SeedForPhotonConversionFromQuadruplets::trajectorySeed
const TrajectorySeed * trajectorySeed(TrajectorySeedCollection &seedCollection, const SeedingHitSet &phits, const SeedingHitSet &mhits, const TrackingRegion &region, const edm::Event &ev, const edm::EventSetup &es, std::stringstream &ss, std::vector< Quad > &quadV, edm::ParameterSet &QuadCutPSet)
Definition: SeedForPhotonConversionFromQuadruplets.cc:61
CurvilinearTrajectoryError
Definition: CurvilinearTrajectoryError.h:27
TrackCandidateProducer_cfi.propagator
propagator
Definition: TrackCandidateProducer_cfi.py:17
SeedForPhotonConversionFromQuadruplets::SeedForPhotonConversionFromQuadruplets
SeedForPhotonConversionFromQuadruplets(const edm::ParameterSet &cfg, edm::ConsumesCollector &iC, const edm::ParameterSet &SeedComparitorPSet)
Definition: SeedForPhotonConversionFromQuadruplets.cc:39
BaseTrackerRecHit
Definition: BaseTrackerRecHit.h:15
SeedForPhotonConversionFromQuadruplets::getSqrEffectiveErrorOnZ
double getSqrEffectiveErrorOnZ(const SeedingHitSet::ConstRecHitPointer &hit, const TrackingRegion &region)
Definition: SeedForPhotonConversionFromQuadruplets.cc:1031
ElectronSeedTrackRefFix_cfi.seedCollection
seedCollection
Definition: ElectronSeedTrackRefFix_cfi.py:9
SeedingHitSet.h
SeedComparitor
Definition: SeedComparitor.h:25
PrintRecoObjects.h
PrintRecoObjects
Definition: PrintRecoObjects.h:20
SeedForPhotonConversionFromQuadruplets::buildSeedBool
bool buildSeedBool(TrajectorySeedCollection &seedCollection, const SeedingHitSet &hits, const FreeTrajectoryState &fts, const edm::EventSetup &es, bool apply_dzCut, const TrackingRegion &region, double dzcut) const
Definition: SeedForPhotonConversionFromQuadruplets.cc:749
GlobalTrajectoryParameters
Definition: GlobalTrajectoryParameters.h:15
HLTMuonOfflineAnalyzer_cfi.z0
z0
Definition: HLTMuonOfflineAnalyzer_cfi.py:98
Point3DBase< float, GlobalTag >
HLT_FULL_cff.SeedComparitorPSet
SeedComparitorPSet
Definition: HLT_FULL_cff.py:9941
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SeedForPhotonConversionFromQuadruplets::simpleGetSlope
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)
Definition: SeedForPhotonConversionFromQuadruplets.cc:983
SeedForPhotonConversionFromQuadruplets::pss
std::stringstream * pss
Definition: SeedForPhotonConversionFromQuadruplets.h:111
edm::ParameterSet
Definition: ParameterSet.h:47
SeedForPhotonConversionFromQuadruplets::DeltaPhiManual
double DeltaPhiManual(const math::XYZVector &v1, const math::XYZVector &v2)
Definition: SeedForPhotonConversionFromQuadruplets.cc:1073
SeedForPhotonConversionFromQuadruplets::thePropagatorLabel
std::string thePropagatorLabel
Definition: SeedForPhotonConversionFromQuadruplets.h:104
math::XYZVector
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:31
HLT_FULL_cff.region
region
Definition: HLT_FULL_cff.py:88338
p1
double p1[4]
Definition: TauolaWrapper.h:89
edm::EventSetup
Definition: EventSetup.h:57
SeedForPhotonConversionFromQuadruplets::checkHit
bool checkHit(const TrajectoryStateOnSurface &, const SeedingHitSet::ConstRecHitPointer &hit, const edm::EventSetup &es) const
Definition: SeedForPhotonConversionFromQuadruplets.h:68
SeedForPhotonConversionFromQuadruplets::~SeedForPhotonConversionFromQuadruplets
~SeedForPhotonConversionFromQuadruplets()
Definition: SeedForPhotonConversionFromQuadruplets.cc:59
TrajectorySeedCollection.h
SeedForPhotonConversionFromQuadruplets::stupidPrint
void stupidPrint(std::string s, float *d)
Definition: SeedForPhotonConversionFromQuadruplets.cc:921
looper.cfg
cfg
Definition: looper.py:297
SeedForPhotonConversionFromQuadruplets::cloner
TkClonerImpl cloner
Definition: SeedForPhotonConversionFromQuadruplets.h:109
SeedForPhotonConversionFromQuadruplets::initialKinematic
GlobalTrajectoryParameters initialKinematic(const SeedingHitSet &hits, const GlobalPoint &vertexPos, const edm::EventSetup &es, const float cotTheta) const
Definition: SeedForPhotonConversionFromQuadruplets.cc:619
SeedForPhotonConversionFromQuadruplets::refitHit
SeedingHitSet::RecHitPointer refitHit(SeedingHitSet::ConstRecHitPointer hit, const TrajectoryStateOnSurface &state) const
Definition: SeedForPhotonConversionFromQuadruplets.cc:905
TkClonerImpl
Definition: TkClonerImpl.h:12
RunInfoPI::state
state
Definition: RunInfoPayloadInspectoHelper.h:16
FreeTrajectoryState
Definition: FreeTrajectoryState.h:27
extraflags_cff.vtx
vtx
Definition: extraflags_cff.py:18
ev
bool ev
Definition: Hydjet2Hadronizer.cc:95
TrajectorySeed
Definition: TrajectorySeed.h:18
SeedForPhotonConversionFromQuadruplets
Definition: SeedForPhotonConversionFromQuadruplets.h:20
TrackingRegion
Definition: TrackingRegion.h:41
ztail.d
d
Definition: ztail.py:151
SeedForPhotonConversionFromQuadruplets::bubbleSortVsPhi
void bubbleSortVsPhi(GlobalPoint arr[], int n, GlobalPoint vtx)
Definition: SeedForPhotonConversionFromQuadruplets.cc:947
ParameterSet.h
edm::Event
Definition: Event.h:73
Quad
Definition: Quad.h:4
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
hit
Definition: SiStripHitEffFromCalibTree.cc:88
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443