1 |
lethuill |
1.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 |
lethuill |
1.2 |
#include "../interface/TRootBeamSpot.h"
|
29 |
lethuill |
1.1 |
|
30 |
lethuill |
1.3 |
|
31 |
lethuill |
1.1 |
class LeptonAnalyzer
|
32 |
|
|
{
|
33 |
|
|
|
34 |
lethuill |
1.3 |
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 |
lethuill |
1.1 |
};
|
55 |
|
|
|
56 |
|
|
#endif
|