ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/interface/VertexAnalyzer.h
Revision: 1.5
Committed: Tue Apr 21 10:42:22 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, pat_2_2_7_01
Changes since 1.4: +7 -3 lines
Log Message:
Use beam spot in impact parameter calculation

File Contents

# User Rev Content
1 lethuill 1.1 #ifndef VertexAnalyzer_h
2     #define VertexAnalyzer_h
3    
4     // system include files
5     #include <iostream>
6    
7     // user include files
8     #include "FWCore/Framework/interface/Event.h"
9     #include "FWCore/ParameterSet/interface/ParameterSet.h"
10     #include "FWCore/Framework/interface/ESHandle.h"
11    
12 lethuill 1.3 #include "DataFormats/TrackReco/interface/Track.h"
13     #include "DataFormats/TrackReco/interface/TrackFwd.h"
14 lethuill 1.1 #include "DataFormats/VertexReco/interface/Vertex.h"
15     #include "DataFormats/VertexReco/interface/VertexFwd.h"
16 lethuill 1.3 #include "DataFormats/Common/interface/RefToBase.h"
17 lethuill 1.5 #include "DataFormats/BeamSpot/interface/BeamSpot.h"
18 lethuill 1.1
19 lethuill 1.2 #include "../interface/TRootEvent.h"
20 lethuill 1.5 #include "../interface/TRootBeamSpot.h"
21 lethuill 1.3 #include "../interface/TRootVertex.h"
22 lethuill 1.1
23     #include "TClonesArray.h"
24    
25    
26     class VertexAnalyzer{
27    
28     public:
29     VertexAnalyzer(const edm::ParameterSet& producersNames);
30     VertexAnalyzer(const edm::ParameterSet& producersNames, int verbosity);
31     ~VertexAnalyzer();
32 lethuill 1.5 void setVerbosity(int verbosity) {verbosity_ = verbosity; };
33     void getBeamSpot(const edm::Event& iEvent, TRootBeamSpot* rootBeamSpot);
34     void getVertices(const edm::Event& iEvent, TClonesArray* rootVertices);
35     void selectPrimary(TRootEvent* rootEvent, TClonesArray* rootVertices);
36 lethuill 1.1
37     private:
38     int verbosity_;
39     edm::InputTag primaryVertexProducer_;
40 lethuill 1.5 edm::InputTag beamSpotProducer_;
41 lethuill 1.1
42     };
43    
44     #endif