Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
HLTriggerOffline
Tau
interface
L2TauAnalyzer.h
Go to the documentation of this file.
1
// Original Author: Michail Bachtis
2
// Created: Sun Jan 20 20:10:02 CST 2008
3
// University of Wisconsin-Madison
4
5
6
// system include files
7
#include <memory>
8
9
// user include files
10
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
11
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
12
#include "
FWCore/Framework/interface/Event.h
"
13
#include "
FWCore/Framework/interface/MakerMacros.h
"
14
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
15
#include "
FWCore/Utilities/interface/InputTag.h
"
16
#include "
DataFormats/JetReco/interface/CaloJet.h
"
17
#include "
DataFormats/TauReco/interface/L2TauInfoAssociation.h
"
18
#include "
DataFormats/L1Trigger/interface/L1JetParticle.h
"
19
#include "
DataFormats/L1Trigger/interface/L1JetParticleFwd.h
"
20
#include "
DataFormats/Math/interface/LorentzVector.h
"
21
#include <string>
22
#include <TTree.h>
23
#include <TFile.h>
24
25
typedef
math::XYZTLorentzVectorD
LV
;
26
typedef
std::vector<LV>
LVColl
;
27
28
//Matching struct
29
30
31
struct
MatchElementL2
{
32
bool
matched
;
33
double
deltar
;
34
double
mcEta
;
35
double
mcEt
;
36
};
37
38
39
class
L2TauAnalyzer
:
public
edm::EDAnalyzer
{
40
public
:
41
explicit
L2TauAnalyzer
(
const
edm::ParameterSet
&);
42
~L2TauAnalyzer
();
43
44
private
:
45
virtual
void
beginJob
() ;
46
virtual
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&);
47
virtual
void
endJob
() ;
48
//Parameters to read
49
edm::InputTag
l2TauInfoAssoc_
;
//Path to analyze
50
edm::InputTag
l1Taus_
;
//Path to analyze
51
edm::InputTag
l1Jets_
;
//Path to analyze
52
std::string
rootFile_
;
//Output File Name
53
bool
IsSignal_
;
//Flag to tell the analyzer if it is signal OR QCD
54
edm::InputTag
mcColl_
;
// input products from HLTMcInfo
55
56
57
double
matchDR_
;
58
59
int
cl_Nclusters
;
60
float
ecalIsol_Et
,
towerIsol_Et
,
cl_etaRMS
,
cl_phiRMS
,
cl_drRMS
,
MCeta
,
MCet
,
seedTowerEt
,
JetEt
,
JetEta
,
L1et
,
L1eta
,
jetEMF
;
61
TFile *
l2file
;
//File to store the histos...
62
TTree *
l2tree
;
63
64
MatchElementL2
match
(
const
reco::Jet
&,
const
LVColl
&);
//See if this Jet Is Matched
65
MatchElementL2
match
(
const
reco::Jet
&,
const
l1extra::L1JetParticleCollection
&);
//See if this Jet Is Matched
66
67
};
68
69
L2TauAnalyzer::MCet
float MCet
Definition:
L2TauAnalyzer.h:60
L2TauInfoAssociation.h
L2TauAnalyzer::L1eta
float L1eta
Definition:
L2TauAnalyzer.h:60
L2TauAnalyzer::l1Taus_
edm::InputTag l1Taus_
Definition:
L2TauAnalyzer.h:50
math::XYZTLorentzVectorD
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > XYZTLorentzVectorD
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition:
LorentzVector.h:15
L2TauAnalyzer::IsSignal_
bool IsSignal_
Definition:
L2TauAnalyzer.h:53
reco::Jet
Base class for all types of Jets.
Definition:
Jet.h:21
Event.h
L2TauAnalyzer::cl_phiRMS
float cl_phiRMS
Definition:
L2TauAnalyzer.h:60
l1extra::L1JetParticleCollection
std::vector< L1JetParticle > L1JetParticleCollection
Definition:
L1JetParticleFwd.h:30
MatchElementL2::mcEta
double mcEta
Definition:
L2TauAnalyzer.h:34
MakerMacros.h
L2TauAnalyzer::analyze
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition:
L2TauAnalyzer.cc:63
Frameworkfwd.h
L2TauAnalyzer::MCeta
float MCeta
Definition:
L2TauAnalyzer.h:60
ParameterSet.h
L2TauAnalyzer::l2file
TFile * l2file
Definition:
L2TauAnalyzer.h:61
LV
math::XYZTLorentzVectorD LV
Definition:
HLTTauDQMPlotter.h:22
L2TauAnalyzer::endJob
virtual void endJob()
Definition:
L2TauAnalyzer.cc:159
L2TauAnalyzer::L2TauAnalyzer
L2TauAnalyzer(const edm::ParameterSet &)
Definition:
L2TauAnalyzer.cc:7
L2TauAnalyzer::l2TauInfoAssoc_
edm::InputTag l2TauInfoAssoc_
Definition:
L2TauAnalyzer.h:49
L1JetParticle.h
LVColl
std::vector< LV > LVColl
Definition:
HLTTauDQMPlotter.h:23
MatchElementL2::matched
bool matched
Definition:
L2TauAnalyzer.h:32
L2TauAnalyzer::L1et
float L1et
Definition:
L2TauAnalyzer.h:60
MatchElementL2::deltar
double deltar
Definition:
L2TauAnalyzer.h:33
edm::EventSetup
Definition:
EventSetup.h:44
LorentzVector.h
L2TauAnalyzer::match
MatchElementL2 match(const reco::Jet &, const LVColl &)
Definition:
L2TauAnalyzer.cc:165
edm::EDAnalyzer
Definition:
EDAnalyzer.h:14
EDAnalyzer.h
L2TauAnalyzer::JetEt
float JetEt
Definition:
L2TauAnalyzer.h:60
L2TauAnalyzer::mcColl_
edm::InputTag mcColl_
Definition:
L2TauAnalyzer.h:54
L2TauAnalyzer::~L2TauAnalyzer
~L2TauAnalyzer()
Definition:
L2TauAnalyzer.cc:56
L2TauAnalyzer::l1Jets_
edm::InputTag l1Jets_
Definition:
L2TauAnalyzer.h:51
L2TauAnalyzer::seedTowerEt
float seedTowerEt
Definition:
L2TauAnalyzer.h:60
L2TauAnalyzer::rootFile_
std::string rootFile_
Definition:
L2TauAnalyzer.h:52
L2TauAnalyzer::towerIsol_Et
float towerIsol_Et
Definition:
L2TauAnalyzer.h:60
edm::InputTag
Definition:
InputTag.h:12
InputTag.h
L2TauAnalyzer::jetEMF
float jetEMF
Definition:
L2TauAnalyzer.h:60
L2TauAnalyzer::matchDR_
double matchDR_
Definition:
L2TauAnalyzer.h:57
L2TauAnalyzer::JetEta
float JetEta
Definition:
L2TauAnalyzer.h:60
edm::ParameterSet
Definition:
ParameterSet.h:35
L2TauAnalyzer::cl_drRMS
float cl_drRMS
Definition:
L2TauAnalyzer.h:60
L2TauAnalyzer::ecalIsol_Et
float ecalIsol_Et
Definition:
L2TauAnalyzer.h:60
L2TauAnalyzer::cl_etaRMS
float cl_etaRMS
Definition:
L2TauAnalyzer.h:60
CaloJet.h
edm::Event
Definition:
Event.h:50
L2TauAnalyzer::l2tree
TTree * l2tree
Definition:
L2TauAnalyzer.h:62
L2TauAnalyzer::cl_Nclusters
int cl_Nclusters
Definition:
L2TauAnalyzer.h:59
MatchElementL2::mcEt
double mcEt
Definition:
L2TauAnalyzer.h:35
L2TauAnalyzer
Definition:
L2TauAnalyzer.h:39
L1JetParticleFwd.h
MatchElementL2
Definition:
L2TauAnalyzer.h:31
L2TauAnalyzer::beginJob
virtual void beginJob()
Definition:
L2TauAnalyzer.cc:152
Generated for CMSSW Reference Manual by
1.8.5