本文整理汇总了C++中EventData::SetnTrk方法的典型用法代码示例。如果您正苦于以下问题:C++ EventData::SetnTrk方法的具体用法?C++ EventData::SetnTrk怎么用?C++ EventData::SetnTrk使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EventData
的用法示例。
在下文中一共展示了EventData::SetnTrk方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
//.........这里部分代码省略.........
ev->AddTrack(particle);
}
ev->EventID = iEv;
EventCache[multBin][zvtxBin].push_back( (*ev) );
count++;
ev->Clear(nCorrTyp, nPtBins);
}
// Event counter info
if ( ((iEv % 10000) == 0) || (count == 11) )
{ std::cout << Form("multBin: %02d, zvtxBin: %02d, event: %05d, found: %02d/10", multBin, zvtxBin, iEv, count) << std::endl; }
iEv++;
}
}
std::cout << "Preloading completed." << std::endl << std::endl;
std::cout << "EventCache statistics:" << std::endl;
// Deleting first elements of deque
for(int multBin = 0; multBin < nMultiplicityBins_EvM; multBin++)
for(int zvtxBin = 0; zvtxBin < nZvtxBins_; zvtxBin++)
{
EventCache[multBin][zvtxBin].pop_front();
std::cout << Form("multBin: %3d, zvtxBin: %3d, found: %2d/10", multBin, zvtxBin, EventCache[multBin][zvtxBin].size()) << std::endl;
}
log->wr(Form("trackTree entries: %d", trksparts.genPartTree->GetEntries()));
log->wr(Form("EventSelection (SkimAna) entries: %d", EvSel.GetEntries()));
log->wr(Form("nEvMax: %d", nEvMax));
///////////////////////////
// //
// ***** ANALYISIS ***** //
// //
///////////////////////////
if (nEvMax == -1) {nEvMax = trksparts.genPartTree->GetEntries();}
log->wr(Form("trackTree entries: %d", trksparts.genPartTree->GetEntries() ));
log->wr(Form("SkimAna entries: %d", EvSel.GetEntries()));
log->wr(Form("nEvMax: %d", nEvMax));
for (int iEvA = 0; iEvA < nEvMax; iEvA++)
{
log->EventCounter(iEvA);
// Get current event info
EvtAna->GetEntry(iEvA);
// Event Selection
if ( !EvSel.isGoodEv_pPb( iEvA ) ) continue;
if ( zvtxbin(vz, nZvtxBins) == -1 ) continue;
CFW.nEvents_Processed_signal_total->Fill(0.);
if ( multiplicitybin_Ana(hiNtracks, nMultiplicityBins_Ana) == -1) continue;
ev->Clear(nCorrTyp, nPtBins);
ev->EventID = iEvA;
ev->SetnTrk(hiNtracks);
ev->SetzVtx(vz);
// Statistics
CFW.nEvents_Processed_signal_total->Fill(1.);
nTrkDistr_signal->Fill( hiNtracks );
CFW.ResetCurrentEventCorrelation();
// Load in tracks
trksparts.genPartTree->GetEntry(iEvA);
// Read in event
ev->ReadInGenParticles( trksparts.genParts, pidutil );
CFW.SignalCorrelation(ev);
CFW.MixedCorrelation(ev, EventCache_ptr);
CFW.AddCurrentEventCorrelation(ev);
}
//////////////////////
// //
// **** OUTPUT **** //
// //
//////////////////////
output->Write();
output->Close();
}