1 |
mangano |
1.1 |
// system include files
|
2 |
|
|
#include <memory>
|
3 |
|
|
|
4 |
|
|
// user include files
|
5 |
|
|
#include "FWCore/Framework/interface/Frameworkfwd.h"
|
6 |
|
|
#include "FWCore/Framework/interface/EDAnalyzer.h"
|
7 |
|
|
|
8 |
|
|
#include "FWCore/Framework/interface/Event.h"
|
9 |
|
|
#include "FWCore/Framework/interface/EventSetup.h"
|
10 |
|
|
#include "FWCore/Framework/interface/ESHandle.h"
|
11 |
|
|
#include "FWCore/Framework/interface/MakerMacros.h"
|
12 |
|
|
|
13 |
|
|
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
14 |
|
|
|
15 |
|
|
#include "RecoTracker/Record/interface/TrackerRecoGeometryRecord.h"
|
16 |
|
|
#include "RecoTracker/TkDetLayers/interface/GeometricSearchTracker.h"
|
17 |
|
|
|
18 |
|
|
//
|
19 |
|
|
//
|
20 |
|
|
// class decleration
|
21 |
|
|
//
|
22 |
|
|
|
23 |
|
|
class TrackerRecoGeometryAnalyzer : public edm::EDAnalyzer {
|
24 |
|
|
public:
|
25 |
|
|
explicit TrackerRecoGeometryAnalyzer( const edm::ParameterSet& );
|
26 |
|
|
~TrackerRecoGeometryAnalyzer();
|
27 |
|
|
|
28 |
|
|
|
29 |
|
|
virtual void analyze( const edm::Event&, const edm::EventSetup& );
|
30 |
|
|
private:
|
31 |
|
|
// ----------member data ---------------------------
|
32 |
|
|
};
|
33 |
|
|
|
34 |
|
|
//
|
35 |
|
|
// constants, enums and typedefs
|
36 |
|
|
//
|
37 |
|
|
|
38 |
|
|
//
|
39 |
|
|
// static data member definitions
|
40 |
|
|
//
|
41 |
|
|
|
42 |
|
|
//
|
43 |
|
|
// constructors and destructor
|
44 |
|
|
//
|
45 |
|
|
TrackerRecoGeometryAnalyzer::TrackerRecoGeometryAnalyzer( const edm::ParameterSet& iConfig )
|
46 |
|
|
{
|
47 |
|
|
//now do what ever initialization is needed
|
48 |
|
|
|
49 |
|
|
}
|
50 |
|
|
|
51 |
|
|
|
52 |
|
|
TrackerRecoGeometryAnalyzer::~TrackerRecoGeometryAnalyzer()
|
53 |
|
|
{
|
54 |
|
|
|
55 |
|
|
// do anything here that needs to be done at desctruction time
|
56 |
|
|
// (e.g. close files, deallocate resources etc.)
|
57 |
|
|
|
58 |
|
|
}
|
59 |
|
|
|
60 |
|
|
|
61 |
|
|
//
|
62 |
|
|
// member functions
|
63 |
|
|
//
|
64 |
|
|
|
65 |
|
|
// ------------ method called to produce the data ------------
|
66 |
|
|
void
|
67 |
|
|
TrackerRecoGeometryAnalyzer::analyze( const edm::Event& iEvent, const edm::EventSetup& iSetup )
|
68 |
|
|
{
|
69 |
|
|
using namespace edm;
|
70 |
|
|
|
71 |
|
|
std::cout << "Here I am " << std::endl;
|
72 |
|
|
//
|
73 |
|
|
// get the GeometricSearchDet
|
74 |
|
|
//
|
75 |
|
|
edm::ESHandle<GeometricSearchTracker> trak;
|
76 |
|
|
iSetup.get<TrackerRecoGeometryRecord>().get( trak );
|
77 |
|
|
std::cout <<" AFTER " <<std::endl;
|
78 |
|
|
}
|
79 |
|
|
|
80 |
|
|
//define this as a plug-in
|
81 |
|
|
DEFINE_FWK_MODULE(TrackerRecoGeometryAnalyzer)
|
82 |
|
|
|
83 |
|
|
|