test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HLTMuon.h
Go to the documentation of this file.
1 #ifndef HLTMUON_H
2 #define HLTMUON_H
3 
4 #include "TH1.h"
5 #include "TH2.h"
6 #include "TFile.h"
7 #include "TNamed.h"
8 #include <vector>
9 #include <map>
10 #include "TROOT.h"
11 #include "TChain.h"
12 
24 
31 //#include "DataFormats/MuonReco/interface/MuonTrackLinks.h"
40 
43 
45 
48 
54 
57 #include "TMath.h"
59 
60 
61 typedef std::vector<std::string> MyStrings;
62 
69 class HLTMuon {
70 public:
71  HLTMuon();
72 
73  void setup(const edm::ParameterSet& pSet, TTree* tree);
74 
80  const edm::Handle<edm::ValueMap<bool> > & isoMap2,
82  const edm::Handle<edm::ValueMap<bool> > & isoMap3,
83  const edm::Handle<edm::ValueMap<bool> > & isoTrk10Map3,
86  const edm::Handle<reco::VertexCollection> & dimuvtxcands3,
88  const edm::Handle<reco::MuonCollection> & trkmucands,
89  //const reco::BeamSpot::Point & BSPosition,
90  const edm::ESHandle<MagneticField> & theMagField,
91  const edm::Handle<reco::BeamSpot> & recoBeamSpotHandle,
92  TTree* tree);
93 
94 
95 private:
96 
97  int validChambers(const reco::TrackRef & track);
98 
99  // Tree variables
114 
115 
121  float *dimudca;
125 
126 
127  // input variables
129 
131 
132  static float etaBarrel() { return 1.4; }
133 
134 };
135 
136 #endif
int ntrackermuoncand
Definition: HLTMuon.h:109
int * muonl32idx
Definition: HLTMuon.h:110
int * muonl2iso
Definition: HLTMuon.h:110
int npfmuon
Definition: HLTMuon.h:109
float * muonl2novtxdr
Definition: HLTMuon.h:107
float * muonl2drsign
Definition: HLTMuon.h:104
float * muonchi2NDF
Definition: HLTMuon.h:100
int * muonl2chg
Definition: HLTMuon.h:110
float * dimuvtxcosalpha
Definition: HLTMuon.h:123
int * muonl2novtxndtcscstat
Definition: HLTMuon.h:110
float * pfmuoneta
Definition: HLTMuon.h:102
float * oniaPixelNormChi2
Definition: HLTMuon.h:117
int * dimuvtx2nd
Definition: HLTMuon.h:122
float * dimuvtxmu2dipmax
Definition: HLTMuon.h:124
float * oniaTrackdr
Definition: HLTMuon.h:118
float * muonl2novtxpterr
Definition: HLTMuon.h:108
int * muonl3nhits
Definition: HLTMuon.h:110
float * pfmuone
Definition: HLTMuon.h:102
int nDiMu
Definition: HLTMuon.h:120
float * oniaTrackpt
Definition: HLTMuon.h:118
int * muonNValidTrkHits
Definition: HLTMuon.h:103
float * muonl3normchi2
Definition: HLTMuon.h:105
int * muonl2nhits
Definition: HLTMuon.h:110
float * muonl2pt
Definition: HLTMuon.h:104
float * muonl3globaldrsign
Definition: HLTMuon.h:106
int * oniaTrackHits
Definition: HLTMuon.h:119
int * muonl21idx
Definition: HLTMuon.h:110
float * oniaTrackdz
Definition: HLTMuon.h:118
float * muonl3phi
Definition: HLTMuon.h:105
float * dimuvtxrsig
Definition: HLTMuon.h:123
int * muonl2novtxnhits
Definition: HLTMuon.h:110
int * muonl2nstat
Definition: HLTMuon.h:110
int * dimu1st
Definition: HLTMuon.h:122
float * muonl3vtxz
Definition: HLTMuon.h:105
int nmu2cand
Definition: HLTMuon.h:109
float * muonl2eta
Definition: HLTMuon.h:104
float * muonl3pterr
Definition: HLTMuon.h:108
float * oniaPixelpt
Definition: HLTMuon.h:117
int nOniaTrackCand
Definition: HLTMuon.h:116
float * dimuvtxchi2
Definition: HLTMuon.h:123
float * pfmuonphi
Definition: HLTMuon.h:102
float * trackermuonphi
Definition: HLTMuon.h:112
float * muonl3globaldz
Definition: HLTMuon.h:106
float * oniaTrackNormChi2
Definition: HLTMuon.h:118
float * muone
Definition: HLTMuon.h:100
float * trackermuoneta
Definition: HLTMuon.h:112
int * muontype
Definition: HLTMuon.h:103
int nmu3cand
Definition: HLTMuon.h:109
float * muoncharge
Definition: HLTMuon.h:100
int * muonl2novtxchg
Definition: HLTMuon.h:110
float * oniaTracketa
Definition: HLTMuon.h:118
float * oniaPixeldr
Definition: HLTMuon.h:117
int * trackermuonnhits
Definition: HLTMuon.h:113
void setup(const edm::ParameterSet &pSet, TTree *tree)
Definition: HLTMuon.cc:23
float * muonl2dz
Definition: HLTMuon.h:104
float * muonHCalIsoR03
Definition: HLTMuon.h:100
float * muonl3globaldr
Definition: HLTMuon.h:106
int * muonl2ndtcscstat
Definition: HLTMuon.h:110
float * muonl2pterr
Definition: HLTMuon.h:108
int nmu2novtxcand
Definition: HLTMuon.h:109
float * pfmuonet
Definition: HLTMuon.h:102
bool _Monte
Definition: HLTMuon.h:128
float * dimuvtxmu2dipsigmin
Definition: HLTMuon.h:124
static float etaBarrel()
Definition: HLTMuon.h:132
int * muonl2novtx1idx
Definition: HLTMuon.h:110
float * dimuvtxroversig
Definition: HLTMuon.h:123
int * muonNValidMuonHits
Definition: HLTMuon.h:103
int * muonl3trk10iso
Definition: HLTMuon.h:111
int * muonl3nmuonhits
Definition: HLTMuon.h:111
float * muonl3pt
Definition: HLTMuon.h:105
float * pfmuonpt
Definition: HLTMuon.h:102
float * trackermuonpt
Definition: HLTMuon.h:112
std::vector< std::string > MyStrings
EgammaCoreTools.
Definition: HLTAlCa.h:39
float * muonl2novtxeta
Definition: HLTMuon.h:107
float * muonpt
Definition: HLTMuon.h:100
float * pfmuoncharge
Definition: HLTMuon.h:102
float * muonTrkIsoR03
Definition: HLTMuon.h:100
int * muonl2novtxnstat
Definition: HLTMuon.h:110
float * muonl2novtxpt
Definition: HLTMuon.h:107
int validChambers(const reco::TrackRef &track)
Definition: HLTMuon.cc:788
float * oniaPixeleta
Definition: HLTMuon.h:117
float * muonl3globalpt
Definition: HLTMuon.h:106
int * muonl3chg
Definition: HLTMuon.h:110
int * trackermuonchg
Definition: HLTMuon.h:113
void analyze(const edm::Handle< reco::MuonCollection > &muon, const edm::Handle< reco::PFCandidateCollection > &pfmuon, const edm::Handle< l1extra::L1MuonParticleCollection > &mucands1, const edm::Handle< reco::RecoChargedCandidateCollection > &mucands2, const edm::Handle< edm::ValueMap< bool > > &isoMap2, const edm::Handle< reco::RecoChargedCandidateCollection > &mucands3, const edm::Handle< edm::ValueMap< bool > > &isoMap3, const edm::Handle< edm::ValueMap< bool > > &isoTrk10Map3, const edm::Handle< reco::RecoChargedCandidateCollection > &oniaPixelCands, const edm::Handle< reco::RecoChargedCandidateCollection > &oniaTrackCands, const edm::Handle< reco::VertexCollection > &dimuvtxcands3, const edm::Handle< reco::RecoChargedCandidateCollection > &munovtxcands2, const edm::Handle< reco::MuonCollection > &trkmucands, const edm::ESHandle< MagneticField > &theMagField, const edm::Handle< reco::BeamSpot > &recoBeamSpotHandle, TTree *tree)
Definition: HLTMuon.cc:281
bool _Debug
Definition: HLTMuon.h:128
int nDiMuVtx
Definition: HLTMuon.h:120
float * muonl2novtxdrsign
Definition: HLTMuon.h:107
int * muonl3global2idx
Definition: HLTMuon.h:110
float * dimuvtxmu2dipsigmax
Definition: HLTMuon.h:124
float * muonl3globaleta
Definition: HLTMuon.h:106
float * muonl2novtxdz
Definition: HLTMuon.h:107
float * muonphi
Definition: HLTMuon.h:100
float * dimuvtxr
Definition: HLTMuon.h:123
float * muonl3dr
Definition: HLTMuon.h:105
float * muonl2phi
Definition: HLTMuon.h:104
int * muonl3globalchg
Definition: HLTMuon.h:110
float * oniaPixeldz
Definition: HLTMuon.h:117
float * muonl3globalvtxz
Definition: HLTMuon.h:106
int * muonl2novtxnchambers
Definition: HLTMuon.h:110
int * muonl2novtxiso
Definition: HLTMuon.h:110
int * muonl3npixelhits
Definition: HLTMuon.h:111
float * muonl3globalphi
Definition: HLTMuon.h:106
HLTMuon()
Definition: HLTMuon.cc:14
float * oniaTrackphi
Definition: HLTMuon.h:118
float * muonl3dz
Definition: HLTMuon.h:105
int nOniaPixelCand
Definition: HLTMuon.h:116
float * muonD0
Definition: HLTMuon.h:100
float * muonECalIsoR03
Definition: HLTMuon.h:100
int * oniaPixelchg
Definition: HLTMuon.h:119
float * muonl3eta
Definition: HLTMuon.h:105
float * dimuvtxmu2dipmin
Definition: HLTMuon.h:124
int * muonl3iso
Definition: HLTMuon.h:110
int * muonl2nchambers
Definition: HLTMuon.h:110
float * muonl2dr
Definition: HLTMuon.h:104
float * muonet
Definition: HLTMuon.h:100
float * oniaPixelphi
Definition: HLTMuon.h:117
int * dimuvtx1st
Definition: HLTMuon.h:122
float * muonl2novtxphi
Definition: HLTMuon.h:107
int * dimu2nd
Definition: HLTMuon.h:122
int * oniaPixelHits
Definition: HLTMuon.h:119
int * oniaTrackchg
Definition: HLTMuon.h:119
int * muonl3ntrackerhits
Definition: HLTMuon.h:111
float * muoneta
Definition: HLTMuon.h:100
int evtCounter
Definition: HLTMuon.h:130
int nmuon
Definition: HLTMuon.h:109
float * muonl2vtxz
Definition: HLTMuon.h:104
float * dimudca
Definition: HLTMuon.h:121