CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo.h
Go to the documentation of this file.
1 #ifndef PhotonConversionFinderFromTracks_H
2 #define PhotonConversionFinderFromTracks_H
3 
9 
12 
14 
16 
21 
23 
27 
28 #include <sstream>
29 #include "boost/foreach.hpp"
30 
31 inline bool lt_(std::pair<double,short> a, std::pair<double,short> b) { return a.first<b.first; }
32 
34 
35 
36  public:
37 
41 
42  void init();
43  void clear();
44 
45  void analyze(const edm::Event & event, const edm::EventSetup & setup);
49 
50  private:
51 
52  void loopOnTracks();
53  bool inspectTrack(const reco::Track* track, const TrackingRegion & region, math::XYZPoint& primaryVertexPoint);
54 
55  bool rejectTrack(const reco::Track& track);
56 
57  bool selectPriVtxCompatibleWithTrack(const reco::Track& tk, std::vector<reco::Vertex>& selectedPriVtxCompatibleWithTrack);
58  void loopOnPriVtx(const reco::Track& tk, const std::vector<reco::Vertex>& selectedPriVtxCompatibleWithTrack);
59 
60  //Data Members
62 
65  std::unique_ptr<CombinedHitPairGeneratorForPhotonConversion> theHitsGenerator;
67  std::unique_ptr<GlobalTrackingRegionProducerFromBeamSpot> theRegionProducer;
68 
69 
71 
74 
76  size_t _maxNumSelVtx;
83 
84  typedef std::vector<TrackingRegion* > Regions;
85  typedef Regions::const_iterator IR;
87 
90 
93 
97 
99 
103 
105 
106  std::stringstream ss;
107 
108 };
109 #endif
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo(const edm::ParameterSet &, edm::ConsumesCollector &&iC)
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
std::vector< TrajectorySeed > TrajectorySeedCollection
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
bool inspectTrack(const reco::Track *track, const TrackingRegion &region, math::XYZPoint &primaryVertexPoint)
void loopOnPriVtx(const reco::Track &tk, const std::vector< reco::Vertex > &selectedPriVtxCompatibleWithTrack)
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
double b
Definition: hdecay.h:120
std::unique_ptr< CombinedHitPairGeneratorForPhotonConversion > theHitsGenerator
double a
Definition: hdecay.h:121
bool lt_(std::pair< double, short > a, std::pair< double, short > b)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
bool selectPriVtxCompatibleWithTrack(const reco::Track &tk, std::vector< reco::Vertex > &selectedPriVtxCompatibleWithTrack)