4 bool EventSummaryData::Fill(AMSEventR *evPtr) {
14 begin(evPtr->Particle()),
15 std::max_element(
begin(evPtr->Particle()),
end(evPtr->Particle()), [](ParticleR &p1, ParticleR &p2) {
16 if (p2.pEcalShower() == p1.pEcalShower())
19 double e1 = p1.pEcalShower() ? p1.pEcalShower()->EnergyD : 0;
20 double e2 = p2.pEcalShower() ? p2.pEcalShower()->EnergyD : 0;
25 begin(evPtr->Particle()),
26 std::max_element(
begin(evPtr->Particle()),
end(evPtr->Particle()), [](ParticleR &p1, ParticleR &p2) {
27 if (p2.pBetaH() == p1.pBetaH())
33 double q1 = p1.pBetaH() ? p1.pBetaH()->GetQ(nlayers, qrms, 2, TofClusterHR::DefaultQOptIon) : 0;
34 double q2 = p2.pBetaH() ? p2.pBetaH()->GetQ(nlayers, qrms, 2, TofClusterHR::DefaultQOptIon) : 0;
39 begin(evPtr->Particle()),
40 std::max_element(
begin(evPtr->Particle()),
end(evPtr->Particle()), [](ParticleR &p1, ParticleR &p2) {
41 if (p2.pTrTrack() == p1.pTrTrack())
44 double q1 = p1.pTrTrack() ? p1.pTrTrack()->GetInnerQ_all().Mean : 0;
45 double q2 = p2.pTrTrack() ? p2.pTrTrack()->GetInnerQ_all().Mean : 0;
49 if (evPtr->pLevel1(0)) {
61 evPtr->pLevel1(0)->RebuildTrigPatt(dummy, otherDummy);
62 PhysBPatt =
static_cast<unsigned short>(otherDummy);
69 NAcc = std::bitset<8>(evPtr->pLevel1(0)->AntiPatt).count();
unsigned short NParticle
Total number of reconstructed particles in the event.
unsigned short NAcc
Number of fired ACC counters.
NAIAChain::EventItr begin(NAIAChain &chain)
unsigned short NAntiCluster
Number of fired ACC clusters.
unsigned short PhysBPatt
same as in gbatch, see https://ams.cern.ch/AMS/Analysis/hpl3itp1/root02_v5/html/development/html/clas...
unsigned short NTrRecHit
Total number of Tracker hits in the event.
unsigned short NEcalShower
Total number of Ecal showers in the event.
short HighestEcalEnergyParticle
ID of the ParticleR object with the highest ECAL shower energy.
short HighestInnerChargeParticle
ID of the ParticleR object with the highest Inner Tracker charge.
unsigned short NTrTrack
Total number of Tracker tracks in the event.
short HighestBetaHChargeParticle
ID of the ParticleR object with the highest BetaH charge.
unsigned short NTofCluster
Total number of Tof clusters in the event.
unsigned short JMembPatt
same as in gbatch, see https://ams.cern.ch/AMS/Analysis/hpl3itp1/root02_v5/html/development/html/clas...
NAIAChain::EventItr end(NAIAChain &chain)
Event summary container class description.
unsigned short NRichRing
Total number of Rich rings in the event.