1 |
|
#ifndef MuonAnalyzer_h |
2 |
|
#define MuonAnalyzer_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 |
– |
|
4 |
|
#include "DataFormats/MuonReco/interface/Muon.h" |
5 |
|
#include "DataFormats/MuonReco/interface/MuonFwd.h" |
6 |
+ |
#include "DataFormats/PatCandidates/interface/Muon.h" |
7 |
+ |
#include "DataFormats/Math/interface/Point3D.h" |
8 |
|
|
9 |
< |
#include "UserCode/Morgan/interface/TRootMuon.h" |
9 |
> |
#include "../interface/LeptonAnalyzer.h" |
10 |
> |
#include "../interface/TRootMuon.h" |
11 |
|
|
12 |
|
#include "TClonesArray.h" |
13 |
|
|
14 |
|
|
15 |
< |
class MuonAnalyzer{ |
15 |
> |
class MuonAnalyzer : public LeptonAnalyzer |
16 |
> |
{ |
17 |
|
|
18 |
|
public: |
19 |
|
MuonAnalyzer(const edm::ParameterSet& producersNames); |
20 |
< |
MuonAnalyzer(const edm::ParameterSet& producersNames, int verbosity); |
20 |
> |
MuonAnalyzer(const edm::ParameterSet& producersNames, const edm::ParameterSet& myConfig, int verbosity); |
21 |
|
~MuonAnalyzer(); |
22 |
< |
void SetVerbosity(int verbosity) {verbosity_ = verbosity; }; |
23 |
< |
void Process(const edm::Event& iEvent, TClonesArray* rootMuons); |
22 |
> |
//void SetVerbosity(int verbosity) {verbosity_ = verbosity; }; |
23 |
> |
void Process(const edm::Event& iEvent, TRootBeamSpot* rootBeamSpot, TClonesArray* rootMuons); |
24 |
|
|
25 |
|
private: |
26 |
< |
int verbosity_; |
27 |
< |
edm::InputTag muonProducer_; |
32 |
< |
|
26 |
> |
bool useMC_; |
27 |
> |
edm::InputTag muonProducer_; |
28 |
|
}; |
29 |
|
|
30 |
|
#endif |