88 std::cout <<
"Parameters read from config file \n"
90 <<
"\t myverbose_ " << myverbose_
91 <<
"\t minTrackP_ " << minTrackP_
92 <<
"\t maxTrackEta_ " << maxTrackEta_
93 <<
"\t tMinE_ " << tMinE_
97 <<
"\n debugL1Info_ " << debugL1Info_
98 <<
"\t L1TriggerAlgoInfo_ " << L1TriggerAlgoInfo_
99 <<
"\t L1extraTauJetSource_ " << L1extraTauJetSource_
100 <<
"\t L1extraCenJetSource_ " << L1extraCenJetSource_
101 <<
"\t L1extraFwdJetSource_ " << L1extraFwdJetSource_
102 <<
"\t L1extraMuonSource_ " << L1extraMuonSource_
103 <<
"\t L1extraIsoEmSource_ " << L1extraIsoEmSource_
104 <<
"\t L1extraNonIsoEmSource_ " << L1extraNonIsoEmSource_
105 <<
"\t L1GTReadoutRcdSource_ " << L1GTReadoutRcdSource_
106 <<
"\t L1GTObjectMapRcdSource_ " << L1GTObjectMapRcdSource_
107 <<
"\t JetSrc_ " << JetSrc_
108 <<
"\t JetExtender_ " << JetExtender_
109 <<
"\t HBHERecHitSource_ " << HBHERecHitSource_
110 <<
"\n" << std::endl;
122 bool haveIsoTrack=
false;
139 reco::TrackCollection::const_iterator trkItr;
141 std::cout <<
"Track Collection: " << std::endl;
142 std::cout <<
"Number of Tracks " << trkCollection->size() << std::endl;
159 std::cout <<
"\nL1 configuration code:" << l1ConfCode
160 <<
"\nNo valid L1 trigger configuration available."
161 <<
"\nSee text above for error code interpretation"
162 <<
"\nNo return here, in order to test each method, protected against configuration error."
172 std::cout <<
"menuName " << menuName << std::endl;
173 for (
CItAlgo itAlgo = algorithmMap.begin(); itAlgo != algorithmMap.end(); itAlgo++) {
175 int algBitNumber = ( itAlgo->second ).algoBitNumber();
176 l1AlgoMap.insert( std::pair<std::pair<unsigned int,std::string>,
int>( std::pair<unsigned int,std::string>(algBitNumber, algName) , 0) ) ;
178 std::map< std::pair<unsigned int,std::string>,
int>::iterator itr;
180 std::cout <<
" ********** " << (itr->first).
first <<
" "<<(itr->first).second <<
" "<<itr->second << std::endl;
184 std::vector<int> algbits;
185 for (
CItAlgo itAlgo = algorithmMap.begin(); itAlgo != algorithmMap.end(); itAlgo++) {
187 int algBitNumber = ( itAlgo->second ).algoBitNumber();
196 l1AlgoMap[std::pair<unsigned int,std::string>(algBitNumber, algName)] += 1;
201 algbits.push_back(algBitNumber);
207 std::cout<<
ii<<
" "<<(*t_L1AlgoNames)[
ii]<<
" "<<(*t_L1PreScale)[
ii]<<
" "<<algbits[
ii]<<std::endl;
210 for (
int i=0;
i<128; ++
i) {
219 l1extra::L1JetParticleCollection::const_iterator itr;
221 for(itr = l1TauHandle->begin(),iL1Obj=0; itr != l1TauHandle->end(); ++itr,iL1Obj++) {
228 std::cout <<
"tauJ p/pt " << itr->momentum() <<
" " << itr->pt()
229 <<
" eta/phi " << itr->eta() <<
" " << itr->phi()
237 for( itr = l1CenJetHandle->begin(),iL1Obj=0; itr != l1CenJetHandle->end(); ++itr,iL1Obj++ ) {
244 std::cout <<
"cenJ p/pt " << itr->momentum() <<
" " << itr->pt()
245 <<
" eta/phi " << itr->eta() <<
" " << itr->phi()
253 for( itr = l1FwdJetHandle->begin(),iL1Obj=0; itr != l1FwdJetHandle->end(); ++itr,iL1Obj++ ) {
260 std::cout <<
"fwdJ p/pt " << itr->momentum() <<
" " << itr->pt()
261 <<
" eta/phi " << itr->eta() <<
" " << itr->phi()
267 l1extra::L1EmParticleCollection::const_iterator itrEm;
270 for( itrEm = l1IsoEmHandle->begin(),iL1Obj=0; itrEm != l1IsoEmHandle->end(); ++itrEm,iL1Obj++ ) {
277 std::cout <<
"isoEm p/pt " << itrEm->momentum() <<
" " << itrEm->pt()
278 <<
" eta/phi " << itrEm->eta() <<
" " << itrEm->phi()
286 for( itrEm = l1NonIsoEmHandle->begin(),iL1Obj=0; itrEm != l1NonIsoEmHandle->end(); ++itrEm,iL1Obj++ ) {
293 std::cout <<
"nonIsoEm p/pt " << itrEm->momentum() <<
" " << itrEm->pt()
294 <<
" eta/phi " << itrEm->eta() <<
" " << itrEm->phi()
300 l1extra::L1MuonParticleCollection::const_iterator itrMu;
303 for( itrMu = l1MuHandle->begin(),iL1Obj=0; itrMu != l1MuHandle->end(); ++itrMu,iL1Obj++ ) {
310 std::cout <<
"l1muon p/pt " << itrMu->momentum() <<
" " << itrMu->pt()
311 <<
" eta/phi " << itrMu->eta() <<
" " << itrMu->phi()
322 std::vector<reco::Track> svTracks;
324 double sumPtMax = -1.0;
325 for(
unsigned int ind=0;ind<recVtxs->size();ind++) {
327 if ( !((*recVtxs)[ind].isFake()) ) {
328 double vtxTrkSumPt=0.0, vtxTrkSumPtWt=0.0;
330 double vtxTrkSumPtHP=0.0, vtxTrkSumPtHPWt=0.0;
331 int vtxTrkNHP =0, vtxTrkNHPWt =0;
335 for (vtxTrack = (*recVtxs)[ind].tracks_begin(); vtxTrack!=(*recVtxs)[ind].tracks_end(); vtxTrack++) {
339 bool trkQuality = (*vtxTrack)->quality(trackQuality_);
341 vtxTrkSumPt += (*vtxTrack)->pt();
343 vtxTrkSumPt += (*vtxTrack)->pt();
345 vtxTrkSumPtHP += (*vtxTrack)->pt();
349 double weight = (*recVtxs)[ind].trackWeight(*vtxTrack);
352 vtxTrkSumPtWt += (*vtxTrack)->pt();
355 vtxTrkSumPtHPWt += (*vtxTrack)->pt();
361 if(vtxTrkSumPt>sumPtMax) {
362 sumPtMax = vtxTrkSumPt;
363 leadPV =
math::XYZPoint( (*recVtxs)[ind].
x(),(*recVtxs)[ind].
y(), (*recVtxs)[ind].
z() );
366 t_PVx ->push_back( (*recVtxs)[ind].
x() );
367 t_PVy ->push_back( (*recVtxs)[ind].
y() );
368 t_PVz ->push_back( (*recVtxs)[ind].
z() );
369 t_PVisValid ->push_back( (*recVtxs)[ind].isValid() );
370 t_PVNTracks ->push_back( (*recVtxs)[ind].tracksSize() );
371 t_PVndof ->push_back( (*recVtxs)[ind].ndof() );
382 std::cout<<
"PV "<<ind<<
" isValid "<<(*recVtxs)[ind].isValid()<<
" isFake "<<(*recVtxs)[ind].isFake()
383 <<
" hasRefittedTracks() "<<ind<<
" "<<(*recVtxs)[ind].hasRefittedTracks()
384 <<
" refittedTrksSize "<<(*recVtxs)[ind].refittedTracks().size()
385 <<
" tracksSize() "<<(*recVtxs)[ind].tracksSize()<<
" sumPt "<<vtxTrkSumPt
405 for(
unsigned int ijet=0;ijet<(*jets).size();ijet++) {
406 t_jetPt ->push_back( (*jets)[ijet].
pt() );
455 edm::SimTrackContainer::const_iterator simTrkItr;
483 std::vector<spr::propagatedTrackID> trkCaloDets;
485 std::vector<spr::propagatedTrackID>::const_iterator trkDetItr;
488 for(trkDetItr = trkCaloDets.begin(); trkDetItr != trkCaloDets.end(); trkDetItr++){
489 std::cout<<trkDetItr->trkItr->p()<<
" "<<trkDetItr->trkItr->eta()<<
" "<<trkDetItr->okECAL<<
" ";
499 for(trkDetItr = trkCaloDets.begin(),nTracks=0; trkDetItr != trkCaloDets.end(); trkDetItr++,nTracks++){
501 const reco::Track* pTrack = &(*(trkDetItr->trkItr));
505 for(
unsigned int ind=0; ind<recVtxs->size(); ind++) {
506 if (!((*recVtxs)[ind].isFake())) {
508 for (vtxTrack = (*recVtxs)[ind].tracks_begin(); vtxTrack!=(*recVtxs)[ind].tracks_end(); vtxTrack++) {
511 if ( pTrack == pvtxTrack.
get() ) {
515 if( pTrack->
pt()>1.0) {
516 std::cout<<
"Debug the track association with vertex "<<std::endl;
517 std::cout<< pTrack <<
" "<< pvtxTrack.
get() << std::endl;
518 std::cout<<
" trkVtxIndex "<<nvtxTracks<<
" vtx "<<ind<<
" pt "<<pTrack->
pt()
519 <<
" eta "<<pTrack->
eta()<<
" "<<pTrack->
pt()-pvtxTrack->
pt()
520 <<
" "<< pTrack->
eta()-pvtxTrack->
eta()
536 bool ifGood = pTrack->
quality(trackQuality_);
537 double pt1 = pTrack->
pt();
538 double p1 = pTrack->
p();
539 double eta1 = pTrack->
momentum().eta();
540 double phi1 = pTrack->
momentum().phi();
541 double etaEcal1 = trkDetItr->etaECAL;
542 double phiEcal1 = trkDetItr->phiECAL;
543 double etaHcal1 = trkDetItr->etaHCAL;
544 double phiHcal1 = trkDetItr->phiHCAL;
545 double dxy1 = pTrack->
dxy();
546 double dz1 = pTrack->
dz();
548 double dxybs1 = beamSpotH.
isValid() ? pTrack->
dxy(bspot) : pTrack->
dxy();
549 double dzbs1 = beamSpotH.
isValid() ? pTrack->
dz(bspot) : pTrack->
dz();
550 double dxypv1 = pTrack->
dxy();
551 double dzpv1 = pTrack->
dz();
554 dxypv1 = pTrack->
dxy(thisTkPV);
555 dzpv1 = pTrack->
dz (thisTkPV);
565 if(ifGood && nLayersCrossed>7 ) {
574 if( ! ifGood )
continue;
588 edm::SimTrackContainer::const_iterator matchedSimTrkAll =
spr::matchedSimTrack(iEvent, SimTk, SimVtx, pTrack, *associate,
false);
594 double maxNearP31x31=999.0, maxNearP25x25=999.0, maxNearP21x21=999.0, maxNearP15x15=999.0;
600 int iTrkEtaBin=-1, iTrkMomBin=-1;
601 for(
unsigned int ieta=0; ieta<
NEtaBins; ieta++) {
604 for(
unsigned int ipt=0; ipt<
NPBins; ipt++) {
607 if( iTrkMomBin>=0 && iTrkEtaBin>=0 ) {
613 if( maxNearP31x31<0.0 && nLayersCrossed>7 && nOuterHits>4) {
623 if( maxNearP31x31<1.0) {
628 double simTrackP = -1;
630 edm::SimTrackContainer::const_iterator matchedSimTrk =
spr::matchedSimTrack(iEvent, SimTk, SimVtx, pTrack, *associate,
false);
631 if( matchedSimTrk != SimTk->end() )simTrackP = matchedSimTrk->momentum().P();
638 std::pair<double, bool> e7x7P, e9x9P, e11x11P, e15x15P;
639 std::pair<double, bool> e7x7_10SigP, e9x9_10SigP, e11x11_10SigP, e15x15_10SigP;
640 std::pair<double, bool> e7x7_15SigP, e9x9_15SigP, e11x11_15SigP, e15x15_15SigP;
641 std::pair<double, bool> e7x7_20SigP, e9x9_20SigP, e11x11_20SigP, e15x15_20SigP;
642 std::pair<double, bool> e7x7_25SigP, e9x9_25SigP, e11x11_25SigP, e15x15_25SigP;
643 std::pair<double, bool> e7x7_30SigP, e9x9_30SigP, e11x11_30SigP, e15x15_30SigP;
646 spr::caloSimInfo simInfo11x11, simInfo13x13, simInfo15x15, simInfo21x21, simInfo25x25, simInfo31x31;
649 const DetId isoCell = trkDetItr->detIdECAL;
650 e7x7P =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),3,3, -100.0, -100.0,
tMinE_,
tMaxE_);
651 e9x9P =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),4,4, -100.0, -100.0,
tMinE_,
tMaxE_);
652 e11x11P =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),5,5, -100.0, -100.0,
tMinE_,
tMaxE_);
653 e15x15P =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),7,7, -100.0, -100.0,
tMinE_,
tMaxE_);
655 e7x7_10SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),3,3, 0.030, 0.150,
tMinE_,
tMaxE_);
656 e9x9_10SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),4,4, 0.030, 0.150,
tMinE_,
tMaxE_);
657 e11x11_10SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),5,5, 0.030, 0.150,
tMinE_,
tMaxE_);
658 e15x15_10SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),7,7, 0.030, 0.150,
tMinE_,
tMaxE_);
660 e7x7_15SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology, sevlv.
product(),ttMap, 3,3, 0.20,0.45,
tMinE_,
tMaxE_);
661 e9x9_15SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology, sevlv.
product(),ttMap, 4,4, 0.20,0.45,
tMinE_,
tMaxE_);
662 e11x11_15SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(), ttMap, 5,5, 0.20,0.45,
tMinE_,
tMaxE_);
663 e15x15_15SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology, sevlv.
product(),ttMap, 7,7, 0.20,0.45,
tMinE_,
tMaxE_,
false);
665 e7x7_20SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),3,3, 0.060, 0.300,
tMinE_,
tMaxE_);
666 e9x9_20SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),4,4, 0.060, 0.300,
tMinE_,
tMaxE_);
667 e11x11_20SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),5,5, 0.060, 0.300,
tMinE_,
tMaxE_);
668 e15x15_20SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),7,7, 0.060, 0.300,
tMinE_,
tMaxE_);
670 e7x7_25SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),3,3, 0.075, 0.375,
tMinE_,
tMaxE_);
671 e9x9_25SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),4,4, 0.075, 0.375,
tMinE_,
tMaxE_);
672 e11x11_25SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),5,5, 0.075, 0.375,
tMinE_,
tMaxE_);
673 e15x15_25SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),7,7, 0.075, 0.375,
tMinE_,
tMaxE_);
675 e7x7_30SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),3,3, 0.090, 0.450,
tMinE_,
tMaxE_);
676 e9x9_30SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),4,4, 0.090, 0.450,
tMinE_,
tMaxE_);
677 e11x11_30SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),5,5, 0.090, 0.450,
tMinE_,
tMaxE_);
678 e15x15_30SigP =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology,sevlv.
product(),7,7, 0.090, 0.450,
tMinE_,
tMaxE_);
680 std::cout <<
"clean ecal rechit " << std::endl;
681 std::cout<<
"e7x7 "<<e7x7P.first<<
" e9x9 "<<e9x9P.first<<
" e11x11 " << e11x11P.first <<
" e15x15 "<<e15x15P.first<<std::endl;
682 std::cout<<
"e7x7_10Sig "<<e7x7_10SigP.first<<
" e11x11_10Sig "<<e11x11_10SigP.first<<
" e15x15_10Sig "<<e15x15_10SigP.first<<std::endl;
687 spr::eECALSimInfo(iEvent,isoCell,geo,caloTopology,pcaloeb,pcaloee,SimTk,SimVtx,pTrack, *associate, 1,1, simInfo3x3);
688 spr::eECALSimInfo(iEvent,isoCell,geo,caloTopology,pcaloeb,pcaloee,SimTk,SimVtx,pTrack, *associate, 2,2, simInfo5x5);
689 spr::eECALSimInfo(iEvent,isoCell,geo,caloTopology,pcaloeb,pcaloee,SimTk,SimVtx,pTrack, *associate, 3,3, simInfo7x7);
690 spr::eECALSimInfo(iEvent,isoCell,geo,caloTopology,pcaloeb,pcaloee,SimTk,SimVtx,pTrack, *associate, 4,4, simInfo9x9);
691 spr::eECALSimInfo(iEvent,isoCell,geo,caloTopology,pcaloeb,pcaloee,SimTk,SimVtx,pTrack, *associate, 5,5, simInfo11x11);
692 spr::eECALSimInfo(iEvent,isoCell,geo,caloTopology,pcaloeb,pcaloee,SimTk,SimVtx,pTrack, *associate, 6,6, simInfo13x13);
693 spr::eECALSimInfo(iEvent,isoCell,geo,caloTopology,pcaloeb,pcaloee,SimTk,SimVtx,pTrack, *associate, 7,7, simInfo15x15, 150.0,
false);
694 spr::eECALSimInfo(iEvent,isoCell,geo,caloTopology,pcaloeb,pcaloee,SimTk,SimVtx,pTrack, *associate, 10,10, simInfo21x21);
695 spr::eECALSimInfo(iEvent,isoCell,geo,caloTopology,pcaloeb,pcaloee,SimTk,SimVtx,pTrack, *associate, 12,12, simInfo25x25);
696 spr::eECALSimInfo(iEvent,isoCell,geo,caloTopology,pcaloeb,pcaloee,SimTk,SimVtx,pTrack, *associate, 15,15, simInfo31x31);
698 trkEcalEne =
spr::eCaloSimInfo(iEvent, geo, pcaloeb,pcaloee, SimTk, SimVtx, pTrack, *associate);
700 std::cout <<
"Track momentum " << pt1 << std::endl;
702 std::cout <<
"ecal siminfo " << std::endl;
707 std::cout <<
"simInfo11x11: " <<
"eTotal " << simInfo11x11.
eTotal <<
" eMatched " << simInfo11x11.
eMatched <<
" eRest " << simInfo11x11.
eRest <<
" eGamma "<<simInfo11x11.
eGamma <<
" eNeutralHad " << simInfo11x11.
eNeutralHad <<
" eChargedHad " << simInfo11x11.
eChargedHad << std::endl;
708 std::cout <<
"simInfo15x15: " <<
"eTotal " << simInfo15x15.
eTotal <<
" eMatched " << simInfo15x15.
eMatched <<
" eRest " << simInfo15x15.
eRest <<
" eGamma "<<simInfo15x15.
eGamma <<
" eNeutralHad " << simInfo15x15.
eNeutralHad <<
" eChargedHad " << simInfo15x15.
eChargedHad << std::endl;
709 std::cout <<
"simInfo31x31: " <<
"eTotal " << simInfo31x31.
eTotal <<
" eMatched " << simInfo31x31.
eMatched <<
" eRest " << simInfo31x31.
eRest <<
" eGamma "<<simInfo31x31.
eGamma <<
" eNeutralHad " << simInfo31x31.
eNeutralHad <<
" eChargedHad " << simInfo31x31.
eChargedHad << std::endl;
710 std::cout <<
"trkEcalEne" << trkEcalEne << std::endl;
715 double hcalScale=1.0;
722 double maxNearHcalP3x3=-1, maxNearHcalP5x5=-1, maxNearHcalP7x7=-1;
727 double h3x3=0, h5x5=0, h7x7=0;
728 double h3x3Sig=0, h5x5Sig=0, h7x7Sig=0;
729 double trkHcalEne = 0;
732 if(trkDetItr->okHCAL) {
733 const DetId ClosestCell(trkDetItr->detIdHCAL);
735 h3x3 =
spr::eHCALmatrix(theHBHETopology, ClosestCell, hbhe,1,1,
false,
true, -100.0, -100.0, -100.0, -100.0,
tMinH_,
tMaxH_);
736 h5x5 =
spr::eHCALmatrix(theHBHETopology, ClosestCell, hbhe,2,2,
false,
true, -100.0, -100.0, -100.0, -100.0,
tMinH_,
tMaxH_);
737 h7x7 =
spr::eHCALmatrix(theHBHETopology, ClosestCell, hbhe,3,3,
false,
true, -100.0, -100.0, -100.0, -100.0,
tMinH_,
tMaxH_);
738 h3x3Sig =
spr::eHCALmatrix(theHBHETopology, ClosestCell, hbhe,1,1,
false,
true, 0.7, 0.8, -100.0, -100.0,
tMinH_,
tMaxH_);
739 h5x5Sig =
spr::eHCALmatrix(theHBHETopology, ClosestCell, hbhe,2,2,
false,
true, 0.7, 0.8, -100.0, -100.0,
tMinH_,
tMaxH_);
740 h7x7Sig =
spr::eHCALmatrix(theHBHETopology, ClosestCell, hbhe,3,3,
false,
true, 0.7, 0.8, -100.0, -100.0,
tMinH_,
tMaxH_);
743 std::cout <<
"HCAL 3x3 " << h3x3 <<
" " << h3x3Sig <<
" 5x5 " << h5x5 <<
" " << h5x5Sig <<
" 7x7 " << h7x7 <<
" " << h7x7Sig << std::endl;
747 spr::eHCALSimInfo(iEvent, theHBHETopology, ClosestCell, geo,pcalohh, SimTk, SimVtx, pTrack, *associate, 1,1, hsimInfo3x3);
748 spr::eHCALSimInfo(iEvent, theHBHETopology, ClosestCell, geo,pcalohh, SimTk, SimVtx, pTrack, *associate, 2,2, hsimInfo5x5);
749 spr::eHCALSimInfo(iEvent, theHBHETopology, ClosestCell, geo,pcalohh, SimTk, SimVtx, pTrack, *associate, 3,3, hsimInfo7x7, 150.0,
false,
false);
750 trkHcalEne =
spr::eCaloSimInfo(iEvent, geo,pcalohh, SimTk, SimVtx, pTrack, *associate);
752 std::cout <<
"Hcal siminfo " << std::endl;
753 std::cout <<
"hsimInfo3x3: " <<
"eTotal " << hsimInfo3x3.
eTotal <<
" eMatched " << hsimInfo3x3.
eMatched <<
" eRest " << hsimInfo3x3.
eRest <<
" eGamma "<<hsimInfo3x3.
eGamma <<
" eNeutralHad " << hsimInfo3x3.
eNeutralHad <<
" eChargedHad " << hsimInfo3x3.
eChargedHad << std::endl;
754 std::cout <<
"hsimInfo5x5: " <<
"eTotal " << hsimInfo5x5.
eTotal <<
" eMatched " << hsimInfo5x5.
eMatched <<
" eRest " << hsimInfo5x5.
eRest <<
" eGamma "<<hsimInfo5x5.
eGamma <<
" eNeutralHad " << hsimInfo5x5.
eNeutralHad <<
" eChargedHad " << hsimInfo5x5.
eChargedHad << std::endl;
755 std::cout <<
"hsimInfo7x7: " <<
"eTotal " << hsimInfo7x7.
eTotal <<
" eMatched " << hsimInfo7x7.
eMatched <<
" eRest " << hsimInfo7x7.
eRest <<
" eGamma "<<hsimInfo7x7.
eGamma <<
" eNeutralHad " << hsimInfo7x7.
eNeutralHad <<
" eChargedHad " << hsimInfo7x7.
eChargedHad << std::endl;
756 std::cout <<
"trkHcalEne " << trkHcalEne << std::endl;
763 std::vector<std::pair<DetId,double> > v7x7 =
spr::eHCALmatrixCell(theHBHETopology, ClosestCell, hbhe,3,3,
false,
false);
766 for(
unsigned int iv=0; iv<v7x7.size(); iv++) {
767 sumv += v7x7[iv].second;
769 std::cout<<
"h7x7 "<<h7x7<<
" v7x7 "<<sumv <<
" in " << v7x7.size() <<std::endl;
770 for(
unsigned int iv=0; iv<v7x7.size(); iv++) {
772 std::cout <<
" Cell " << iv <<
" 0x" << std::hex << v7x7[iv].first() << std::dec <<
" " <<
id <<
" Energy " << v7x7[iv].second << std::endl;
778 trkHcalEne =
spr::eCaloSimInfo(iEvent, geo,pcalohh, SimTk, SimVtx, pTrack, *associate);
787 double trackOutPosOutHitDr =
diff.R();
788 double trackL = point2_TK0.second;
790 std::cout<<
" propagted "<<point2_TK0.first<<
" "<< point2_TK0.first.eta()<<
" "<<point2_TK0.first.phi()<<std::endl;
792 std::cout<<
"diff " <<
diff <<
" diffR " <<
diff.R()<<
" diffR/L "<<
diff.R()/point2_TK0.second <<std::endl;
795 for(
unsigned int ind=0;ind<recVtxs->size();ind++) {
796 if (!((*recVtxs)[ind].isFake())) {
798 if(
DeltaR(eta1,phi1, (*vtxTrack)->eta(),(*vtxTrack)->phi()) < 0.01 )
t_trackPVIdx ->push_back( ind );
822 using namespace reco;
863 t_e7x7 ->push_back( e7x7P.first );
864 t_e9x9 ->push_back( e9x9P.first );
865 t_e11x11 ->push_back( e11x11P.first );
866 t_e15x15 ->push_back( e15x15P.first );
929 t_h3x3 ->push_back( h3x3 );
930 t_h5x5 ->push_back( h5x5 );
931 t_h7x7 ->push_back( h7x7 );
990 if(haveIsoTrack)
tree->Fill();
999 double tempgen_TH[16] = { 0.0, 1.0, 2.0, 3.0, 4.0,
1000 5.0, 6.0, 7.0, 9.0, 11.0,
1001 15.0, 20.0, 30.0, 50.0, 75.0, 100.0};
1005 double tempgen_Eta[4] = {0.0, 1.131, 1.653, 2.172};
1016 std::map< std::pair<unsigned int,std::string>,
int>::iterator itr;
1019 <<(itr->first).second <<
" "<<itr->second
1021 int ibin = (itr->first).
first;
1022 TString
name( (itr->first).second );
1237 char hname[100], htit[100];
1241 for(
unsigned int ieta=0; ieta<
NEtaBins; ieta++) {
1242 double lowEta=-5.0, highEta= 5.0;
1246 for(
unsigned int ipt=0; ipt<
NPBins; ipt++) {
1247 double lowP=0.0, highP=300.0;
1250 sprintf(hname,
"h_maxNearP31x31_ptBin%i_etaBin%i",ipt, ieta);
1251 sprintf(htit,
"maxNearP in 31x31 (%3.2f<|#eta|<%3.2f), (%2.0f<trkP<%3.0f)", lowEta, highEta, lowP, highP );
1254 sprintf(hname,
"h_maxNearP25x25_ptBin%i_etaBin%i",ipt, ieta);
1255 sprintf(htit,
"maxNearP in 25x25 (%3.2f<|#eta|<%3.2f), (%2.0f<trkP<%3.0f)", lowEta, highEta, lowP, highP );
1258 sprintf(hname,
"h_maxNearP21x21_ptBin%i_etaBin%i",ipt, ieta);
1259 sprintf(htit,
"maxNearP in 21x21 (%3.2f<|#eta|<%3.2f), (%2.0f<trkP<%3.0f)", lowEta, highEta, lowP, highP );
1262 sprintf(hname,
"h_maxNearP15x15_ptBin%i_etaBin%i",ipt, ieta);
1263 sprintf(htit,
"maxNearP in 15x15 (%3.2f<|#eta|<%3.2f), (%2.0f<trkP<%3.0f)", lowEta, highEta, lowP, highP );
1269 h_L1AlgoNames =
fs->
make<TH1I>(
"h_L1AlgoNames",
"h_L1AlgoNames:Bin Labels", 128, -0.5, 127.5);
1275 h_nTracks =
fs->
make<TH1F>(
"h_nTracks",
"h_nTracks", 1000, -0.5, 999.5);
1277 sprintf(hname,
"h_recEtaPt_0");
1278 sprintf(htit,
"h_recEtaPt (all tracks Eta vs pT)");
1281 sprintf(hname,
"h_recEtaP_0");
1282 sprintf(htit,
"h_recEtaP (all tracks Eta vs pT)");
1287 h_recEta_0 =
fs->
make<TH1F>(
"h_recEta_0",
"Eta (all tracks)", 60, -3.0, 3.0);
1288 h_recPhi_0 =
fs->
make<TH1F>(
"h_recPhi_0",
"Phi (all tracks)", 100, -3.2, 3.2);
1290 sprintf(hname,
"h_recEtaPt_1");
1291 sprintf(htit,
"h_recEtaPt (all good tracks Eta vs pT)");
1294 sprintf(hname,
"h_recEtaP_1");
1295 sprintf(htit,
"h_recEtaP (all good tracks Eta vs pT)");
1300 h_recEta_1 =
fs->
make<TH1F>(
"h_recEta_1",
"Eta (all good tracks)", 60, -3.0, 3.0);
1301 h_recPhi_1 =
fs->
make<TH1F>(
"h_recPhi_1",
"Phi (all good tracks)", 100, -3.2, 3.2);
1303 sprintf(hname,
"h_recEtaPt_2");
1304 sprintf(htit,
"h_recEtaPt (charge isolation Eta vs pT)");
1307 sprintf(hname,
"h_recEtaP_2");
1308 sprintf(htit,
"h_recEtaP (charge isolation Eta vs pT)");
1313 h_recEta_2 =
fs->
make<TH1F>(
"h_recEta_2",
"Eta (charge isolation)", 60, -3.0, 3.0);
1314 h_recPhi_2 =
fs->
make<TH1F>(
"h_recPhi_2",
"Phi (charge isolation)", 100, -3.2, 3.2);
1318 tree->SetAutoSave(10000);
1327 t_PVx =
new std::vector<double>();
1328 t_PVy =
new std::vector<double>();
1329 t_PVz =
new std::vector<double>();
1341 tree->Branch(
"PVx" ,
"vector<double>" ,&
t_PVx);
1342 tree->Branch(
"PVy" ,
"vector<double>" ,&t_PVy);
1343 tree->Branch(
"PVz" ,
"vector<double>" ,&t_PVz);
1344 tree->Branch(
"PVisValid" ,
"vector<int>" ,&t_PVisValid);
1345 tree->Branch(
"PVndof" ,
"vector<int>" ,&t_PVndof);
1346 tree->Branch(
"PVNTracks" ,
"vector<int>" ,&t_PVNTracks);
1347 tree->Branch(
"PVNTracksWt" ,
"vector<int>" ,&t_PVNTracksWt);
1348 tree->Branch(
"t_PVTracksSumPt" ,
"vector<double>" ,&t_PVTracksSumPt);
1349 tree->Branch(
"t_PVTracksSumPtWt" ,
"vector<double>" ,&t_PVTracksSumPtWt);
1350 tree->Branch(
"PVNTracksHP" ,
"vector<int>" ,&t_PVNTracksHP);
1351 tree->Branch(
"PVNTracksHPWt" ,
"vector<int>" ,&t_PVNTracksHPWt);
1352 tree->Branch(
"t_PVTracksSumPtHP" ,
"vector<double>" ,&t_PVTracksSumPtHP);
1353 tree->Branch(
"t_PVTracksSumPtHPWt" ,
"vector<double>" ,&t_PVTracksSumPtHPWt);
1383 tree->Branch(
"t_L1PreScale",
"vector<int>", &t_L1PreScale);
1384 tree->Branch(
"t_L1CenJetPt",
"vector<double>", &t_L1CenJetPt);
1385 tree->Branch(
"t_L1CenJetEta",
"vector<double>", &t_L1CenJetEta);
1386 tree->Branch(
"t_L1CenJetPhi",
"vector<double>", &t_L1CenJetPhi);
1387 tree->Branch(
"t_L1FwdJetPt",
"vector<double>", &t_L1FwdJetPt);
1388 tree->Branch(
"t_L1FwdJetEta",
"vector<double>", &t_L1FwdJetEta);
1389 tree->Branch(
"t_L1FwdJetPhi",
"vector<double>", &t_L1FwdJetPhi);
1390 tree->Branch(
"t_L1TauJetPt",
"vector<double>", &t_L1TauJetPt);
1391 tree->Branch(
"t_L1TauJetEta",
"vector<double>", &t_L1TauJetEta);
1392 tree->Branch(
"t_L1TauJetPhi",
"vector<double>", &t_L1TauJetPhi);
1393 tree->Branch(
"t_L1MuonPt",
"vector<double>", &t_L1MuonPt);
1394 tree->Branch(
"t_L1MuonEta",
"vector<double>", &t_L1MuonEta);
1395 tree->Branch(
"t_L1MuonPhi",
"vector<double>", &t_L1MuonPhi);
1396 tree->Branch(
"t_L1IsoEMPt",
"vector<double>", &t_L1IsoEMPt);
1397 tree->Branch(
"t_L1IsoEMEta",
"vector<double>", &t_L1IsoEMEta);
1398 tree->Branch(
"t_L1IsoEMPhi",
"vector<double>", &t_L1IsoEMPhi);
1399 tree->Branch(
"t_L1NonIsoEMPt",
"vector<double>", &t_L1NonIsoEMPt);
1400 tree->Branch(
"t_L1NonIsoEMEta",
"vector<double>", &t_L1NonIsoEMEta);
1401 tree->Branch(
"t_L1NonIsoEMPhi",
"vector<double>", &t_L1NonIsoEMPhi);
1402 tree->Branch(
"t_L1METPt",
"vector<double>", &t_L1METPt);
1403 tree->Branch(
"t_L1METEta",
"vector<double>", &t_L1METEta);
1404 tree->Branch(
"t_L1METPhi",
"vector<double>", &t_L1METPhi);
1406 t_jetPt =
new std::vector<double>();
1407 t_jetEta =
new std::vector<double>();
1408 t_jetPhi =
new std::vector<double>();
1411 tree->Branch(
"t_jetPt",
"vector<double>",&
t_jetPt);
1412 tree->Branch(
"t_jetEta",
"vector<double>",&t_jetEta);
1413 tree->Branch(
"t_jetPhi",
"vector<double>",&t_jetPhi);
1414 tree->Branch(
"t_nTrksJetCalo",
"vector<double>",&t_nTrksJetCalo);
1415 tree->Branch(
"t_nTrksJetVtx",
"vector<double>",&t_nTrksJetVtx);
1428 tree->Branch(
"t_trackPhiAll",
"vector<double>", &t_trackPhiAll );
1429 tree->Branch(
"t_trackEtaAll",
"vector<double>", &t_trackEtaAll );
1430 tree->Branch(
"t_trackPtAll",
"vector<double>", &t_trackPtAll );
1431 tree->Branch(
"t_trackDxyAll",
"vector<double>", &t_trackDxyAll );
1432 tree->Branch(
"t_trackDzAll",
"vector<double>", &t_trackDzAll );
1433 tree->Branch(
"t_trackDxyPVAll",
"vector<double>", &t_trackDxyPVAll );
1434 tree->Branch(
"t_trackDzPVAll",
"vector<double>", &t_trackDzPVAll );
1435 tree->Branch(
"t_trackChiSqAll",
"vector<double>", &t_trackChiSqAll );
1438 t_trackP =
new std::vector<double>();
1467 t_trackHitOutMissTOB =
new std::vector<int>();
1468 t_trackHitOutMissTEC =
new std::vector<int>();
1469 t_trackHitOutMissTIB =
new std::vector<int>();
1470 t_trackHitOutMissTID =
new std::vector<int>();
1481 t_trackL =
new std::vector<double>();
1483 tree->Branch(
"t_trackP",
"vector<double>", &
t_trackP );
1484 tree->Branch(
"t_trackPt",
"vector<double>", &t_trackPt );
1485 tree->Branch(
"t_trackEta",
"vector<double>", &t_trackEta );
1486 tree->Branch(
"t_trackPhi",
"vector<double>", &t_trackPhi );
1487 tree->Branch(
"t_trackEcalEta",
"vector<double>", &t_trackEcalEta );
1488 tree->Branch(
"t_trackEcalPhi",
"vector<double>", &t_trackEcalPhi );
1489 tree->Branch(
"t_trackHcalEta",
"vector<double>", &t_trackHcalEta );
1490 tree->Branch(
"t_trackHcalPhi",
"vector<double>", &t_trackHcalPhi );
1492 tree->Branch(
"t_trackNOuterHits",
"vector<int>", &t_trackNOuterHits );
1493 tree->Branch(
"t_NLayersCrossed",
"vector<int>", &t_NLayersCrossed );
1494 tree->Branch(
"t_trackHitsTOB",
"vector<int>", &t_trackHitsTOB );
1495 tree->Branch(
"t_trackHitsTEC",
"vector<int>", &t_trackHitsTEC );
1496 tree->Branch(
"t_trackHitInMissTOB",
"vector<int>", &t_trackHitInMissTOB );
1497 tree->Branch(
"t_trackHitInMissTEC",
"vector<int>", &t_trackHitInMissTEC );
1498 tree->Branch(
"t_trackHitInMissTIB",
"vector<int>", &t_trackHitInMissTIB );
1499 tree->Branch(
"t_trackHitInMissTID",
"vector<int>", &t_trackHitInMissTID );
1500 tree->Branch(
"t_trackHitInMissTIBTID",
"vector<int>", &t_trackHitInMissTIBTID );
1501 tree->Branch(
"t_trackHitOutMissTOB",
"vector<int>", &t_trackHitOutMissTOB);
1502 tree->Branch(
"t_trackHitOutMissTEC",
"vector<int>", &t_trackHitOutMissTEC);
1503 tree->Branch(
"t_trackHitOutMissTIB",
"vector<int>", &t_trackHitOutMissTIB);
1504 tree->Branch(
"t_trackHitOutMissTID",
"vector<int>", &t_trackHitOutMissTID);
1505 tree->Branch(
"t_trackHitOutMissTOBTEC",
"vector<int>", &t_trackHitOutMissTOBTEC);
1506 tree->Branch(
"t_trackHitInMeasTOB",
"vector<int>", &t_trackHitInMeasTOB );
1507 tree->Branch(
"t_trackHitInMeasTEC",
"vector<int>", &t_trackHitInMeasTEC );
1508 tree->Branch(
"t_trackHitInMeasTIB",
"vector<int>", &t_trackHitInMeasTIB );
1509 tree->Branch(
"t_trackHitInMeasTID",
"vector<int>", &t_trackHitInMeasTID );
1510 tree->Branch(
"t_trackHitOutMeasTOB",
"vector<int>", &t_trackHitOutMeasTOB);
1511 tree->Branch(
"t_trackHitOutMeasTEC",
"vector<int>", &t_trackHitOutMeasTEC);
1512 tree->Branch(
"t_trackHitOutMeasTIB",
"vector<int>", &t_trackHitOutMeasTIB);
1513 tree->Branch(
"t_trackHitOutMeasTID",
"vector<int>", &t_trackHitOutMeasTID);
1514 tree->Branch(
"t_trackOutPosOutHitDr",
"vector<double>", &t_trackOutPosOutHitDr);
1515 tree->Branch(
"t_trackL",
"vector<double>", &t_trackL);
1517 tree->Branch(
"t_trackDxy",
"vector<double>", &t_trackDxy );
1518 tree->Branch(
"t_trackDxyBS",
"vector<double>", &t_trackDxyBS );
1519 tree->Branch(
"t_trackDz",
"vector<double>", &t_trackDz );
1520 tree->Branch(
"t_trackDzBS",
"vector<double>", &t_trackDzBS );
1521 tree->Branch(
"t_trackDxyPV",
"vector<double>", &t_trackDxyPV );
1522 tree->Branch(
"t_trackDzPV",
"vector<double>", &t_trackDzPV );
1523 tree->Branch(
"t_trackChiSq",
"vector<double>", &t_trackChiSq );
1524 tree->Branch(
"t_trackPVIdx",
"vector<int>", &t_trackPVIdx );
1530 tree->Branch(
"t_maxNearP21x21",
"vector<double>", &t_maxNearP21x21);
1533 t_e7x7 =
new std::vector<double>();
1534 t_e9x9 =
new std::vector<double>();
1535 t_e11x11 =
new std::vector<double>();
1536 t_e15x15 =
new std::vector<double>();
1539 tree->Branch(
"t_e7x7",
"vector<double>", &t_e7x7);
1540 tree->Branch(
"t_e9x9",
"vector<double>", &t_e9x9);
1541 tree->Branch(
"t_e11x11",
"vector<double>", &t_e11x11);
1542 tree->Branch(
"t_e15x15",
"vector<double>", &t_e15x15);
1566 tree->Branch(
"t_e9x9_10Sig" ,
"vector<double>", &t_e9x9_10Sig);
1567 tree->Branch(
"t_e11x11_10Sig" ,
"vector<double>", &t_e11x11_10Sig);
1568 tree->Branch(
"t_e15x15_10Sig" ,
"vector<double>", &t_e15x15_10Sig);
1569 tree->Branch(
"t_e7x7_15Sig" ,
"vector<double>", &t_e7x7_15Sig);
1570 tree->Branch(
"t_e9x9_15Sig" ,
"vector<double>", &t_e9x9_15Sig);
1571 tree->Branch(
"t_e11x11_15Sig" ,
"vector<double>", &t_e11x11_15Sig);
1572 tree->Branch(
"t_e15x15_15Sig" ,
"vector<double>", &t_e15x15_15Sig);
1573 tree->Branch(
"t_e7x7_20Sig" ,
"vector<double>", &t_e7x7_20Sig);
1574 tree->Branch(
"t_e9x9_20Sig" ,
"vector<double>", &t_e9x9_20Sig);
1575 tree->Branch(
"t_e11x11_20Sig" ,
"vector<double>", &t_e11x11_20Sig);
1576 tree->Branch(
"t_e15x15_20Sig" ,
"vector<double>", &t_e15x15_20Sig);
1577 tree->Branch(
"t_e7x7_25Sig" ,
"vector<double>", &t_e7x7_25Sig);
1578 tree->Branch(
"t_e9x9_25Sig" ,
"vector<double>", &t_e9x9_25Sig);
1579 tree->Branch(
"t_e11x11_25Sig" ,
"vector<double>", &t_e11x11_25Sig);
1580 tree->Branch(
"t_e15x15_25Sig" ,
"vector<double>", &t_e15x15_25Sig);
1581 tree->Branch(
"t_e7x7_30Sig" ,
"vector<double>", &t_e7x7_30Sig);
1582 tree->Branch(
"t_e9x9_30Sig" ,
"vector<double>", &t_e9x9_30Sig);
1583 tree->Branch(
"t_e11x11_30Sig" ,
"vector<double>", &t_e11x11_30Sig);
1584 tree->Branch(
"t_e15x15_30Sig" ,
"vector<double>", &t_e15x15_30Sig);
1622 tree->Branch(
"t_esim9x9",
"vector<double>", &t_esim9x9);
1623 tree->Branch(
"t_esim11x11",
"vector<double>", &t_esim11x11);
1624 tree->Branch(
"t_esim15x15",
"vector<double>", &t_esim15x15);
1626 tree->Branch(
"t_esim7x7Matched",
"vector<double>", &t_esim7x7Matched);
1627 tree->Branch(
"t_esim9x9Matched",
"vector<double>", &t_esim9x9Matched);
1628 tree->Branch(
"t_esim11x11Matched",
"vector<double>", &t_esim11x11Matched);
1629 tree->Branch(
"t_esim15x15Matched",
"vector<double>", &t_esim15x15Matched);
1631 tree->Branch(
"t_esim7x7Rest",
"vector<double>", &t_esim7x7Rest);
1632 tree->Branch(
"t_esim9x9Rest",
"vector<double>", &t_esim9x9Rest);
1633 tree->Branch(
"t_esim11x11Rest",
"vector<double>", &t_esim11x11Rest);
1634 tree->Branch(
"t_esim15x15Rest",
"vector<double>", &t_esim15x15Rest);
1636 tree->Branch(
"t_esim7x7Photon",
"vector<double>", &t_esim7x7Photon);
1637 tree->Branch(
"t_esim9x9Photon",
"vector<double>", &t_esim9x9Photon);
1638 tree->Branch(
"t_esim11x11Photon",
"vector<double>", &t_esim11x11Photon);
1639 tree->Branch(
"t_esim15x15Photon",
"vector<double>", &t_esim15x15Photon);
1642 tree->Branch(
"t_esim7x7NeutHad",
"vector<double>", &t_esim7x7NeutHad);
1643 tree->Branch(
"t_esim9x9NeutHad",
"vector<double>", &t_esim9x9NeutHad);
1644 tree->Branch(
"t_esim11x11NeutHad",
"vector<double>", &t_esim11x11NeutHad);
1645 tree->Branch(
"t_esim15x15NeutHad",
"vector<double>", &t_esim15x15NeutHad);
1647 tree->Branch(
"t_esim7x7CharHad",
"vector<double>", &t_esim7x7CharHad);
1648 tree->Branch(
"t_esim9x9CharHad",
"vector<double>", &t_esim9x9CharHad);
1649 tree->Branch(
"t_esim11x11CharHad",
"vector<double>", &t_esim11x11CharHad);
1650 tree->Branch(
"t_esim15x15CharHad",
"vector<double>", &t_esim15x15CharHad);
1652 tree->Branch(
"t_trkEcalEne",
"vector<double>", &t_trkEcalEne);
1653 tree->Branch(
"t_simTrackP",
"vector<double>", &t_simTrackP);
1654 tree->Branch(
"t_esimPdgId",
"vector<double>", &t_esimPdgId);
1660 t_h3x3 =
new std::vector<double>();
1661 t_h5x5 =
new std::vector<double>();
1662 t_h7x7 =
new std::vector<double>();
1691 tree->Branch(
"t_maxNearHcalP5x5",
"vector<double>", &t_maxNearHcalP5x5);
1692 tree->Branch(
"t_maxNearHcalP7x7",
"vector<double>", &t_maxNearHcalP7x7);
1693 tree->Branch(
"t_h3x3",
"vector<double>", &t_h3x3);
1694 tree->Branch(
"t_h5x5",
"vector<double>", &t_h5x5);
1695 tree->Branch(
"t_h7x7",
"vector<double>", &t_h7x7);
1696 tree->Branch(
"t_h3x3Sig",
"vector<double>", &t_h3x3Sig);
1697 tree->Branch(
"t_h5x5Sig",
"vector<double>", &t_h5x5Sig);
1698 tree->Branch(
"t_h7x7Sig",
"vector<double>", &t_h7x7Sig);
1699 tree->Branch(
"t_infoHcal",
"vector<int>", &t_infoHcal);
1731 double pi = 3.141592654;
1732 double twopi = 6.283185307;
1736 if (diff < pi){
return diff;}
else {
return corr;}
1740 double deta = eta1 - eta2;
1741 double dphi =
DeltaPhi(phi1, phi2);
1742 return std::sqrt(deta*deta + dphi*dphi);
1747 using namespace reco;
1752 <<
" TrackMmentum " << pTrack->
momentum()
1753 <<
" (pt,eta,phi)(" << pTrack->
pt()<<
","<<pTrack->
eta()<<
","<<pTrack->
phi()<<
")"
1754 <<
" p " << pTrack->
p() <<
"\n"
1757 <<
" d0 " << pTrack->
d0() <<
"\n"
1759 <<
" TrackQuality " << pTrack->
qualityName(trackQuality_) <<
" " << pTrack->
quality(trackQuality_)
1770 std::cout<<
"trackerExpectedHitsInner() " << std::endl;
1771 for(
int i = 0;
i < p.
numberOfHits(HitPattern::MISSING_INNER_HITS);
i++){
1775 std::cout<<
"trackerExpectedHitsOuter() " << std::endl;
1776 for(
int i = 0;
i < p.
numberOfHits(HitPattern::MISSING_OUTER_HITS);
i++){
1780 std::cout <<
"\n \t trackerLayersWithMeasurement() "
1782 <<
"\n \t pixelLayersWithMeasurement() "
1784 <<
"\n \t stripLayersWithMeasurement() "
1786 <<
"\n \t pixelBarrelLayersWithMeasurement() "
1788 <<
"\n \t pixelEndcapLayersWithMeasurement() "
1790 <<
"\n \t stripTIBLayersWithMeasurement() "
1792 <<
"\n \t stripTIDLayersWithMeasurement() "
1794 <<
"\n \t stripTOBLayersWithMeasurement() "
1796 <<
"\n \t stripTECLayersWithMeasurement() "
std::vector< double > * t_hsim7x7CharHad
double qoverp() const
q / p
double DeltaPhi(double v1, double v2)
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
T getParameter(std::string const &) const
EventNumber_t event() const
std::vector< double > * t_maxNearHcalP7x7
T getUntrackedParameter(std::string const &, T const &) const
const Point & referencePoint() const
Reference point on the track.
std::vector< double > * t_trackPt
std::vector< double > * t_trackPAll
std::vector< double > * t_e7x7
std::vector< double > * t_trackHcalPhi
std::vector< double > * t_trackDxyPVAll
static std::string qualityName(TrackQuality)
std::vector< int > * t_trackHitOutMeasTEC
std::vector< double > * t_trackPdgIdAll
edm::InputTag JetExtender_
std::vector< spr::propagatedTrackID > propagateCALO(edm::Handle< reco::TrackCollection > &trkCollection, const CaloGeometry *geo, const MagneticField *bField, std::string &theTrackQuality, bool debug=false)
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)
edm::InputTag L1extraCenJetSource_
std::vector< double > * t_trackOutPosOutHitDr
static const bool useL1GtTriggerMenuLite(false)
std::vector< double > * t_maxNearHcalP5x5
std::vector< double > * t_L1NonIsoEMPt
std::vector< int > * t_trackHitOutMeasTIB
std::vector< double > * t_esim7x7
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::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
#define DEFINE_FWK_MODULE(type)
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
static const size_t NEtaBins
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 pixelLayersWithMeasurement() const
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.
std::vector< double > * t_trackDxyAll
T * make(const Args &...args) const
make new ROOT object
std::vector< double > * t_maxNearHcalP3x3
edm::InputTag L1extraIsoEmSource_
IsolatedTracksNxN(const edm::ParameterSet &)
edm::EDGetTokenT< edm::SimVertexContainer > tok_simVtx_
std::vector< double > * t_hsim3x3Photon
edm::EDGetTokenT< reco::BeamSpot > tok_bs_
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 pixelEndcapLayersWithMeasurement() const
edm::InputTag L1GTReadoutRcdSource_
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
std::vector< double > * t_trkHcalEne
edm::InputTag L1extraFwdJetSource_
std::vector< double > * t_e7x7_20Sig
std::vector< double > * t_e11x11_10Sig
std::vector< double > * t_trackPtAll
std::vector< double > * t_h3x3Sig
edm::Service< TFileService > fs
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, bool debug=false)
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::map< std::pair< unsigned int, std::string >, int > l1AlgoMap
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_trackEta
const bool decision(const edm::Event &iEvent, const edm::InputTag &l1GtRecordInputTag, const edm::InputTag &l1GtReadoutRecordInputTag, const std::string &nameAlgoTechTrig, int &errorCode) const
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
edm::InputTag L1extraTauJetSource_
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
int trackerLayersWithMeasurement() const
std::vector< int > * t_trackHitOutMissTID
std::vector< int > * t_trackHitOutMissTOBTEC
double pt() const
track transverse momentum
edm::InputTag HBHERecHitSource_
std::vector< int > * t_trackHitsTEC
std::vector< double > * t_e9x9_30Sig
const MagneticField * bField
edm::EDGetTokenT< edm::PCaloHitContainer > tok_caloEB_
std::vector< double > * t_L1CenJetPhi
std::vector< double > * t_L1FwdJetEta
std::vector< double > * t_h7x7
Abs< T >::type abs(const T &t)
std::vector< int > * t_ecalSpike11x11
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_
static const bool useL1EventSetup(true)
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
void analyze(const edm::Event &, const edm::EventSetup &)
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< int > * t_L1PreScale
void getL1GtRunCache(const edm::Run &, const edm::EventSetup &, const bool, const bool, const edm::InputTag &)
get all the run-constant quantities for L1 trigger and cache them
std::vector< double > * t_hsim3x3Rest
int stripTIDLayersWithoutMeasurement(HitCategory category) const
edm::InputTag L1extraNonIsoEmSource_
std::vector< int > * t_PVisValid
static TrackQuality qualityByName(const std::string &name)
std::vector< double > * t_L1METPhi
std::vector< double > * t_esim9x9Rest
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
std::vector< double > * t_trkEcalEne
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
T const * product() const
edm::EDGetTokenT< edm::PCaloHitContainer > tok_caloEE_
edm::EDGetTokenT< EcalRecHitCollection > tok_EB_
TH1F * h_maxNearP15x15[NPBins][NEtaBins]
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
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
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
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
std::vector< double > * t_trackHcalEta
std::vector< double > * t_L1METPt
edm::InputTag L1extraMuonSource_
volatile std::atomic< bool > shutdown_flag false
std::vector< int > * t_NLayersCrossed
edm::EDGetTokenT< reco::CaloJetCollection > tok_jets_
double DeltaR(double eta1, double phi1, double eta2, double phi2)
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
const int prescaleFactor(const edm::Event &iEvent, const edm::InputTag &l1GtRecordInputTag, const edm::InputTag &l1GtReadoutRecordInputTag, const std::string &nameAlgoTechTrig, int &errorCode) const
return prescale factor for a given algorithm or technical trigger
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
std::vector< int > * t_trackHitOutMissTEC
std::vector< double > * t_e11x11_25Sig
std::vector< double > * t_hsim3x3
std::vector< double > * t_trackP
static const size_t NPBins
std::vector< double > * t_hsim7x7Photon
std::vector< double > * t_jetPt
std::vector< double > * t_L1IsoEMPt
int numberOfHits(HitCategory category) const
std::vector< double > * t_esim11x11Photon
edm::InputTag L1GTObjectMapRcdSource_
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_
edm::EDGetTokenT< l1extra::L1JetParticleCollection > tok_L1extTauJet_
std::vector< double > * t_esim15x15CharHad