480 MCPart = Belle2.PyStoreArray('MCParticles')
482 self.eplus_t[0]=Theta_MCTruth(MCPart[2])
483 self.eminus_t[0]=Theta_MCTruth(MCPart[3])
484 if self.eplus_t[0] > self.eminus_t[0]:
485 self.efrd_t[0]=self.eminus_t[0]
486 self.ebkd_t[0]=self.eplus_t[0]
488 self.efrd_t[0]=self.eplus_t[0]
489 self.ebkd_t[0]=self.eminus_t[0]
490 count_part = Count_part_inDetector(MCPart)
491 self.n_par_t[0]=count_part[0]
492 self.n_par_t[1]=count_part[1]
493 count_mcpart = Count_mcpart(MCPart)
494 self.n_mcpar_t[0]=count_mcpart[0]
495 self.n_mcpar_t[1]=count_mcpart[1]
498 self.ntrk_2dfinder_t[0] = len(trk_2d_finder)
500 self.ntrk_2dfitter_t[0] = len(trk_2d_fitter)
502 self.ntrk_3dfitter_t[0] = len(trk_3d_fitter)
504 self.ntrk_NN_t[0] = len(tracks)
510 clusters = Time_Window(clusters_original, eventtime)
511 self.ncluster_t[0] = len(clusters)
513 time_clu_list = Time_Cluster(clusters_original, eventtime)
514 for i
in range(len(time_clu_list)):
516 self.time_cluster_t[i] = time_clu_list[i]
518 clusters_300_cms = Cluster_Threshold(clusters, 0.3,
False)
519 clusters_400_cms = Cluster_Threshold(clusters, 0.4,
False)
520 clusters_500_cms = Cluster_Threshold(clusters, 0.5,
False)
521 clusters_700_cms = Cluster_Threshold(clusters, 0.7,
False)
522 clusters_1000_cms = Cluster_Threshold(clusters, 1.0,
False)
523 clusters_2000_cms = Cluster_Threshold(clusters, 2.0,
False)
524 clusters_2500_cms = Cluster_Threshold(clusters, 2.5,
False)
525 self.cpair_t[0] = Back_to_Back(clusters, clusters)
526 self.cpair_t[1] = Back_to_Back(clusters_300_cms, clusters)
527 self.cpair_t[2] = Back_to_Back(clusters_400_cms, clusters)
528 self.cpair_t[3] = Back_to_Back(clusters_500_cms, clusters)
529 self.cpair_t[4] = Back_to_Back(clusters_700_cms, clusters)
530 self.cpair_t[5] = Back_to_Back(clusters_1000_cms, clusters)
531 self.cpair_t[6] = Back_to_Back(clusters_2000_cms, clusters)
532 self.cpair_t[7] = Back_to_Back(clusters_2500_cms, clusters)
535 self.ntrk_klm_t[0] = len(klmtrkcol)
537 self.nhit_klm_t[0] = len(klmhitcol)
540 self.ntrk_3Dmatch_t[0] = len(matchlist)
543 self.npair_tc_t[0] = trginfo.getNbbTrkCluster()
544 self.npair_cc_t[0] = trginfo.getNbbCluster()
545 self.ncluster_1000b_t[0] = trginfo.getNhighcluster2()
546 self.ncluster_2000e_t[0] = trginfo.getNhighcluster4()
547 self.max_deltphi_2dfinder_t[0] = Max_DeltPhi_trk(trk_2d_finder)
549 neutral_clusters = NeutralCluster(clusters)
550 self.ncluster_neutral_t[0] = len(neutral_clusters)
551 max_cluster_neu = Max_Cluster(neutral_clusters, 0)
552 max_cluster = Max_Cluster(clusters, 0)
555 smax_cluster_neu = Max_Cluster(neutral_clusters, 1)
556 smax_cluster = Max_Cluster(clusters, 1)
559 for i
in range(self.ncomp_clu):
560 self.max_cluster_neutral_t[i] = max_cluster_neu[i]
562 self.max_cluster_t[i] = max_cluster[i]
564 self.smax_cluster_neutral_t[i] = smax_cluster_neu[i]
566 self.smax_cluster_t[i] = smax_cluster[i]
569 self.etot_t[0] = Etot_Cluster(clusters)
572 bhabhaveto_1 = BhabhaVeto1(matchlist)
574 for bha
in bhabhaveto_1:
575 if math.fabs(bha[0]) < 50
and math.fabs(bha[0]) > 10
and math.fabs(bha[1]) < 20:
576 if bha[2] > 2.0
and bha[3] > 2.0
and bha[4] > 6.0:
577 if bha[2] > 3.0
or bha[3] > 3.0:
578 if len(trk_2d_finder) == 2:
580 self.bhabha_t[0] = bha_logic
582 if len(bhabhaveto_1) >= 1:
583 for i
in range(self.nbha_var):
584 self.bhabha_var_t[i] = bhabhaveto_1[0][i]
587 eclbhabhaveto = eclBhabhaVeto(clusters)
589 for eclbha
in eclbhabhaveto:
590 if math.fabs(eclbha[0]) < 50
and math.fabs(eclbha[1]) < 50:
591 if eclbha[2] > 2.0
and eclbha[3] > 2.0
and eclbha[4] > 6.0:
592 if eclbha[2] > 3.0
or eclbha[3] > 3.0:
594 self.eclbhabha_t[0] = eclbha_logic
598 if len(trk_2d_finder) == 1:
599 if eclbha_logic == 1:
600 ecol = SBhabhaVeto(matchlist)
604 self.sbhabha_t[0] = sbha_logic
606 self.max_deltphi_cluster_t[0] = Max_DeltPhi_cluster(clusters)
607 if len(eclbhabhaveto) >= 1:
608 for i
in range(self.nbha_var):
609 self.eclbhabha_var_t[i] = eclbhabhaveto[0][i]
A (simplified) python wrapper for StoreArray.
a (simplified) python wrapper for StoreObjPtr.