ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/interface/LeptonAnalyzer.h
Revision: 1.3
Committed: Wed Jun 10 11:17:05 2009 UTC (15 years, 10 months ago) by lethuill
Content type: text/plain
Branch: MAIN
CVS Tags: all_3_3_2_01, all_3_2_5_02, all_3_2_5_01, all_2_2_9_03, all_2_2_9_02, all_2_2_9_01, HEAD
Branch point for: CMSSW_2_2_X_br
Changes since 1.2: +21 -18 lines
Error occurred while calculating annotation data.
Log Message:
Better protection against missing collection / Cleaning data format selection / Last iteration for migration to PAT of Photons

File Contents

# Content
1 #ifndef LeptonAnalyzer_h
2 #define LeptonAnalyzer_h
3
4 // system include files
5 #include <iostream>
6
7 // user include files
8 #include "FWCore/Framework/interface/Event.h"
9 #include "FWCore/Framework/interface/EventSetup.h"
10 #include "FWCore/ParameterSet/interface/ParameterSet.h"
11 #include "FWCore/Framework/interface/ESHandle.h"
12
13 #include "DataFormats/Math/interface/Point3D.h"
14 #include "DataFormats/TrackReco/interface/Track.h"
15 #include "DataFormats/TrackReco/interface/TrackFwd.h"
16 #include "DataFormats/TrackReco/interface/HitPattern.h"
17
18 #include "DataFormats/VertexReco/interface/Vertex.h"
19 #include "DataFormats/VertexReco/interface/VertexFwd.h"
20
21 #include "TrackingTools/TransientTrack/interface/TransientTrackBuilder.h"
22 #include "TrackingTools/Records/interface/TransientTrackRecord.h"
23 #include "TrackingTools/IPTools/interface/IPTools.h"
24
25 #include "FWCore/Framework/interface/EventSetupRecordImplementation.h"
26
27 #include "../interface/TRootEvent.h"
28 #include "../interface/TRootBeamSpot.h"
29
30
31 class LeptonAnalyzer
32 {
33
34 public:
35 LeptonAnalyzer(const edm::ParameterSet& producersNames, const edm::ParameterSet& myConfig, int verbosity);
36 ~LeptonAnalyzer();
37 void setVerbosity(int verbosity) {verbosity_ = verbosity; };
38 void initIPCalculator(const edm::Event& iEvent, const edm::EventSetup& iSetup, TRootEvent* rootEvent, TRootBeamSpot* rootBeamSpot);
39 float ip3DSignificance(const reco::TransientTrack& track);
40
41 protected:
42 int verbosity_;
43 bool allowMissingCollection_;
44 bool initOK_;
45 std::string dataType_ ;
46 bool doPrimaryVertex_;
47 bool doBeamSpot_;
48 edm::InputTag vertexProducer_;
49 bool dummyVertex_;
50 edm::ESHandle<TransientTrackBuilder> trackBuilder_;
51 const reco::Vertex* primaryVertex_;
52 const GlobalPoint* vertexPoint_;
53
54 };
55
56 #endif