2 #include "Math/GenVector/VectorUtil.h"
11 rootFile_(iConfig.getParameter<std::
string>(
"outputFileName")),
12 IsSignal_(iConfig.getParameter<bool>(
"IsSignal")),
13 mcColl_(consumes<
LVColl>(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)
76 for(L2TauInfoAssociation::const_iterator
p = l2TauInfoAssoc->begin();
p!=l2TauInfoAssoc->end();++
p)
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());
virtual double et() const GCC11_FINAL
transverse energy
Jets made from CaloTowers.
virtual const LorentzVector & p4() const GCC11_FINAL
four-momentum Lorentz vector
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Base class for all types of Jets.
virtual void analyze(const edm::Event &, const edm::EventSetup &)
L2TauAnalyzer(const edm::ParameterSet &)
edm::EDGetTokenT< LVColl > mcColl_
edm::EDGetTokenT< reco::L2TauInfoAssociation > l2TauInfoAssoc_
edm::AssociationMap< edm::OneToValue< reco::CaloJetCollection, reco::L2TauIsolationInfo > > L2TauInfoAssociation
edm::EDGetTokenT< l1extra::L1JetParticleCollection > l1Taus_
double ecalIsolEt() const
MatchElementL2 match(const reco::Jet &, const LVColl &)
virtual float eta() const GCC11_FINAL
momentum pseudorapidity
double hcalIsolEt() const
edm::EDGetTokenT< l1extra::L1JetParticleCollection > l1Jets_
std::vector< double > ecalClusterShape() const
float emEnergyFraction() const
double seedHcalHitEt() const