26 #include <Math/GenVector/VectorUtil.h> 35 #include "TDirectory.h" 156 double deltaPhi(
double v1,
double v2);
157 double deltaR(
double eta1,
double phi1,
double eta2,
double phi2);
169 std::map< std::pair<unsigned int,std::string>,
int>
l1AlgoMap_;
310 myverbose_(iConfig.getUntrackedParameter<
int>(
"verbosity",5)),
311 pvTracksPtMin_(iConfig.getUntrackedParameter<double>(
"pvTracksPtMin",1.0)),
312 debugTrks_(iConfig.getUntrackedParameter<
int>(
"debugTracks",0)),
314 minTrackP_(iConfig.getUntrackedParameter<double>(
"minTrackP",1.0)),
315 maxTrackEta_(iConfig.getUntrackedParameter<double>(
"maxTrackEta",5.0)),
318 tMinE_(iConfig.getUntrackedParameter<double>(
"timeMinCutECAL",-500.)),
319 tMaxE_(iConfig.getUntrackedParameter<double>(
"timeMaxCutECAL",500.)),
320 tMinH_(iConfig.getUntrackedParameter<double>(
"timeMinCutHCAL",-500.)),
321 tMaxH_(iConfig.getUntrackedParameter<double>(
"timeMaxCutHCAL",500.)),
404 tok_L1extTauJet_ = consumes<l1extra::L1JetParticleCollection>(L1extraTauJetSource_);
405 tok_L1extCenJet_ = consumes<l1extra::L1JetParticleCollection>(L1extraCenJetSource_);
406 tok_L1extFwdJet_ = consumes<l1extra::L1JetParticleCollection>(L1extraFwdJetSource_);
407 tok_L1extMu_ = consumes<l1extra::L1MuonParticleCollection>(L1extraMuonSource_);
408 tok_L1extIsoEm_ = consumes<l1extra::L1EmParticleCollection>(L1extraIsoEmSource_);
409 tok_L1extNoIsoEm_ = consumes<l1extra::L1EmParticleCollection>(L1extraNonIsoEmSource_);
410 tok_jets_ = consumes<reco::CaloJetCollection>(JetSrc_);
411 tok_hbhe_ = consumes<HBHERecHitCollection>(HBHERecHitSource_);
647 descriptions.
add(
"isolatedTracksNxN",desc);
652 bool haveIsoTrack=
false;
672 << trkCollection->size();
687 <<
"\nNo valid L1 trigger configuration available." 688 <<
"\nSee text above for error code interpretation" 689 <<
"\nNo return here, in order to test each method, protected against configuration error.";
699 for (
CItAlgo itAlgo = algorithmMap.begin(); itAlgo != algorithmMap.end(); itAlgo++) {
701 int algBitNumber = ( itAlgo->second ).algoBitNumber();
702 l1AlgoMap_.insert( std::pair<std::pair<unsigned int,std::string>,
int>( std::pair<unsigned int,std::string>(algBitNumber, algName) , 0) ) ;
704 std::map< std::pair<unsigned int,std::string>,
int>::iterator itr;
707 <<
" " << (itr->first).second <<
" " 712 std::vector<int> algbits;
713 for (
CItAlgo itAlgo = algorithmMap.begin(); itAlgo != algorithmMap.end(); itAlgo++) {
715 int algBitNumber = ( itAlgo->second ).algoBitNumber();
721 l1AlgoMap_[std::pair<unsigned int,std::string>(algBitNumber, algName)] += 1;
726 algbits.push_back(algBitNumber);
733 << (*t_L1PreScale)[
ii] <<
" " 736 for (
int i=0;
i<128; ++
i) {
745 l1extra::L1JetParticleCollection::const_iterator itr;
747 for (itr = l1TauHandle->begin(),iL1Obj=0; itr != l1TauHandle->end(); ++itr,iL1Obj++) {
755 << itr->pt() <<
" eta/phi " << itr->eta()
756 <<
" " << itr->phi();
763 for (itr = l1CenJetHandle->begin(),iL1Obj=0; itr != l1CenJetHandle->end(); ++itr,iL1Obj++) {
771 <<
" " << itr->pt() <<
" eta/phi " 772 << itr->eta() <<
" " << itr->phi();
779 for (itr = l1FwdJetHandle->begin(),iL1Obj=0; itr != l1FwdJetHandle->end(); ++itr,iL1Obj++) {
787 <<
" " << itr->pt() <<
" eta/phi " 788 << itr->eta() <<
" " << itr->phi();
793 l1extra::L1EmParticleCollection::const_iterator itrEm;
796 for (itrEm = l1IsoEmHandle->begin(),iL1Obj=0; itrEm != l1IsoEmHandle->end(); ++itrEm,iL1Obj++) {
804 <<
" " << itrEm->pt() <<
" eta/phi " 805 << itrEm->eta() <<
" " << itrEm->phi();
812 for (itrEm = l1NonIsoEmHandle->begin(),iL1Obj=0; itrEm != l1NonIsoEmHandle->end(); ++itrEm,iL1Obj++) {
820 <<
" " << itrEm->pt() <<
" eta/phi " 821 << itrEm->eta() <<
" " << itrEm->phi();
826 l1extra::L1MuonParticleCollection::const_iterator itrMu;
829 for (itrMu = l1MuHandle->begin(),iL1Obj=0; itrMu != l1MuHandle->end(); ++itrMu,iL1Obj++) {
837 <<
" " << itrMu->pt() <<
" eta/phi " 838 << itrMu->eta() <<
" " << itrMu->phi();
848 std::vector<reco::Track> svTracks;
850 double sumPtMax = -1.0;
851 for(
unsigned int ind=0;ind<recVtxs->size();ind++) {
853 if ( !((*recVtxs)[ind].isFake()) ) {
854 double vtxTrkSumPt=0.0, vtxTrkSumPtWt=0.0;
856 double vtxTrkSumPtHP=0.0, vtxTrkSumPtHPWt=0.0;
857 int vtxTrkNHP =0, vtxTrkNHPWt =0;
861 for (vtxTrack = (*recVtxs)[ind].tracks_begin(); vtxTrack!=(*recVtxs)[ind].tracks_end(); vtxTrack++) {
865 bool trkQuality = (*vtxTrack)->quality(trackQuality_);
867 vtxTrkSumPt += (*vtxTrack)->pt();
869 vtxTrkSumPt += (*vtxTrack)->pt();
871 vtxTrkSumPtHP += (*vtxTrack)->pt();
875 double weight = (*recVtxs)[ind].trackWeight(*vtxTrack);
878 vtxTrkSumPtWt += (*vtxTrack)->pt();
881 vtxTrkSumPtHPWt += (*vtxTrack)->pt();
887 if (vtxTrkSumPt>sumPtMax) {
888 sumPtMax = vtxTrkSumPt;
889 leadPV =
math::XYZPoint( (*recVtxs)[ind].
x(),(*recVtxs)[ind].
y(), (*recVtxs)[ind].
z() );
892 t_PVx ->push_back( (*recVtxs)[ind].
x() );
893 t_PVy ->push_back( (*recVtxs)[ind].
y() );
894 t_PVz ->push_back( (*recVtxs)[ind].
z() );
895 t_PVisValid ->push_back( (*recVtxs)[ind].isValid() );
896 t_PVNTracks ->push_back( (*recVtxs)[ind].tracksSize() );
909 << (*recVtxs)[ind].isValid() <<
" isFake " 910 <<(*recVtxs)[ind].isFake()
911 <<
" hasRefittedTracks() " << ind <<
" " 912 << (*recVtxs)[ind].hasRefittedTracks()
913 <<
" refittedTrksSize " 914 << (*recVtxs)[ind].refittedTracks().size()
916 << (*recVtxs)[ind].tracksSize()
917 <<
" sumPt " << vtxTrkSumPt;
936 for (
unsigned int ijet=0;ijet<(*jets).size();ijet++) {
937 t_jetPt ->push_back( (*jets)[ijet].
pt() );
1001 std::unique_ptr<TrackerHitAssociator> associate;
1013 std::vector<spr::propagatedTrackID> trkCaloDets;
1015 std::vector<spr::propagatedTrackID>::const_iterator trkDetItr;
1018 for (trkDetItr = trkCaloDets.begin(); trkDetItr != trkCaloDets.end(); trkDetItr++) {
1020 << trkDetItr->trkItr->eta() <<
" " 1021 << trkDetItr->okECAL <<
" " 1022 << trkDetItr->okHCAL;
1023 if (trkDetItr->okECAL) {
1024 if (trkDetItr->detIdECAL.subdetId() ==
EcalBarrel)
1029 if (trkDetItr->okHCAL)
1035 for (trkDetItr = trkCaloDets.begin(),nTracks=0; trkDetItr != trkCaloDets.end(); trkDetItr++,nTracks++) {
1037 const reco::Track* pTrack = &(*(trkDetItr->trkItr));
1041 for (
unsigned int ind=0; ind<recVtxs->size(); ind++) {
1042 if (!((*recVtxs)[ind].isFake())) {
1044 for (vtxTrack = (*recVtxs)[ind].tracks_begin(); vtxTrack!=(*recVtxs)[ind].tracks_end(); vtxTrack++) {
1047 if (pTrack == pvtxTrack.
get()) {
1051 if (pTrack->
pt()>1.0) {
1052 edm::LogVerbatim(
"IsoTrack") <<
"Debug the track association with vertex ";
1055 <<
" vtx " << ind <<
" pt " 1056 << pTrack->
pt() <<
" eta " 1057 << pTrack->
eta() <<
" " 1058 <<pTrack->
pt()-pvtxTrack->
pt()<<
" " 1059 << pTrack->
eta()-pvtxTrack->
eta();
1072 bool ifGood = pTrack->
quality(trackQuality_);
1073 double pt1 = pTrack->
pt();
1074 double p1 = pTrack->
p();
1075 double eta1 = pTrack->
momentum().eta();
1076 double phi1 = pTrack->
momentum().phi();
1077 double etaEcal1 = trkDetItr->etaECAL;
1078 double phiEcal1 = trkDetItr->phiECAL;
1079 double etaHcal1 = trkDetItr->etaHCAL;
1080 double phiHcal1 = trkDetItr->phiHCAL;
1081 double dxy1 = pTrack->
dxy();
1082 double dz1 = pTrack->
dz();
1084 double dxybs1 = beamSpotH.
isValid() ? pTrack->
dxy(bspot) : pTrack->
dxy();
1085 double dzbs1 = beamSpotH.
isValid() ? pTrack->
dz(bspot) : pTrack->
dz();
1086 double dxypv1 = pTrack->
dxy();
1087 double dzpv1 = pTrack->
dz();
1090 dxypv1 = pTrack->
dxy(thisTkPV);
1091 dzpv1 = pTrack->
dz (thisTkPV);
1101 if (ifGood && nLayersCrossed>7 ) {
1110 if (! ifGood)
continue;
1124 edm::SimTrackContainer::const_iterator matchedSimTrkAll =
spr::matchedSimTrack(iEvent, SimTk, SimVtx, pTrack, *associate,
false);
1130 double maxNearP31x31=999.0, maxNearP25x25=999.0, maxNearP21x21=999.0, maxNearP15x15=999.0;
1136 int iTrkEtaBin=-1, iTrkMomBin=-1;
1137 for(
unsigned int ieta=0; ieta<
NEtaBins; ieta++) {
1140 for (
unsigned int ipt=0; ipt<
NPBins; ipt++) {
1143 if (iTrkMomBin>=0 && iTrkEtaBin>=0) {
1149 if (maxNearP31x31<0.0 && nLayersCrossed>7 && nOuterHits>4) {
1159 if (maxNearP31x31<1.0) {
1161 haveIsoTrack =
true;
1164 double simTrackP = -1;
1166 edm::SimTrackContainer::const_iterator matchedSimTrk =
spr::matchedSimTrack(iEvent, SimTk, SimVtx, pTrack, *associate,
false);
1167 if( matchedSimTrk != SimTk->end() )simTrackP = matchedSimTrk->momentum().P();
1174 std::pair<double, bool> e7x7P, e9x9P, e11x11P, e15x15P;
1175 std::pair<double, bool> e7x7_10SigP, e9x9_10SigP, e11x11_10SigP, e15x15_10SigP;
1176 std::pair<double, bool> e7x7_15SigP, e9x9_15SigP, e11x11_15SigP, e15x15_15SigP;
1177 std::pair<double, bool> e7x7_20SigP, e9x9_20SigP, e11x11_20SigP, e15x15_20SigP;
1178 std::pair<double, bool> e7x7_25SigP, e9x9_25SigP, e11x11_25SigP, e15x15_25SigP;
1179 std::pair<double, bool> e7x7_30SigP, e9x9_30SigP, e11x11_30SigP, e15x15_30SigP;
1182 spr::caloSimInfo simInfo11x11, simInfo13x13, simInfo15x15, simInfo21x21, simInfo25x25, simInfo31x31;
1183 double trkEcalEne=0;
1185 const DetId isoCell = trkDetItr->detIdECAL;
1186 e7x7P =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),3,3, -100.0, -100.0,
tMinE_,
tMaxE_);
1187 e9x9P =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),4,4, -100.0, -100.0,
tMinE_,
tMaxE_);
1188 e11x11P =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),5,5, -100.0, -100.0,
tMinE_,
tMaxE_);
1189 e15x15P =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),7,7, -100.0, -100.0,
tMinE_,
tMaxE_);
1191 e7x7_10SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),3,3, 0.030, 0.150,
tMinE_,
tMaxE_);
1192 e9x9_10SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),4,4, 0.030, 0.150,
tMinE_,
tMaxE_);
1193 e11x11_10SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),5,5, 0.030, 0.150,
tMinE_,
tMaxE_);
1194 e15x15_10SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),7,7, 0.030, 0.150,
tMinE_,
tMaxE_);
1196 e7x7_15SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology, sevlv.
product(),ttMap, 3,3, 0.20,0.45,
tMinE_,
tMaxE_);
1197 e9x9_15SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology, sevlv.
product(),ttMap, 4,4, 0.20,0.45,
tMinE_,
tMaxE_);
1198 e11x11_15SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(), ttMap, 5,5, 0.20,0.45,
tMinE_,
tMaxE_);
1199 e15x15_15SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology, sevlv.
product(),ttMap, 7,7, 0.20,0.45,
tMinE_,
tMaxE_,
false);
1201 e7x7_20SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),3,3, 0.060, 0.300,
tMinE_,
tMaxE_);
1202 e9x9_20SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),4,4, 0.060, 0.300,
tMinE_,
tMaxE_);
1203 e11x11_20SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),5,5, 0.060, 0.300,
tMinE_,
tMaxE_);
1204 e15x15_20SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),7,7, 0.060, 0.300,
tMinE_,
tMaxE_);
1206 e7x7_25SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),3,3, 0.075, 0.375,
tMinE_,
tMaxE_);
1207 e9x9_25SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),4,4, 0.075, 0.375,
tMinE_,
tMaxE_);
1208 e11x11_25SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),5,5, 0.075, 0.375,
tMinE_,
tMaxE_);
1209 e15x15_25SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),7,7, 0.075, 0.375,
tMinE_,
tMaxE_);
1211 e7x7_30SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),3,3, 0.090, 0.450,
tMinE_,
tMaxE_);
1212 e9x9_30SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),4,4, 0.090, 0.450,
tMinE_,
tMaxE_);
1213 e11x11_30SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),5,5, 0.090, 0.450,
tMinE_,
tMaxE_);
1214 e15x15_30SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),7,7, 0.090, 0.450,
tMinE_,
tMaxE_);
1218 << e9x9P.first <<
" e11x11 " 1219 << e11x11P.first <<
" e15x15 " 1222 <<
" e11x11_10Sig " <<e11x11_10SigP.first
1223 <<
" e15x15_10Sig " <<e15x15_10SigP.first;
1228 spr::eECALSimInfo(iEvent,isoCell,geo,caloTopology,pcaloeb,pcaloee,SimTk,SimVtx,pTrack, *associate, 1,1, simInfo3x3);
1229 spr::eECALSimInfo(iEvent,isoCell,geo,caloTopology,pcaloeb,pcaloee,SimTk,SimVtx,pTrack, *associate, 2,2, simInfo5x5);
1230 spr::eECALSimInfo(iEvent,isoCell,geo,caloTopology,pcaloeb,pcaloee,SimTk,SimVtx,pTrack, *associate, 3,3, simInfo7x7);
1231 spr::eECALSimInfo(iEvent,isoCell,geo,caloTopology,pcaloeb,pcaloee,SimTk,SimVtx,pTrack, *associate, 4,4, simInfo9x9);
1232 spr::eECALSimInfo(iEvent,isoCell,geo,caloTopology,pcaloeb,pcaloee,SimTk,SimVtx,pTrack, *associate, 5,5, simInfo11x11);
1233 spr::eECALSimInfo(iEvent,isoCell,geo,caloTopology,pcaloeb,pcaloee,SimTk,SimVtx,pTrack, *associate, 6,6, simInfo13x13);
1234 spr::eECALSimInfo(iEvent,isoCell,geo,caloTopology,pcaloeb,pcaloee,SimTk,SimVtx,pTrack, *associate, 7,7, simInfo15x15, 150.0,
false);
1235 spr::eECALSimInfo(iEvent,isoCell,geo,caloTopology,pcaloeb,pcaloee,SimTk,SimVtx,pTrack, *associate, 10,10, simInfo21x21);
1236 spr::eECALSimInfo(iEvent,isoCell,geo,caloTopology,pcaloeb,pcaloee,SimTk,SimVtx,pTrack, *associate, 12,12, simInfo25x25);
1237 spr::eECALSimInfo(iEvent,isoCell,geo,caloTopology,pcaloeb,pcaloee,SimTk,SimVtx,pTrack, *associate, 15,15, simInfo31x31);
1239 trkEcalEne =
spr::eCaloSimInfo(iEvent, geo, pcaloeb,pcaloee, SimTk, SimVtx, pTrack, *associate);
1244 << simInfo3x3.
eTotal <<
" eMatched " 1245 << simInfo3x3.
eMatched <<
" eRest " 1246 << simInfo3x3.
eRest <<
" eGamma " 1247 << simInfo3x3.
eGamma <<
" eNeutralHad " 1252 << simInfo5x5.
eTotal <<
" eMatched " 1253 << simInfo5x5.
eMatched <<
" eRest " 1254 << simInfo5x5.
eRest <<
" eGamma " 1255 << simInfo5x5.
eGamma <<
" eNeutralHad " 1260 << simInfo7x7.
eTotal <<
" eMatched " 1261 << simInfo7x7.
eMatched <<
" eRest " 1262 << simInfo7x7.
eRest <<
" eGamma " 1263 << simInfo7x7.
eGamma <<
" eNeutralHad " 1268 << simInfo9x9.
eTotal <<
" eMatched " 1269 << simInfo9x9.
eMatched <<
" eRest " 1270 << simInfo9x9.
eRest <<
" eGamma " 1271 << simInfo9x9.
eGamma <<
" eNeutralHad " 1276 << simInfo11x11.
eTotal <<
" eMatched " 1277 << simInfo11x11.
eMatched <<
" eRest " 1278 << simInfo11x11.
eRest <<
" eGamma " 1279 <<simInfo11x11.
eGamma <<
" eNeutralHad " 1284 << simInfo15x15.
eTotal <<
" eMatched " 1285 << simInfo15x15.
eMatched <<
" eRest " 1286 << simInfo15x15.
eRest <<
" eGamma " 1287 <<simInfo15x15.
eGamma <<
" eNeutralHad " 1292 << simInfo31x31.
eTotal <<
" eMatched " 1293 << simInfo31x31.
eMatched <<
" eRest " 1294 << simInfo31x31.
eRest <<
" eGamma " 1295 <<simInfo31x31.
eGamma <<
" eNeutralHad " 1304 double hcalScale=1.0;
1311 double maxNearHcalP3x3=-1, maxNearHcalP5x5=-1, maxNearHcalP7x7=-1;
1316 double h3x3=0, h5x5=0, h7x7=0;
1317 double h3x3Sig=0, h5x5Sig=0, h7x7Sig=0;
1318 double trkHcalEne = 0;
1321 if (trkDetItr->okHCAL) {
1322 const DetId ClosestCell(trkDetItr->detIdHCAL);
1324 h3x3 =
spr::eHCALmatrix(theHBHETopology, ClosestCell, hbhe,1,1,
false,
true, -100.0, -100.0, -100.0, -100.0,
tMinH_,
tMaxH_);
1325 h5x5 =
spr::eHCALmatrix(theHBHETopology, ClosestCell, hbhe,2,2,
false,
true, -100.0, -100.0, -100.0, -100.0,
tMinH_,
tMaxH_);
1326 h7x7 =
spr::eHCALmatrix(theHBHETopology, ClosestCell, hbhe,3,3,
false,
true, -100.0, -100.0, -100.0, -100.0,
tMinH_,
tMaxH_);
1327 h3x3Sig =
spr::eHCALmatrix(theHBHETopology, ClosestCell, hbhe,1,1,
false,
true, 0.7, 0.8, -100.0, -100.0,
tMinH_,
tMaxH_);
1328 h5x5Sig =
spr::eHCALmatrix(theHBHETopology, ClosestCell, hbhe,2,2,
false,
true, 0.7, 0.8, -100.0, -100.0,
tMinH_,
tMaxH_);
1329 h7x7Sig =
spr::eHCALmatrix(theHBHETopology, ClosestCell, hbhe,3,3,
false,
true, 0.7, 0.8, -100.0, -100.0,
tMinH_,
tMaxH_);
1333 << h3x3Sig <<
" 5x5 " << h5x5 <<
" " 1334 << h5x5Sig <<
" 7x7 " << h7x7 <<
" " 1339 spr::eHCALSimInfo(iEvent, theHBHETopology, ClosestCell, geo,pcalohh, SimTk, SimVtx, pTrack, *associate, 1,1, hsimInfo3x3);
1340 spr::eHCALSimInfo(iEvent, theHBHETopology, ClosestCell, geo,pcalohh, SimTk, SimVtx, pTrack, *associate, 2,2, hsimInfo5x5);
1341 spr::eHCALSimInfo(iEvent, theHBHETopology, ClosestCell, geo,pcalohh, SimTk, SimVtx, pTrack, *associate, 3,3, hsimInfo7x7, 150.0,
false,
false);
1342 trkHcalEne =
spr::eCaloSimInfo(iEvent, geo,pcalohh, SimTk, SimVtx, pTrack, *associate);
1346 << hsimInfo3x3.
eTotal <<
" eMatched " 1347 << hsimInfo3x3.
eMatched <<
" eRest " 1348 << hsimInfo3x3.
eRest <<
" eGamma " 1355 << hsimInfo5x5.
eTotal <<
" eMatched " 1356 << hsimInfo5x5.
eMatched <<
" eRest " 1357 << hsimInfo5x5.
eRest <<
" eGamma " 1364 << hsimInfo7x7.
eTotal <<
" eMatched " 1365 << hsimInfo7x7.
eMatched <<
" eRest " 1366 << hsimInfo7x7.
eRest <<
" eGamma " 1379 <<
" Event " <<iEvent.
id().
event();
1380 std::vector<std::pair<DetId,double> > v7x7 =
spr::eHCALmatrixCell(theHBHETopology, ClosestCell, hbhe,3,3,
false,
false);
1383 for (
unsigned int iv=0; iv<v7x7.size(); iv++) {
1384 sumv += v7x7[iv].second;
1387 <<
" in " << v7x7.size();
1388 for(
unsigned int iv=0; iv<v7x7.size(); iv++) {
1391 << std::hex << v7x7[iv].first()
1392 <<
std::dec <<
" " <<
id <<
" Energy " 1399 trkHcalEne =
spr::eCaloSimInfo(iEvent, geo,pcalohh, SimTk, SimVtx, pTrack, *associate);
1408 double trackOutPosOutHitDr =
diff.R();
1409 double trackL = point2_TK0.second;
1412 <<
" " << point2_TK0.first.eta() <<
" " 1413 << point2_TK0.first.phi();
1419 <<
diff.R() <<
" diffR/L " 1420 <<
diff.R()/point2_TK0.second;
1423 for (
unsigned int ind=0;ind<recVtxs->size();ind++) {
1424 if (!((*recVtxs)[ind].isFake())) {
1426 if (
deltaR(eta1,phi1, (*vtxTrack)->eta(),(*vtxTrack)->phi()) < 0.01 )
t_trackPVIdx ->push_back( ind );
1480 t_e7x7 ->push_back( e7x7P.first );
1481 t_e9x9 ->push_back( e9x9P.first );
1482 t_e11x11 ->push_back( e11x11P.first );
1483 t_e15x15 ->push_back( e15x15P.first );
1546 t_h3x3 ->push_back( h3x3 );
1547 t_h5x5 ->push_back( h5x5 );
1548 t_h7x7 ->push_back( h7x7 );
1586 if(haveIsoTrack)
tree_->Fill();
1595 double tempgen_TH[
NPBins+1] = { 0.0, 1.0, 2.0, 3.0, 4.0,
1596 5.0, 6.0, 7.0, 9.0, 11.0,
1597 15.0, 20.0, 30.0, 50.0, 75.0, 100.0};
1601 double tempgen_Eta[
NEtaBins+1] = {0.0, 1.131, 1.653, 2.172};
1612 std::map< std::pair<unsigned int,std::string>,
int>::iterator itr;
1615 <<
" " << (itr->first).second <<
" " 1617 int ibin = (itr->first).
first;
1618 TString
name( (itr->first).second );
1833 char hname[100], htit[100];
1838 for(
unsigned int ieta=0; ieta<
NEtaBins; ieta++) {
1839 double lowEta=-5.0, highEta= 5.0;
1843 for(
unsigned int ipt=0; ipt<
NPBins; ipt++) {
1844 double lowP=0.0, highP=300.0;
1847 sprintf(hname,
"h_maxNearP31x31_ptBin%i_etaBin%i",ipt, ieta);
1848 sprintf(htit,
"maxNearP in 31x31 (%3.2f<|#eta|<%3.2f), (%2.0f<trkP<%3.0f)", lowEta, highEta, lowP, highP );
1851 sprintf(hname,
"h_maxNearP25x25_ptBin%i_etaBin%i",ipt, ieta);
1852 sprintf(htit,
"maxNearP in 25x25 (%3.2f<|#eta|<%3.2f), (%2.0f<trkP<%3.0f)", lowEta, highEta, lowP, highP );
1855 sprintf(hname,
"h_maxNearP21x21_ptBin%i_etaBin%i",ipt, ieta);
1856 sprintf(htit,
"maxNearP in 21x21 (%3.2f<|#eta|<%3.2f), (%2.0f<trkP<%3.0f)", lowEta, highEta, lowP, highP );
1859 sprintf(hname,
"h_maxNearP15x15_ptBin%i_etaBin%i",ipt, ieta);
1860 sprintf(htit,
"maxNearP in 15x15 (%3.2f<|#eta|<%3.2f), (%2.0f<trkP<%3.0f)", lowEta, highEta, lowP, highP );
1866 h_L1AlgoNames = fs->
make<TH1I>(
"h_L1AlgoNames",
"h_L1AlgoNames:Bin Labels", 128, -0.5, 127.5);
1870 h_PVTracksWt = fs->
make<TH1F>(
"h_PVTracksWt",
"h_PVTracksWt", 600, -0.1, 1.1);
1872 h_nTracks = fs->
make<TH1F>(
"h_nTracks",
"h_nTracks", 1000, -0.5, 999.5);
1874 sprintf(hname,
"h_recEtaPt_0");
1875 sprintf(htit,
"h_recEtaPt (all tracks Eta vs pT)");
1878 sprintf(hname,
"h_recEtaP_0");
1879 sprintf(htit,
"h_recEtaP (all tracks Eta vs pT)");
1884 h_recEta_0 = fs->
make<TH1F>(
"h_recEta_0",
"Eta (all tracks)", 60, -3.0, 3.0);
1885 h_recPhi_0 = fs->
make<TH1F>(
"h_recPhi_0",
"Phi (all tracks)", 100, -3.2, 3.2);
1887 sprintf(hname,
"h_recEtaPt_1");
1888 sprintf(htit,
"h_recEtaPt (all good tracks Eta vs pT)");
1891 sprintf(hname,
"h_recEtaP_1");
1892 sprintf(htit,
"h_recEtaP (all good tracks Eta vs pT)");
1897 h_recEta_1 = fs->
make<TH1F>(
"h_recEta_1",
"Eta (all good tracks)", 60, -3.0, 3.0);
1898 h_recPhi_1 = fs->
make<TH1F>(
"h_recPhi_1",
"Phi (all good tracks)", 100, -3.2, 3.2);
1900 sprintf(hname,
"h_recEtaPt_2");
1901 sprintf(htit,
"h_recEtaPt (charge isolation Eta vs pT)");
1904 sprintf(hname,
"h_recEtaP_2");
1905 sprintf(htit,
"h_recEtaP (charge isolation Eta vs pT)");
1910 h_recEta_2 = fs->
make<TH1F>(
"h_recEta_2",
"Eta (charge isolation)", 60, -3.0, 3.0);
1911 h_recPhi_2 = fs->
make<TH1F>(
"h_recPhi_2",
"Phi (charge isolation)", 100, -3.2, 3.2);
1913 tree_ = fs->
make<TTree>(
"tree",
"tree");
1914 tree_->SetAutoSave(10000);
1921 t_PVx =
new std::vector<double>();
1922 t_PVy =
new std::vector<double>();
1923 t_PVz =
new std::vector<double>();
1935 tree_->Branch(
"PVx" ,
"std::vector<double>" ,&
t_PVx);
1936 tree_->Branch(
"PVy" ,
"std::vector<double>" ,&t_PVy);
1937 tree_->Branch(
"PVz" ,
"std::vector<double>" ,&t_PVz);
1938 tree_->Branch(
"PVisValid" ,
"std::vector<int>" ,&t_PVisValid);
1939 tree_->Branch(
"PVndof" ,
"std::vector<int>" ,&t_PVndof);
1940 tree_->Branch(
"PVNTracks" ,
"std::vector<int>" ,&t_PVNTracks);
1941 tree_->Branch(
"PVNTracksWt" ,
"std::vector<int>" ,&t_PVNTracksWt);
1942 tree_->Branch(
"t_PVTracksSumPt" ,
"std::vector<double>" ,&t_PVTracksSumPt);
1943 tree_->Branch(
"t_PVTracksSumPtWt" ,
"std::vector<double>" ,&t_PVTracksSumPtWt);
1944 tree_->Branch(
"PVNTracksHP" ,
"std::vector<int>" ,&t_PVNTracksHP);
1945 tree_->Branch(
"PVNTracksHPWt" ,
"std::vector<int>" ,&t_PVNTracksHPWt);
1946 tree_->Branch(
"t_PVTracksSumPtHP" ,
"std::vector<double>" ,&t_PVTracksSumPtHP);
1947 tree_->Branch(
"t_PVTracksSumPtHPWt" ,
"std::vector<double>" ,&t_PVTracksSumPtHPWt);
1977 tree_->Branch(
"t_L1PreScale",
"std::vector<int>", &t_L1PreScale);
1978 tree_->Branch(
"t_L1CenJetPt",
"std::vector<double>", &t_L1CenJetPt);
1979 tree_->Branch(
"t_L1CenJetEta",
"std::vector<double>", &t_L1CenJetEta);
1980 tree_->Branch(
"t_L1CenJetPhi",
"std::vector<double>", &t_L1CenJetPhi);
1981 tree_->Branch(
"t_L1FwdJetPt",
"std::vector<double>", &t_L1FwdJetPt);
1982 tree_->Branch(
"t_L1FwdJetEta",
"std::vector<double>", &t_L1FwdJetEta);
1983 tree_->Branch(
"t_L1FwdJetPhi",
"std::vector<double>", &t_L1FwdJetPhi);
1984 tree_->Branch(
"t_L1TauJetPt",
"std::vector<double>", &t_L1TauJetPt);
1985 tree_->Branch(
"t_L1TauJetEta",
"std::vector<double>", &t_L1TauJetEta);
1986 tree_->Branch(
"t_L1TauJetPhi",
"std::vector<double>", &t_L1TauJetPhi);
1987 tree_->Branch(
"t_L1MuonPt",
"std::vector<double>", &t_L1MuonPt);
1988 tree_->Branch(
"t_L1MuonEta",
"std::vector<double>", &t_L1MuonEta);
1989 tree_->Branch(
"t_L1MuonPhi",
"std::vector<double>", &t_L1MuonPhi);
1990 tree_->Branch(
"t_L1IsoEMPt",
"std::vector<double>", &t_L1IsoEMPt);
1991 tree_->Branch(
"t_L1IsoEMEta",
"std::vector<double>", &t_L1IsoEMEta);
1992 tree_->Branch(
"t_L1IsoEMPhi",
"std::vector<double>", &t_L1IsoEMPhi);
1993 tree_->Branch(
"t_L1NonIsoEMPt",
"std::vector<double>", &t_L1NonIsoEMPt);
1994 tree_->Branch(
"t_L1NonIsoEMEta",
"std::vector<double>", &t_L1NonIsoEMEta);
1995 tree_->Branch(
"t_L1NonIsoEMPhi",
"std::vector<double>", &t_L1NonIsoEMPhi);
1996 tree_->Branch(
"t_L1METPt",
"std::vector<double>", &t_L1METPt);
1997 tree_->Branch(
"t_L1METEta",
"std::vector<double>", &t_L1METEta);
1998 tree_->Branch(
"t_L1METPhi",
"std::vector<double>", &t_L1METPhi);
2000 t_jetPt =
new std::vector<double>();
2001 t_jetEta =
new std::vector<double>();
2002 t_jetPhi =
new std::vector<double>();
2005 tree_->Branch(
"t_jetPt",
"std::vector<double>",&
t_jetPt);
2006 tree_->Branch(
"t_jetEta",
"std::vector<double>",&t_jetEta);
2007 tree_->Branch(
"t_jetPhi",
"std::vector<double>",&t_jetPhi);
2008 tree_->Branch(
"t_nTrksJetCalo",
"std::vector<double>",&t_nTrksJetCalo);
2009 tree_->Branch(
"t_nTrksJetVtx",
"std::vector<double>",&t_nTrksJetVtx);
2022 tree_->Branch(
"t_trackPhiAll",
"std::vector<double>", &t_trackPhiAll );
2023 tree_->Branch(
"t_trackEtaAll",
"std::vector<double>", &t_trackEtaAll );
2024 tree_->Branch(
"t_trackPtAll",
"std::vector<double>", &t_trackPtAll );
2025 tree_->Branch(
"t_trackDxyAll",
"std::vector<double>", &t_trackDxyAll );
2026 tree_->Branch(
"t_trackDzAll",
"std::vector<double>", &t_trackDzAll );
2027 tree_->Branch(
"t_trackDxyPVAll",
"std::vector<double>", &t_trackDxyPVAll );
2028 tree_->Branch(
"t_trackDzPVAll",
"std::vector<double>", &t_trackDzPVAll );
2029 tree_->Branch(
"t_trackChiSqAll",
"std::vector<double>", &t_trackChiSqAll );
2032 t_trackP =
new std::vector<double>();
2061 t_trackHitOutMissTOB =
new std::vector<int>();
2062 t_trackHitOutMissTEC =
new std::vector<int>();
2063 t_trackHitOutMissTIB =
new std::vector<int>();
2064 t_trackHitOutMissTID =
new std::vector<int>();
2075 t_trackL =
new std::vector<double>();
2077 tree_->Branch(
"t_trackP",
"std::vector<double>", &
t_trackP );
2078 tree_->Branch(
"t_trackPt",
"std::vector<double>", &t_trackPt );
2079 tree_->Branch(
"t_trackEta",
"std::vector<double>", &t_trackEta );
2080 tree_->Branch(
"t_trackPhi",
"std::vector<double>", &t_trackPhi );
2081 tree_->Branch(
"t_trackEcalEta",
"std::vector<double>", &t_trackEcalEta );
2082 tree_->Branch(
"t_trackEcalPhi",
"std::vector<double>", &t_trackEcalPhi );
2083 tree_->Branch(
"t_trackHcalEta",
"std::vector<double>", &t_trackHcalEta );
2084 tree_->Branch(
"t_trackHcalPhi",
"std::vector<double>", &t_trackHcalPhi );
2086 tree_->Branch(
"t_trackNOuterHits",
"std::vector<int>", &t_trackNOuterHits );
2087 tree_->Branch(
"t_NLayersCrossed",
"std::vector<int>", &t_NLayersCrossed );
2088 tree_->Branch(
"t_trackHitsTOB",
"std::vector<int>", &t_trackHitsTOB );
2089 tree_->Branch(
"t_trackHitsTEC",
"std::vector<int>", &t_trackHitsTEC );
2090 tree_->Branch(
"t_trackHitInMissTOB",
"std::vector<int>", &t_trackHitInMissTOB );
2091 tree_->Branch(
"t_trackHitInMissTEC",
"std::vector<int>", &t_trackHitInMissTEC );
2092 tree_->Branch(
"t_trackHitInMissTIB",
"std::vector<int>", &t_trackHitInMissTIB );
2093 tree_->Branch(
"t_trackHitInMissTID",
"std::vector<int>", &t_trackHitInMissTID );
2094 tree_->Branch(
"t_trackHitInMissTIBTID",
"std::vector<int>", &t_trackHitInMissTIBTID );
2095 tree_->Branch(
"t_trackHitOutMissTOB",
"std::vector<int>", &t_trackHitOutMissTOB);
2096 tree_->Branch(
"t_trackHitOutMissTEC",
"std::vector<int>", &t_trackHitOutMissTEC);
2097 tree_->Branch(
"t_trackHitOutMissTIB",
"std::vector<int>", &t_trackHitOutMissTIB);
2098 tree_->Branch(
"t_trackHitOutMissTID",
"std::vector<int>", &t_trackHitOutMissTID);
2099 tree_->Branch(
"t_trackHitOutMissTOBTEC",
"std::vector<int>", &t_trackHitOutMissTOBTEC);
2100 tree_->Branch(
"t_trackHitInMeasTOB",
"std::vector<int>", &t_trackHitInMeasTOB );
2101 tree_->Branch(
"t_trackHitInMeasTEC",
"std::vector<int>", &t_trackHitInMeasTEC );
2102 tree_->Branch(
"t_trackHitInMeasTIB",
"std::vector<int>", &t_trackHitInMeasTIB );
2103 tree_->Branch(
"t_trackHitInMeasTID",
"std::vector<int>", &t_trackHitInMeasTID );
2104 tree_->Branch(
"t_trackHitOutMeasTOB",
"std::vector<int>", &t_trackHitOutMeasTOB);
2105 tree_->Branch(
"t_trackHitOutMeasTEC",
"std::vector<int>", &t_trackHitOutMeasTEC);
2106 tree_->Branch(
"t_trackHitOutMeasTIB",
"std::vector<int>", &t_trackHitOutMeasTIB);
2107 tree_->Branch(
"t_trackHitOutMeasTID",
"std::vector<int>", &t_trackHitOutMeasTID);
2108 tree_->Branch(
"t_trackOutPosOutHitDr",
"std::vector<double>", &t_trackOutPosOutHitDr);
2109 tree_->Branch(
"t_trackL",
"std::vector<double>", &t_trackL);
2111 tree_->Branch(
"t_trackDxy",
"std::vector<double>", &t_trackDxy );
2112 tree_->Branch(
"t_trackDxyBS",
"std::vector<double>", &t_trackDxyBS );
2113 tree_->Branch(
"t_trackDz",
"std::vector<double>", &t_trackDz );
2114 tree_->Branch(
"t_trackDzBS",
"std::vector<double>", &t_trackDzBS );
2115 tree_->Branch(
"t_trackDxyPV",
"std::vector<double>", &t_trackDxyPV );
2116 tree_->Branch(
"t_trackDzPV",
"std::vector<double>", &t_trackDzPV );
2117 tree_->Branch(
"t_trackChiSq",
"std::vector<double>", &t_trackChiSq );
2118 tree_->Branch(
"t_trackPVIdx",
"std::vector<int>", &t_trackPVIdx );
2124 tree_->Branch(
"t_maxNearP21x21",
"std::vector<double>", &t_maxNearP21x21);
2127 t_e7x7 =
new std::vector<double>();
2128 t_e9x9 =
new std::vector<double>();
2129 t_e11x11 =
new std::vector<double>();
2130 t_e15x15 =
new std::vector<double>();
2133 tree_->Branch(
"t_e7x7",
"std::vector<double>", &t_e7x7);
2134 tree_->Branch(
"t_e9x9",
"std::vector<double>", &t_e9x9);
2135 tree_->Branch(
"t_e11x11",
"std::vector<double>", &t_e11x11);
2136 tree_->Branch(
"t_e15x15",
"std::vector<double>", &t_e15x15);
2160 tree_->Branch(
"t_e9x9_10Sig" ,
"std::vector<double>", &t_e9x9_10Sig);
2161 tree_->Branch(
"t_e11x11_10Sig" ,
"std::vector<double>", &t_e11x11_10Sig);
2162 tree_->Branch(
"t_e15x15_10Sig" ,
"std::vector<double>", &t_e15x15_10Sig);
2163 tree_->Branch(
"t_e7x7_15Sig" ,
"std::vector<double>", &t_e7x7_15Sig);
2164 tree_->Branch(
"t_e9x9_15Sig" ,
"std::vector<double>", &t_e9x9_15Sig);
2165 tree_->Branch(
"t_e11x11_15Sig" ,
"std::vector<double>", &t_e11x11_15Sig);
2166 tree_->Branch(
"t_e15x15_15Sig" ,
"std::vector<double>", &t_e15x15_15Sig);
2167 tree_->Branch(
"t_e7x7_20Sig" ,
"std::vector<double>", &t_e7x7_20Sig);
2168 tree_->Branch(
"t_e9x9_20Sig" ,
"std::vector<double>", &t_e9x9_20Sig);
2169 tree_->Branch(
"t_e11x11_20Sig" ,
"std::vector<double>", &t_e11x11_20Sig);
2170 tree_->Branch(
"t_e15x15_20Sig" ,
"std::vector<double>", &t_e15x15_20Sig);
2171 tree_->Branch(
"t_e7x7_25Sig" ,
"std::vector<double>", &t_e7x7_25Sig);
2172 tree_->Branch(
"t_e9x9_25Sig" ,
"std::vector<double>", &t_e9x9_25Sig);
2173 tree_->Branch(
"t_e11x11_25Sig" ,
"std::vector<double>", &t_e11x11_25Sig);
2174 tree_->Branch(
"t_e15x15_25Sig" ,
"std::vector<double>", &t_e15x15_25Sig);
2175 tree_->Branch(
"t_e7x7_30Sig" ,
"std::vector<double>", &t_e7x7_30Sig);
2176 tree_->Branch(
"t_e9x9_30Sig" ,
"std::vector<double>", &t_e9x9_30Sig);
2177 tree_->Branch(
"t_e11x11_30Sig" ,
"std::vector<double>", &t_e11x11_30Sig);
2178 tree_->Branch(
"t_e15x15_30Sig" ,
"std::vector<double>", &t_e15x15_30Sig);
2216 tree_->Branch(
"t_esim9x9",
"std::vector<double>", &t_esim9x9);
2217 tree_->Branch(
"t_esim11x11",
"std::vector<double>", &t_esim11x11);
2218 tree_->Branch(
"t_esim15x15",
"std::vector<double>", &t_esim15x15);
2220 tree_->Branch(
"t_esim7x7Matched",
"std::vector<double>", &t_esim7x7Matched);
2221 tree_->Branch(
"t_esim9x9Matched",
"std::vector<double>", &t_esim9x9Matched);
2222 tree_->Branch(
"t_esim11x11Matched",
"std::vector<double>", &t_esim11x11Matched);
2223 tree_->Branch(
"t_esim15x15Matched",
"std::vector<double>", &t_esim15x15Matched);
2225 tree_->Branch(
"t_esim7x7Rest",
"std::vector<double>", &t_esim7x7Rest);
2226 tree_->Branch(
"t_esim9x9Rest",
"std::vector<double>", &t_esim9x9Rest);
2227 tree_->Branch(
"t_esim11x11Rest",
"std::vector<double>", &t_esim11x11Rest);
2228 tree_->Branch(
"t_esim15x15Rest",
"std::vector<double>", &t_esim15x15Rest);
2230 tree_->Branch(
"t_esim7x7Photon",
"std::vector<double>", &t_esim7x7Photon);
2231 tree_->Branch(
"t_esim9x9Photon",
"std::vector<double>", &t_esim9x9Photon);
2232 tree_->Branch(
"t_esim11x11Photon",
"std::vector<double>", &t_esim11x11Photon);
2233 tree_->Branch(
"t_esim15x15Photon",
"std::vector<double>", &t_esim15x15Photon);
2235 tree_->Branch(
"t_esim7x7NeutHad",
"std::vector<double>", &t_esim7x7NeutHad);
2236 tree_->Branch(
"t_esim9x9NeutHad",
"std::vector<double>", &t_esim9x9NeutHad);
2237 tree_->Branch(
"t_esim11x11NeutHad",
"std::vector<double>", &t_esim11x11NeutHad);
2238 tree_->Branch(
"t_esim15x15NeutHad",
"std::vector<double>", &t_esim15x15NeutHad);
2240 tree_->Branch(
"t_esim7x7CharHad",
"std::vector<double>", &t_esim7x7CharHad);
2241 tree_->Branch(
"t_esim9x9CharHad",
"std::vector<double>", &t_esim9x9CharHad);
2242 tree_->Branch(
"t_esim11x11CharHad",
"std::vector<double>", &t_esim11x11CharHad);
2243 tree_->Branch(
"t_esim15x15CharHad",
"std::vector<double>", &t_esim15x15CharHad);
2245 tree_->Branch(
"t_trkEcalEne",
"std::vector<double>", &t_trkEcalEne);
2246 tree_->Branch(
"t_simTrackP",
"std::vector<double>", &t_simTrackP);
2247 tree_->Branch(
"t_esimPdgId",
"std::vector<double>", &t_esimPdgId);
2253 t_h3x3 =
new std::vector<double>();
2254 t_h5x5 =
new std::vector<double>();
2255 t_h7x7 =
new std::vector<double>();
2284 tree_->Branch(
"t_maxNearHcalP5x5",
"std::vector<double>", &t_maxNearHcalP5x5);
2285 tree_->Branch(
"t_maxNearHcalP7x7",
"std::vector<double>", &t_maxNearHcalP7x7);
2286 tree_->Branch(
"t_h3x3",
"std::vector<double>", &t_h3x3);
2287 tree_->Branch(
"t_h5x5",
"std::vector<double>", &t_h5x5);
2288 tree_->Branch(
"t_h7x7",
"std::vector<double>", &t_h7x7);
2289 tree_->Branch(
"t_h3x3Sig",
"std::vector<double>", &t_h3x3Sig);
2290 tree_->Branch(
"t_h5x5Sig",
"std::vector<double>", &t_h5x5Sig);
2291 tree_->Branch(
"t_h7x7Sig",
"std::vector<double>", &t_h7x7Sig);
2292 tree_->Branch(
"t_infoHcal",
"std::vector<int>", &t_infoHcal);
2324 return ((diff <
M_PI) ? diff : corr);
2328 double deta = eta1 - eta2;
2329 double dphi =
deltaPhi(phi1, phi2);
2330 return std::sqrt(deta*deta + dphi*dphi);
2339 <<
"\n TrackMmentum " << pTrack->
momentum()
2340 <<
" (pt,eta,phi)(" << pTrack->
pt() <<
"," 2341 << pTrack->
eta() <<
"," << pTrack->
phi() <<
")" 2342 <<
" p " << pTrack->
p() <<
"\n Normalized chi2 " 2344 << pTrack->
charge() <<
" qoverp() " 2345 << pTrack->
qoverp() <<
"+-" 2347 << pTrack->
d0() <<
"\n NValidHits " 2351 << pTrack->
quality(trackQuality_);
2372 <<
"\n \t pixelLayersWithMeasurement() " 2374 <<
"\n \t stripLayersWithMeasurement() " 2376 <<
"\n \t pixelBarrelLayersWithMeasurement() " 2378 <<
"\n \t pixelEndcapLayersWithMeasurement() " 2380 <<
"\n \t stripTIBLayersWithMeasurement() " 2382 <<
"\n \t stripTIDLayersWithMeasurement() " 2384 <<
"\n \t stripTOBLayersWithMeasurement() " 2386 <<
"\n \t stripTECLayersWithMeasurement() "
std::vector< double > * t_hsim7x7CharHad
double qoverp() const
q / p
static const std::string kSharedResource
double p() const
momentum vector magnitude
std::vector< double > * t_hsim3x3Matched
int stripTOBLayersWithMeasurement() const
std::vector< double > * t_esim7x7CharHad
edm::EDGetTokenT< l1extra::L1JetParticleCollection > tok_L1extCenJet_
std::vector< double > * t_e15x15
value_type const * get() const
std::vector< double > * t_nTrksJetCalo
const bool L1TriggerAlgoInfo_
T getParameter(std::string const &) const
EventNumber_t event() const
std::vector< double > * t_maxNearHcalP7x7
double deltaPhi(double v1, double v2)
const Point & referencePoint() const
Reference point on the track.
std::vector< double > * t_trackPt
std::vector< double > * t_trackPAll
const bool printTrkHitPattern_
std::vector< double > * t_e7x7
std::vector< spr::propagatedTrackID > propagateCALO(edm::Handle< reco::TrackCollection > &trkCollection, const CaloGeometry *geo, const MagneticField *bField, const std::string &theTrackQuality, bool debug=false)
std::vector< double > * t_trackHcalPhi
std::vector< double > * t_trackDxyPVAll
const unsigned int nTracks(const reco::Vertex &sv)
~IsolatedTracksNxN() override
static std::string qualityName(TrackQuality)
std::vector< int > * t_trackHitOutMeasTEC
std::vector< double > * t_trackPdgIdAll
void eCaloSimInfo(std::vector< DetId > vdets, const CaloGeometry *geo, edm::Handle< T > &hitsEB, edm::Handle< T > &hitsEE, edm::Handle< edm::SimTrackContainer > &SimTk, edm::Handle< edm::SimVertexContainer > &SimVtx, edm::SimTrackContainer::const_iterator trkInfo, caloSimInfo &info, double timeCut=150, bool debug=false)
std::vector< double > * t_trackOutPosOutHitDr
std::vector< double > * t_maxNearHcalP5x5
std::vector< double > * t_L1NonIsoEMPt
std::vector< int > * t_trackHitOutMeasTIB
std::vector< double > * t_esim7x7
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
std::vector< int > * t_trackHitInMissTOB
std::vector< double > * t_trackDz
double d0() const
dxy parameter in perigee convention (d0 = -dxy)
std::map< std::string, double > eHCALSimInfo(const edm::Event &, const HcalTopology *topology, const DetId &det, const CaloGeometry *geo, edm::Handle< T > &hits, edm::Handle< edm::SimTrackContainer > &SimTk, edm::Handle< edm::SimVertexContainer > &SimVtx, const reco::Track *pTrack, TrackerHitAssociator &associate, int ieta, int iphi, double timeCut=150, bool includeHO=false, bool debug=false)
std::vector< double > * t_trackEcalEta
int stripTIBLayersWithMeasurement() const
double normalizedChi2() const
chi-squared divided by n.d.o.f. (or chi-squared * 1e6 if n.d.o.f. is zero)
std::vector< double > * t_trackEtaAll
std::map< std::pair< unsigned int, std::string >, int > l1AlgoMap_
std::vector< double > * t_esim11x11Matched
std::vector< double > * t_L1IsoEMEta
std::vector< double > * t_PVTracksSumPt
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< double > * t_e9x9_10Sig
TH1F * h_maxNearP25x25[NPBins][NEtaBins]
TrackQuality
track quality
std::vector< double > * t_hsim3x3CharHad
int stripTOBLayersWithoutMeasurement(HitCategory category) const
std::vector< int > * t_PVndof
std::vector< double > * t_hsim7x7Rest
std::vector< double > * t_L1TauJetPhi
std::vector< double > * t_PVTracksSumPtWt
const bool availableL1Configuration(int &errorCode, int &l1ConfCode) const
std::vector< int > * t_infoHcal
std::vector< double > * t_e11x11_15Sig
std::vector< double > * t_L1TauJetPt
std::vector< int > * t_PVNTracksWt
std::vector< double > * t_trackEcalPhi
std::vector< double > * t_esim11x11NeutHad
std::vector< double > * t_L1TauJetEta
std::vector< double > * t_e15x15_15Sig
std::vector< double > * t_L1MuonEta
std::vector< double > * t_L1MuonPt
int bunchCrossing() const
std::vector< double > * t_h3x3
edm::LuminosityBlockNumber_t luminosityBlock() const
std::vector< double > * t_L1MuonPhi
double phi() const
azimuthal angle of momentum vector
unsigned short numberOfLostHits() const
number of cases where track crossed a layer without getting a hit.
const bool decision(const edm::Event &iEvent, const std::string &nameAlgoTechTrig, int &errorCode) const
std::vector< double > * t_trackDxyAll
T * make(const Args &...args) const
make new ROOT object
std::vector< double > * t_maxNearHcalP3x3
IsolatedTracksNxN(const edm::ParameterSet &)
edm::EDGetTokenT< edm::SimVertexContainer > tok_simVtx_
std::vector< double > * t_hsim3x3Photon
edm::EDGetTokenT< reco::BeamSpot > tok_bs_
int pixelLayersWithMeasurement() const
const Vector & momentum() const
track momentum vector
std::vector< double > * t_PVTracksSumPtHP
const math::XYZPoint & outerPosition() const
position of the outermost hit
std::vector< double > * t_esim11x11Rest
int trackerLayersWithMeasurement() const
int pixelEndcapLayersWithMeasurement() const
const double maxTrackEta_
std::vector< int > * t_trackNOuterHits
std::vector< double > * t_h7x7Sig
std::vector< double > * t_e15x15_30Sig
std::vector< double > * t_trackPhiAll
std::vector< double > * t_e7x7_25Sig
double genPartPBins[NPBins+1]
std::vector< double > * t_trkHcalEne
double deltaR(double eta1, double phi1, double eta2, double phi2)
std::vector< double > * t_e7x7_20Sig
std::vector< double > * t_e11x11_10Sig
std::vector< double > * t_trackPtAll
std::vector< double > * t_h3x3Sig
std::vector< double > * t_esimPdgId
void printHitPattern(HitCategory category, int position, std::ostream &stream) const
std::vector< double > * t_e11x11_20Sig
std::vector< double > * t_jetEta
std::vector< double > * t_maxNearP31x31
std::vector< int > * t_trackHitInMissTEC
double chargeIsolationEcal(unsigned int trkIndex, std::vector< spr::propagatedTrackID > &vdetIds, const CaloGeometry *geo, const CaloTopology *caloTopology, int ieta, int iphi, bool debug=false)
std::vector< double > * t_trkEcalEne
std::vector< double > * t_trackEta
#define DEFINE_FWK_MODULE(type)
std::vector< double > * t_esim9x9Photon
std::vector< int > * t_trackHitInMeasTID
double eta() const
pseudorapidity of momentum vector
std::vector< double > * t_hsim5x5Rest
std::vector< double > * t_e11x11
std::vector< double > * t_esim15x15
edm::EDGetTokenT< edm::SimTrackContainer > tok_simTk_
std::vector< double > * t_L1CenJetPt
std::vector< double > * t_trackChiSqAll
std::vector< double > * t_e15x15_25Sig
std::vector< int > * t_trackHitOutMissTIB
edm::EDGetTokenT< edm::PCaloHitContainer > tok_caloHH_
std::vector< double > * t_esim15x15Rest
std::vector< double > * t_esim11x11
std::vector< double > * t_hsim7x7
std::vector< int > * t_PVNTracksHPWt
int stripTIDLayersWithMeasurement() const
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
std::vector< int > * t_trackHitOutMissTID
std::vector< int > * t_trackHitOutMissTOBTEC
double pt() const
track transverse momentum
std::vector< int > * t_trackHitsTEC
std::vector< double > * t_e9x9_30Sig
edm::EDGetTokenT< edm::PCaloHitContainer > tok_caloEB_
std::vector< double > * t_L1CenJetPhi
int numberOfAllHits(HitCategory category) const
std::vector< double > * t_L1FwdJetEta
std::vector< double > * t_h7x7
Abs< T >::type abs(const T &t)
void analyze(const edm::Event &, const edm::EventSetup &) override
std::vector< int > * t_ecalSpike11x11
const bool writeAllTracks_
std::vector< double > * t_esim15x15NeutHad
std::vector< double > * t_e9x9_20Sig
std::vector< int > * t_trackHitOutMeasTOB
std::vector< int > * t_trackHitInMeasTIB
edm::SimTrackContainer::const_iterator matchedSimTrack(const edm::Event &iEvent, edm::Handle< edm::SimTrackContainer > &SimTk, edm::Handle< edm::SimVertexContainer > &SimVtx, const reco::Track *pTrack, TrackerHitAssociator &associate, bool debug=false)
unsigned short numberOfValidHits() const
number of valid hits found
edm::EDGetTokenT< reco::TrackCollection > tok_genTrack_
T * make(const Args &...args) const
make new ROOT object
std::vector< double > * t_trackDzPV
std::vector< int > * t_PVNTracksHP
std::vector< double > * t_L1FwdJetPhi
edm::EDGetTokenT< l1extra::L1JetParticleCollection > tok_L1extFwdJet_
edm::EDGetTokenT< l1extra::L1EmParticleCollection > tok_L1extIsoEm_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::vector< double > * t_nTrksJetVtx
std::vector< double > * t_esim7x7NeutHad
std::vector< double > * t_hsim3x3NeutHad
std::vector< double > * t_L1NonIsoEMPhi
std::vector< double > * t_trackDzBS
std::vector< int > * t_trackHitOutMissTOB
std::vector< double > * t_L1CenJetEta
std::vector< double > * t_trackDzPVAll
edm::EDGetTokenT< l1extra::L1MuonParticleCollection > tok_L1extMu_
std::vector< double > * t_esim7x7Matched
std::vector< double > * t_esim9x9
std::vector< double > * t_hsim5x5
std::vector< double > * t_h5x5
double qoverpError() const
error on signed transverse curvature
std::vector< double > * t_trackDxyPV
std::vector< double > * t_hsim5x5NeutHad
std::vector< double > * t_trackChiSq
double dz() const
dz parameter (= dsz/cos(lambda)). This is the track z0 w.r.t (0,0,0) only if the refPoint is close to...
std::vector< double > * t_hsim5x5Photon
std::vector< double > * t_PVy
std::vector< unsigned int > m_triggerMaskAlgoTrig
std::vector< int > * t_L1PreScale
std::vector< double > * t_hsim3x3Rest
int stripTIDLayersWithoutMeasurement(HitCategory category) const
std::vector< int > * t_PVisValid
static TrackQuality qualityByName(const std::string &name)
std::vector< double > * t_esim9x9Rest
std::vector< double > * t_L1METPhi
std::vector< int > * t_trackHitInMissTIB
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
std::vector< double > * t_e9x9_15Sig
std::vector< double > * t_e7x7_15Sig
std::vector< double > * t_trackPhi
T const * product() const
std::vector< double > * t_e7x7_10Sig
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
XYZPointD XYZPoint
point in space with cartesian internal representation
const double pvTracksPtMin_
edm::EDGetTokenT< l1extra::L1EmParticleCollection > tok_L1extNoIsoEm_
std::vector< double > * t_trackDzAll
edm::EDGetTokenT< reco::VertexCollection > tok_recVtx_
TH1F * h_maxNearP31x31[NPBins][NEtaBins]
std::vector< double > * t_esim11x11CharHad
int stripLayersWithMeasurement() const
int pixelBarrelLayersWithMeasurement() const
edm::EDGetTokenT< edm::PCaloHitContainer > tok_caloEE_
edm::EDGetTokenT< EcalRecHitCollection > tok_EB_
TH1F * h_maxNearP15x15[NPBins][NEtaBins]
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< double > * t_e9x9_25Sig
void eECALSimInfo(const edm::Event &, const DetId &det, const CaloGeometry *geo, const CaloTopology *caloTopology, edm::Handle< T > &hitsEB, edm::Handle< T > &hitsEE, edm::Handle< edm::SimTrackContainer > &SimTk, edm::Handle< edm::SimVertexContainer > &SimVtx, const reco::Track *pTrack, TrackerHitAssociator &associate, int ieta, int iphi, caloSimInfo &info, double timeCut=150, bool debug=false)
std::vector< double > * t_esim7x7Photon
static const bool useL1GtTriggerMenuLite(true)
std::vector< double > * t_esim9x9NeutHad
std::vector< double > * t_L1FwdJetPt
std::vector< double > * t_simTrackP
std::vector< double > * t_hsim7x7Matched
std::vector< int > * t_trackPVIdx
bool quality(const TrackQuality) const
Track quality.
std::vector< int > * t_trackHitsTOB
std::vector< double > * t_esim9x9Matched
std::vector< double > * t_hsim7x7NeutHad
std::vector< double > * t_L1IsoEMPhi
std::vector< int > * t_PVNTracks
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
std::vector< double > * t_maxNearP21x21
TrackerHitAssociator::Config trackerHitAssociatorConfig_
std::vector< double > * t_L1NonIsoEMEta
std::vector< double > * t_PVz
std::pair< math::XYZPoint, double > propagateTrackerEnd(const reco::Track *, const MagneticField *, bool debug=false)
void printTrack(const reco::Track *pTrack)
std::vector< double > * t_e15x15_20Sig
void getL1GtRunCache(const edm::Run &, const edm::EventSetup &, const bool, const bool)
get all the run-constant quantities for L1 trigger and cache them
std::vector< double > * t_PVTracksSumPtHPWt
std::vector< double > * t_trackDxy
std::vector< std::string > * t_L1AlgoNames
std::vector< double > * t_hsim5x5CharHad
std::vector< double > * t_e15x15_10Sig
int stripTECLayersWithMeasurement() const
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
TH1F * h_maxNearP21x21[NPBins][NEtaBins]
int stripTECLayersWithoutMeasurement(HitCategory category) const
std::vector< double > * t_jetPhi
std::vector< double > * t_trackL
std::vector< double > * t_esim7x7Rest
std::vector< double > * t_trackDxyBS
int charge() const
track electric charge
const Point & position() const
position
std::vector< double > * t_trackHcalEta
std::vector< double > * t_L1METPt
std::vector< int > * t_NLayersCrossed
edm::EDGetTokenT< reco::CaloJetCollection > tok_jets_
std::vector< std::pair< DetId, double > > eHCALmatrixCell(const HcalTopology *topology, const DetId &det, edm::Handle< T > &hits, int ieta, int iphi, bool includeHO=false, double hbThr=-100, double heThr=-100, double hfThr=-100, double hoThr=-100, bool debug=false)
std::vector< int > * t_trackHitInMeasTOB
std::vector< double > * t_PVx
std::vector< int > * t_trackHitInMeasTEC
std::vector< double > * t_esim15x15Photon
std::vector< double > * t_e9x9
std::vector< double > * t_hsim5x5Matched
const L1GtTriggerMenu * ptrL1TriggerMenuEventSetup(int &errorCode)
return a pointer to the L1 trigger menu from event setup
double genPartEtaBins[NEtaBins+1]
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...
std::vector< double > * t_esim15x15Matched
double chargeIsolationHcal(unsigned int trkIndex, std::vector< spr::propagatedTrackID > &vdetIds, const HcalTopology *topology, int ieta, int iphi, bool debug=false)
std::vector< int > * t_trackHitOutMeasTID
std::vector< double > * t_L1METEta
std::vector< double > * t_e7x7_30Sig
T const * product() const
std::vector< int > * t_trackHitOutMissTEC
std::vector< double > * t_e11x11_25Sig
std::vector< double > * t_hsim3x3
std::vector< double > * t_trackP
std::vector< double > * t_hsim7x7Photon
std::vector< double > * t_jetPt
static const bool useL1EventSetup(true)
std::vector< double > * t_L1IsoEMPt
std::vector< double > * t_esim11x11Photon
int stripTIBLayersWithoutMeasurement(HitCategory category) const
std::vector< double > * t_h5x5Sig
std::vector< int > * t_trackHitInMissTID
std::vector< double > * t_e11x11_30Sig
std::vector< int > * t_trackHitInMissTIBTID
std::vector< double > * t_esim9x9CharHad
double eECALmatrix(const DetId &detId, edm::Handle< T > &hitsEB, edm::Handle< T > &hitsEE, const CaloGeometry *geo, const CaloTopology *caloTopology, int ieta, int iphi, double ebThr=-100, double eeThr=-100, double tMin=-500, double tMax=500, bool debug=false)
edm::EDGetTokenT< EcalRecHitCollection > tok_EE_
double eHCALmatrix(const HcalTopology *topology, const DetId &det, edm::Handle< T > &hits, int ieta, int iphi, bool includeHO=false, bool algoNew=true, double hbThr=-100, double heThr=-100, double hfThr=-100, double hoThr=-100, double tMin=-500, double tMax=500, int useRaw=0, bool debug=false)
edm::EDGetTokenT< l1extra::L1JetParticleCollection > tok_L1extTauJet_
std::vector< double > * t_esim15x15CharHad
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const int prescaleFactor(const edm::Event &iEvent, const std::string &nameAlgoTechTrig, int &errorCode) const
return prescale factor for a given algorithm or technical trigger