CMS 3D CMS Logo

PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h
Go to the documentation of this file.
1 #ifndef PhotonConversionFinderFromTracks_H
2 #define PhotonConversionFinderFromTracks_H
3 
10 
13 
14 #include "IdealHelixParameters.h"
15 
16 #include "PrintRecoObjects.h"
17 
22 
24 
28 
29 #include <sstream>
30 
31 inline bool lt_(std::pair<double, short> a, std::pair<double, short> b) { return a.first < b.first; }
32 
34 public:
37 
39 
40  IdealHelixParameters* getIdealHelixParameters() { return &_IdealHelixParameters; }
41 
42 private:
43  void loopOnTracks();
44  bool inspectTrack(const reco::Track* track, const TrackingRegion& region, math::XYZPoint& primaryVertexPoint);
45 
46  bool rejectTrack(const reco::Track& track);
47 
48  bool selectPriVtxCompatibleWithTrack(const reco::Track& tk,
49  std::vector<reco::Vertex>& selectedPriVtxCompatibleWithTrack);
50  void loopOnPriVtx(const reco::Track& tk, const std::vector<reco::Vertex>& selectedPriVtxCompatibleWithTrack);
51 
52  //Data Members
53 
55 
56  std::unique_ptr<CombinedHitPairGeneratorForPhotonConversion> theHitsGenerator;
57  std::unique_ptr<SeedForPhotonConversion1Leg> theSeedCreator;
58  std::unique_ptr<GlobalTrackingRegionProducerFromBeamSpot> theRegionProducer;
59 
62 
63  double _vtxMinDoF, _maxDZSigmas;
64  size_t _maxNumSelVtx;
67  edm::InputTag _primaryVtxInputTag, _beamSpotInputTag;
71 
72  typedef std::vector<std::unique_ptr<TrackingRegion> > Regions;
73  typedef Regions::const_iterator IR;
75 
77 
80 
84 
86 
89 
91 
92  std::stringstream ss;
93 };
94 #endif
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::Regions
std::vector< std::unique_ptr< TrackingRegion > > Regions
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:72
Visibility.h
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::trackCollectionH
edm::Handle< reco::TrackCollection > trackCollectionH
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:76
HLT_FULL_cff.track
track
Definition: HLT_FULL_cff.py:11779
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::primaryVertex
reco::Vertex primaryVertex
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:88
MessageLogger.h
TrajectorySeedCollection
std::vector< TrajectorySeed > TrajectorySeedCollection
Definition: TrajectorySeedCollection.h:6
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::theBeamSpot
const reco::BeamSpot * theBeamSpot
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:83
FastHelix.h
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::_countSeedTracks
size_t _countSeedTracks
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:66
convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:72
edm::EDGetTokenT< reco::VertexCollection >
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::_IdealHelixParameters
IdealHelixParameters _IdealHelixParameters
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:85
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::token_bs
edm::EDGetTokenT< reco::BeamSpot > token_bs
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:69
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::vertexHandle
edm::Handle< reco::VertexCollection > vertexHandle
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:87
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::theRegionProducer
std::unique_ptr< GlobalTrackingRegionProducerFromBeamSpot > theRegionProducer
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:58
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::ss
std::stringstream ss
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:92
EDAnalyzer.h
SeedForPhotonConversion1Leg.h
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
ClusterChecker
Definition: ClusterChecker.h:30
edm::Handle< reco::TrackCollection >
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:33
TrackFwd.h
BeamSpot.h
IdealHelixParameters
Definition: IdealHelixParameters.h:21
ElectronSeedTrackRefFix_cfi.seedCollection
seedCollection
Definition: ElectronSeedTrackRefFix_cfi.py:9
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::theHitsGenerator
std::unique_ptr< CombinedHitPairGeneratorForPhotonConversion > theHitsGenerator
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:56
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::regions
Regions regions
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:74
reco::BeamSpot
Definition: BeamSpot.h:21
reco::Track
Definition: Track.h:27
PrintRecoObjects.h
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::myEsetup
const edm::EventSetup * myEsetup
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:78
PrintRecoObjects
Definition: PrintRecoObjects.h:20
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::token_vertex
edm::EDGetTokenT< reco::VertexCollection > token_vertex
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:68
b
double b
Definition: hdecay.h:118
dso_hidden
#define dso_hidden
Definition: Visibility.h:12
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::token_refitter
edm::EDGetTokenT< reco::TrackCollection > token_refitter
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:70
IdealHelixParameters.h
Vertex.h
edm::ParameterSet
Definition: ParameterSet.h:47
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
a
double a
Definition: hdecay.h:119
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::recoBeamSpotHandle
edm::Handle< reco::BeamSpot > recoBeamSpotHandle
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:82
Event.h
HLT_FULL_cff.region
region
Definition: HLT_FULL_cff.py:88338
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::_applyTkVtxConstraint
bool _applyTkVtxConstraint
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:65
GlobalTrackingRegionProducerFromBeamSpot.h
edm::EventSetup
Definition: EventSetup.h:57
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::theSilentOnClusterCheck
bool theSilentOnClusterCheck
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:61
ClusterChecker.h
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::_primaryVtxInputTag
edm::InputTag _primaryVtxInputTag
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:67
VertexFwd.h
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::IR
Regions::const_iterator IR
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:73
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::theSeedCreator
std::unique_ptr< SeedForPhotonConversion1Leg > theSeedCreator
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:57
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::_maxNumSelVtx
size_t _maxNumSelVtx
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:64
Frameworkfwd.h
TrackingRegion
Definition: TrackingRegion.h:41
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::theClusterCheck
ClusterChecker theClusterCheck
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:60
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::_vtxMinDoF
double _vtxMinDoF
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:63
ConsumesCollector.h
CombinedHitPairGeneratorForPhotonConversion.h
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::getIdealHelixParameters
IdealHelixParameters * getIdealHelixParameters()
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:40
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::myEvent
const edm::Event * myEvent
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:79
ParameterSet.h
event
Definition: event.py:1
edm::Event
Definition: Event.h:73
MagneticField
Definition: MagneticField.h:19
lt_
bool lt_(std::pair< double, short > a, std::pair< double, short > b)
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:31
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::magField
const MagneticField * magField
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:81
edm::InputTag
Definition: InputTag.h:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
reco::Vertex
Definition: Vertex.h:35
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo::po
PrintRecoObjects po
Definition: PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h:90