Belle II Software  release-08-01-10
TrgEclMaster Class Reference

ETM class. More...

#include <TrgEclMaster.h>

Collaboration diagram for TrgEclMaster:

Public Member Functions

 TrgEclMaster (void)
 TrgEclMaster Constructor.
 
virtual ~TrgEclMaster ()
 TrgEclMaster Destructor.
 
 TrgEclMaster (TrgEclMaster &)=delete
 Copy constructor, deleted.
 
TrgEclMasteroperator= (TrgEclMaster &)=delete
 Assignment operator, deleted.
 
void initialize (int)
 initialize
 
void simulate01 (int)
 simulates ECL trigger for Global Cosmic data

 
void simulate02 (int)
 simulates ECL trigger for Data Analysis
 
std::string name (void) const
 returns name.
 
std::string version (void) const
 returns version.
 
void setRS (std::vector< int >, std::vector< double >, std::vector< double > &, std::vector< std::vector< double >> &)
 ECL bit information for GDL. More...
 
void setClusterMethod (int cluster)
 Get Event timing. More...
 
void setClusterLimit (int limit)
 Set the limit # of Cluster.
 
void setBhabhaMethod (int bhabha)
 Set Bhabha.
 
void setEventTimingMethod (int EventTiming)
 Set Cluster.
 
void setTimeWindow (int timewindow)
 Set Trigger Decision window size.
 
void setOverlapWindow (int overlapwindow)
 Set Trigger Decision overlap window size.
 
void setNofTopTC (int noftoptc)
 set # of considered TC in energy weighted Timing method
 
void makeLowMultiTriggerBit (std::vector< int >, std::vector< double >)
 make LowMultiTriggerBit
 
void makeTriggerBit (int, int, int, int, double, int, int, std::vector< int >, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)
 make Trigger bit except for Low Multiplicity related bit
 
double setTotalEnergy (std::vector< double >)
 Set Total Energy.
 
int getTriggerbit (int i)
 Get ECL Trigger bit.
 
int getLowmultibit ()
 Get Low Multiplicity Trigger Bit.
 
void set2DBhabhaThreshold (const std::vector< double > &i2DBhabhaThresholdFWD, const std::vector< double > &i2DBhabhaThresholdBWD)
 set 2D Bhabha Energy Threshold
 
void set3DBhabhaSelectionThreshold (const std::vector< double > &i3DBhabhaSelectionThreshold)
 set 3D selection Bhabha Energy Threshold
 
void set3DBhabhaVetoThreshold (const std::vector< double > &i3DBhabhaVetoThreshold)
 set 3D veto Bhabha Energy Threshold
 
void set3DBhabhaSelectionAngle (const std::vector< double > &i3DBhabhaSelectionAngle)
 set 3D selection Bhabha Energy Angle
 
void set3DBhabhaVetoAngle (const std::vector< double > &i3DBhabhaVetoAngle)
 set 3D veto Bhabha Energy Angle
 
void setmumuThreshold (int mumuThreshold)
 set mumu bit Threshold
 
void setmumuAngle (const std::vector< double > &imumuAngle)
 set mumu bit Angle selection
 
void set3DBhabhaAddAngleCut (const std::vector< double > &i3DBhabhaAddAngleCut)
 set 3D Bhabha addtion Angle selection
 
void setTaub2bAngleCut (const std::vector< int > &itaub2bAngleCut)
 set tau b2b 2 cluster angle cut
 
void setTaub2bEtotCut (double itaub2bEtotCut)
 set tau b2b total energy cut
 
void setTaub2bClusterECut (double itaub2bClusterECut1, double itaub2bClusterECut2)
 set tau b2b 1Cluster energy cut
 
void setTaub2b2Cut (const std::vector< int > &iTaub2b2AngleCut, const double iTaub2b2EtotCut, const double iTaub2b2CLEEndcapCut, const double iTaub2b2CLECut)
 set taub2b2 cut
 
void setTaub2b3Cut (const std::vector< int > &iTaub2b3AngleCut, const double iTaub2b3EtotCut, const double iTaub2b3CLEb2bCut, const double iTaub2b3CLELowCut, const double iTaub2b3CLEHighCut)
 set taub2b3 cut
 
void setn300MeVClusterThreshold (int n300MeVCluster)
 set the number of cluster exceeding 300 MeV
 
void setECLBurstThreshold (int ECLBurstThreshold)
 set mumu bit Threshold
 
void setTotalEnergyThreshold (const std::vector< double > &iTotalEnergy)
 set Total Energy Theshold (low, high, lum)
 
void setLowMultiplicityThreshold (const std::vector< double > &iLowMultiThreshold)
 set Low Multiplicity Threshold
 
void set3DBhabhaVetoInTrackThetaRegion (const std::vector< int > &i3DBhabhaVetoInTrackThetaRegion)
 set theta ID region (low and high) of 3DBhabhaVeto InTrack for gg selection
 
void setEventTimingQualityThresholds (const std::vector< double > &iEventTimingQualityThresholds)
 set energy threshold(low and high) of event timing quality flag (GeV)
 

Static Public Member Functions

static TrgEclMastergetTrgEclMaster (void)
 get pointer of TrgEclMaster object
 

Private Attributes

std::vector< std::vector< double > > m_TCEnergy
 Hit TC Energy.
 
std::vector< std::vector< double > > m_TCTiming
 Hit TC Timing.
 
std::vector< std::vector< int > > m_TCBeamBkgTag
 Hit TC Beam Background tag.
 
std::vector< int > m_HitTCId
 Hit TC Energy in time window.
 
std::vector< double > m_TCHitEnergy
 Hit TC Energy in time window.
 
std::vector< double > m_TCHitTiming
 Hit TC Timing in time window.
 
std::vector< int > m_TCHitBeamBkgTag
 Hit TC Beam Background tag in time window.
 
std::vector< std::vector< double > > m_PhiRingSum
 Phi ring sum.
 
std::vector< std::vector< std::vector< double > > > m_ThetaRingSum
 Theta ring sum.
 
double m_TimeWindow
 Hit TC Energy in time window. More...
 
double m_OverlapWindow
 TRG Decision overlap window.
 
int m_Clustering
 clutering option
 
int m_Bhabha
 Bhabha option.
 
int m_EventTiming
 EventTiming option.
 
int m_NofTopTC
 
int m_ClusterLimit
 The limit number of Cluster.
 
int m_Triggerbit [4]
 ECL Trigger bit.
 
int m_Lowmultibit
 Low Multiplicity bit.
 
int m_PrescaleFactor
 Bhabha Prescale Factor.
 
int m_PrescaleCounter
 Bhabha Prescale Countor.
 
std::vector< double > m_2DBhabhaThresholdFWD
 2D Bhabha Energy Threshold
 
std::vector< double > m_2DBhabhaThresholdBWD
 2D Bhabha Energy Threshold
 
std::vector< double > m_3DBhabhaSelectionThreshold
 3D Selection Bhabha Energy Threshold
 
std::vector< double > m_3DBhabhaVetoThreshold
 3D Veto Bhabha Energy Threshold
 
std::vector< double > m_3DBhabhaSelectionAngle
 3D Selection Bhabha Energy Angle
 
std::vector< double > m_3DBhabhaVetoAngle
 3D Veto Bhabha Energy Angle
 
double m_mumuThreshold
 mumu bit Energy Threshold
 
std::vector< double > m_mumuAngle
 mumu bit Angle
 
std::vector< double > m_3DBhabhaAddAngleCut
 Angle selection of additional Bhabha addition in CM frame.
 
std::vector< int > m_taub2bAngleCut
 tau b2b 2 cluster angle cut (degree) (dphi low, dphi high, theta_sum low, theta_sum high)
 
double m_taub2bEtotCut
 tau b2b total energy (TC theta ID =1-17) (GeV)
 
double m_taub2bClusterECut1
 taub2b one Cluster energy selection (GeV)
 
double m_taub2bClusterECut2
 taub2b one Cluster energy selection (GeV)
 
std::vector< int > m_taub2b2AngleCut
 taub2b2 angle selection(degree) (3,2,1,0) = (dphi low, dphi high, theta_sum low, theta_sum high)
 
double m_taub2b2EtotCut
 taub2b2 total energy (TC theta ID =1-17) (GeV)
 
double m_taub2b2CLEEndcapCut
 taub2b2 cluster energy cut for endcap cluster (GeV)
 
double m_taub2b2CLECut
 taub2b2 cluseter energy cut (GeV)
 
std::vector< int > m_taub2b3AngleCut
 taub2b3 selection cuts (3,2,1,0) = (dphi low, dphi high, theta_sum low, theta_sum high)
 
double m_taub2b3EtotCut
 taub2b3 total energy (TC theta ID =1-17) (GeV)
 
double m_taub2b3CLEb2bCut
 taub2b3 cluster energy cut in lab for one of b2b clusters (GeV)
 
double m_taub2b3CLELowCut
 taub2b3 cluster energy low cut in lab for all clusters (GeV)
 
double m_taub2b3CLEHighCut
 taub2b3 cluster energy high cut in lab for all clusters (GeV)
 
int m_n300MeVCluster
 The number of Cluster exceeding 300 MeV.
 
double m_ECLBurstThreshold
 ECL Burst Bit Threshold.
 
std::vector< double > m_TotalEnergy
 Total Energy Theshold (low, high, lum)
 
std::vector< double > m_LowMultiThreshold
 Low Multiplicity Threshold.
 
std::vector< int > m_3DBhabhaVetoInTrackThetaRegion
 Theta region (low, high) of 3D Bhabha Veto InTrack.
 
std::vector< double > m_EventTimingQualityThresholds
 energy threshold(low, high) for quality flag (GeV)
 
TrgEclMappingm_obj_map
 Mapping object.
 
TrgEclClusterm_obj_cluster
 Cluster object.
 
TrgEclTimingm_obj_timing
 EventTiming object.
 
TrgEclBhabham_obj_bhabha
 Bhabha object.
 
TrgEclBeamBKGm_obj_beambkg
 Beam Backgroud veto object.
 
TrgEclDataBasem_obj_database
 Beam Backgroud veto object.
 

Detailed Description

ETM class.

Definition at line 33 of file TrgEclMaster.h.

Member Function Documentation

◆ setClusterMethod()

void setClusterMethod ( int  cluster)
inline

Get Event timing.

Set Cluster

Definition at line 78 of file TrgEclMaster.h.

78 {m_Clustering = cluster;}
int m_Clustering
clutering option
Definition: TrgEclMaster.h:258

◆ setRS()

void setRS ( std::vector< int >  TCId,
std::vector< double >  TCHit,
std::vector< double > &  phiringsum,
std::vector< std::vector< double >> &  thetaringsum 
)

ECL bit information for GDL.

ECL bit information for GDL Set Phi Ring Sum

Definition at line 1075 of file TrgEclMaster.cc.

1079 {
1080  //
1081  //
1082  // TC Phi & Theta ring sum
1083  //
1084  //----------------------------------------
1085  // FW BR BW total
1086  //----------------------------------------
1087  //TC phi ring 3 12 2 17
1088  //ID 1-3 4-15 16-17
1089  //TC Theta ring 32 36 32
1090  //ID 1-32 1-36 1-32
1091 
1092  //----------------------------------------
1093  //
1094  thetaringsum.resize(3, std::vector<double>(36, 0.));
1095  phiringsum.resize(17);
1096  const int size_hit = TCHit.size();
1097  for (int iHit = 0; iHit < size_hit; iHit++) {
1098  int iTCId = TCId[iHit] - 1;
1099  if (TCHit[iHit] > 0) {
1100  int iTCThetaId = m_obj_map->getTCThetaIdFromTCId(iTCId + 1) - 1 ;
1101  int iTCPhiId = m_obj_map->getTCPhiIdFromTCId(iTCId + 1) - 1 ;
1102  phiringsum[iTCThetaId] += TCHit[iHit];
1103  if (iTCThetaId < 3) {
1104  //fwd
1105  if (iTCThetaId != 0) {
1106  thetaringsum[0][iTCPhiId] += TCHit[iHit];
1107  }
1108  } else if (iTCThetaId < 15) {
1109  //barrel
1110  thetaringsum[1][iTCPhiId] += TCHit[iHit];
1111  } else {
1112  //bwd
1113  thetaringsum[2][iTCPhiId] += TCHit[iHit];
1114  }
1115 
1116  }
1117 
1118  }
1119 
1120 }
int getTCThetaIdFromTCId(int)
get [TC Theta ID] from [TC ID]
int getTCPhiIdFromTCId(int)
get [TC Phi ID] from [TC ID]
TrgEclMapping * m_obj_map
Mapping object.
Definition: TrgEclMaster.h:337

Member Data Documentation

◆ m_NofTopTC

int m_NofTopTC
private

of considered TC in energy weighted Timing method

Definition at line 264 of file TrgEclMaster.h.

◆ m_TimeWindow

double m_TimeWindow
private

Hit TC Energy in time window.

Hit TC Timing in time window TRG Decision Time window

Definition at line 253 of file TrgEclMaster.h.


The documentation for this class was generated from the following files: