ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/interface/LeptonAnalyzer.h
Revision: 1.2
Committed: Tue Apr 21 13:01:56 2009 UTC (16 years ago) by lethuill
Content type: text/plain
Branch: MAIN
CVS Tags: JeSuisBeaucoupPlusGrosQunReco_2_2_7_01, RecoPhoton_2_2_7_02
Changes since 1.1: +5 -2 lines
Log Message:
Use beam spot in 3D impact parameter calculation - Not checked...

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 class LeptonAnalyzer
31 {
32
33 public:
34 LeptonAnalyzer(const edm::ParameterSet& producersNames);
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 std::string dataType_ ;
44 bool doPrimaryVertex_;
45 bool doBeamSpot_;
46 edm::InputTag vertexProducer_;
47 bool dummyVertex_;
48 edm::ESHandle<TransientTrackBuilder> trackBuilder_;
49 const reco::Vertex* primaryVertex_;
50 const GlobalPoint* vertexPoint_;
51 };
52
53 #endif