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 "../interface/LeptonAnalyzer.h" |
10 |
|
#include "../interface/TRootMuon.h" |
11 |
+ |
#include "../interface/TRootBeamSpot.h" |
12 |
|
|
13 |
|
#include "TClonesArray.h" |
14 |
|
|
15 |
|
|
16 |
< |
class MuonAnalyzer{ |
16 |
> |
class MuonAnalyzer : public LeptonAnalyzer |
17 |
> |
{ |
18 |
|
|
19 |
|
public: |
20 |
|
MuonAnalyzer(const edm::ParameterSet& producersNames); |
21 |
< |
MuonAnalyzer(const edm::ParameterSet& producersNames, int verbosity); |
21 |
> |
MuonAnalyzer(const edm::ParameterSet& producersNames, const edm::ParameterSet& myConfig, int verbosity); |
22 |
|
~MuonAnalyzer(); |
23 |
< |
void SetVerbosity(int verbosity) {verbosity_ = verbosity; }; |
24 |
< |
void Process(const edm::Event& iEvent, TClonesArray* rootMuons); |
23 |
> |
//void SetVerbosity(int verbosity) {verbosity_ = verbosity; }; |
24 |
> |
void Process(const edm::Event& iEvent, TRootBeamSpot* rootBeamSpot, TClonesArray* rootMuons); |
25 |
|
|
26 |
|
private: |
27 |
< |
int verbosity_; |
28 |
< |
std::string dataType_ ; |
27 |
> |
//int verbosity_; |
28 |
> |
//std::string dataType_ ; |
29 |
|
edm::InputTag muonProducer_; |
30 |
< |
|
30 |
> |
bool useMC_; |
31 |
> |
bool doPrimaryVertex_; |
32 |
> |
bool doBeamSpot_; |
33 |
|
}; |
34 |
|
|
35 |
|
#endif |