ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/interface/VertexAnalyzer.h
Revision: 1.3
Committed: Fri Apr 10 12:06:37 2009 UTC (16 years ago) by lethuill
Content type: text/plain
Branch: MAIN
CVS Tags: pat_2_2_5_03
Changes since 1.2: +5 -1 lines
Log Message:
Add "Vertices" branch with TCloneArray of TRootVertex

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.1
18 lethuill 1.2 #include "../interface/TRootEvent.h"
19 lethuill 1.3 #include "../interface/TRootVertex.h"
20 lethuill 1.1
21     #include "TClonesArray.h"
22    
23    
24     class VertexAnalyzer{
25    
26     public:
27     VertexAnalyzer(const edm::ParameterSet& producersNames);
28     VertexAnalyzer(const edm::ParameterSet& producersNames, int verbosity);
29     ~VertexAnalyzer();
30     void SetVerbosity(int verbosity) {verbosity_ = verbosity; };
31 lethuill 1.3 void Process(const edm::Event& iEvent, TRootEvent* rootEvent, TClonesArray* rootVertices);
32 lethuill 1.1
33     private:
34     int verbosity_;
35     edm::InputTag primaryVertexProducer_;
36    
37     };
38    
39     #endif