2 #include "Math/GenVector/VectorUtil.h"
8 l2TauInfoAssoc_(iConfig.getParameter<edm::InputTag>(
"L2InfoAssociationInput")),
9 l1Taus_(iConfig.getParameter<edm::InputTag>(
"L1TauCollection")),
10 l1Jets_(iConfig.getParameter<edm::InputTag>(
"L1JetCollection")),
11 rootFile_(iConfig.getParameter<std::string>(
"outputFileName")),
12 IsSignal_(iConfig.getParameter<bool>(
"IsSignal")),
13 mcColl_(iConfig.getParameter<edm::InputTag>(
"MatchedCollection"))
18 l2tree =
new TTree(
"l2tree",
"Level 2 Tau Tree");
38 l2tree->Branch(
"ecalIsolEt",&
ecalIsol_Et,
"ecalIsolEt/F");
39 l2tree->Branch(
"jetEMF",&
jetEMF,
"jetEMF/F");
40 l2tree->Branch(
"towerIsolEt",&
towerIsol_Et,
"towerIsolEt/F");
41 l2tree->Branch(
"clEtaRMS",&
cl_etaRMS,
"clEtaRMS/F");
42 l2tree->Branch(
"clPhiRMS",&
cl_phiRMS,
"clPhiRMS/F");
43 l2tree->Branch(
"clDrRMS",&
cl_drRMS,
"clDrRMS/F");
44 l2tree->Branch(
"mcEta",&
MCeta,
"mcEta/F");
45 l2tree->Branch(
"mcEt",&
MCet,
"mcEt/F");
46 l2tree->Branch(
"clNclusters",&
cl_Nclusters,
"clNclusters/I");
47 l2tree->Branch(
"seedTowerEt",&
seedTowerEt,
"seedTowerEt/F");
48 l2tree->Branch(
"jetEt",&
JetEt,
"jetEt/F");
49 l2tree->Branch(
"jetEta",&
JetEta,
"jetEta/F");
50 l2tree->Branch(
"L1Et",&
L1et,
"L1Et/F");
51 l2tree->Branch(
"L1Eta",&
L1eta,
"L1Eta/F");
75 if(l2TauInfoAssoc->size()>0)
90 mcMatch=
match(jet,*McInfo);
119 l1Match=
match(jet,*L1Taus);
130 l1Match=
match(jet,*L1Taus);
172 double delta_min=100.;
176 double matchingDR=0.3;
182 for(std::vector<LV>::const_iterator it = McInfo.begin();it!=McInfo.end();++it)
184 double delta = ROOT::Math::VectorUtil::DeltaR(jet.
p4().Vect(),*it);
216 double delta_min=100.;
220 double matchingDR=0.5;
226 for(l1extra::L1JetParticleCollection::const_iterator it = McInfo.begin();it!=McInfo.end();++it)
228 double delta = ROOT::Math::VectorUtil::DeltaR(jet.
p4().Vect(),it->p4().Vect());
Jets made from CaloTowers.
virtual double et() const
transverse energy
Base class for all types of Jets.
virtual void analyze(const edm::Event &, const edm::EventSetup &)
virtual double eta() const
momentum pseudorapidity
L2TauAnalyzer(const edm::ParameterSet &)
edm::InputTag l2TauInfoAssoc_
double ecalIsolEt() const
MatchElementL2 match(const reco::Jet &, const LVColl &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
double hcalIsolEt() const
std::vector< double > ecalClusterShape() const
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
float emEnergyFraction() const
double seedHcalHitEt() const