CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
BesGlobalTrigSvc Class Reference

#include <BesGlobalTrigSvc.h>

+ Inheritance diagram for BesGlobalTrigSvc:

Public Member Functions

 BesGlobalTrigSvc (const std::string &name, ISvcLocator *svc)
 
virtual ~BesGlobalTrigSvc ()
 
virtual StatusCode queryInterface (const InterfaceID &riid, void **ppvInterface)
 
virtual StatusCode initialize ()
 Initialise the service (Inherited Service overrides)
 
virtual StatusCode finalize ()
 Finalise the service.
 
void handle (const Incident &)
 
void startMdcTrig ()
 
void startTofTrig ()
 
void startEmcTrig ()
 
void startTMTrig ()
 
StatusCode GlobalTrig ()
 
void setEvtTime (double i)
 
double getEvtTime ()
 
void setGoodEvent (bool i)
 
bool getGoodEvent ()
 
StatusCode setTrigCondition ()
 
double getL1TC_GATE ()
 
double getL1TC_THRESH ()
 
int getL1ETOT_L_Peak ()
 
int getL1ETOT_L_Sigma ()
 
int getL1ETOT_M_Peak ()
 
int getL1ETOT_M_Sigma ()
 
int getL1ETOT_BR_Peak ()
 
int getL1ETOT_BR_Sigma ()
 
int getL1ETOT_EC_Peak ()
 
int getL1ETOT_EC_Sigma ()
 
int getL1EBL_Z_Peak ()
 
int getL1EBL_Z_Sigma ()
 
int getL1ETOT_L ()
 
int getL1ETOT_M ()
 
int getL1ETOT_BR ()
 
int getL1ETOT_EC ()
 
int getL1EBL_BR ()
 
int getL1EBL_EC ()
 
int getL1EDIFF_BR ()
 
int getL1EDIFF_EC ()
 
int getL1BLK_GATE ()
 
int getL1EBL_Z ()
 
int getMAXMDCTRACK ()
 
double getEnergy_Ratio ()
 
double getBarrelGate ()
 
double getEndGate ()
 
int getTofLayerControl ()
 
const int getTrigChan (int i)
 
const int * getTrigChan () const
 
void setTrigChan (int i, int j)
 
const int getTrigCond (int i)
 
const int * getTrigCond () const
 
void setTrigCond (int i, bool j)
 
void setIfpass (bool i)
 
bool getIfpass ()
 
void setRunMode (int mode)
 
int getRunMode ()
 
void setSTrk_BB (bool i)
 
void setNStrkN (bool i)
 
void setNStrk2 (bool i)
 
void setNStrk1 (bool i)
 
void setLTrk_BB (bool i)
 
void setNLtrkN (bool i)
 
void setNLtrk2 (bool i)
 
void setNLtrk1 (bool i)
 
void setNItrk1 (bool i)
 
void setNItrk2 (bool i)
 
void setMdcStrkId (std::vector< int > i)
 
void setMdcLtrkId (std::vector< int > i)
 
bool getSTrk_BB ()
 
bool getNStrkN ()
 
bool getNStrk2 ()
 
bool getNStrk1 ()
 
bool getLTrk_BB ()
 
bool getNLtrkN ()
 
bool getNLtrk2 ()
 
bool getNLtrk1 ()
 
bool getNItrk1 ()
 
bool getNItrk2 ()
 
std::vector< int > getMdcStrkId ()
 
std::vector< int > getMdcLtrkId ()
 
void setETofBB (bool i)
 
void setBTofBB (bool i)
 
void setNETof2 (bool i)
 
void setNETof1 (bool i)
 
void setNBTof2 (bool i)
 
void setNBTof1 (bool i)
 
void setNTof1 (bool i)
 
void setTofHitPos (map< int, vector< int >, greater< int > > i)
 
void setBTofHitMap (vector< int > i)
 
void setETofHitMap (vector< int > i)
 
bool getNBTof1 ()
 
bool getNBTof2 ()
 
bool getNETof1 ()
 
bool getNETof2 ()
 
bool getNTof1 ()
 
bool getBTofBB ()
 
bool getETofBB ()
 
map< int, vector< int >, greater< int > > getTofHitPos ()
 
vector< int > getBTofHitMap ()
 
vector< int > getETofHitMap ()
 
void setNClus1 (bool i)
 
void setNClus2 (bool i)
 
void setNBClus1 (bool i)
 
void setNEClus1 (bool i)
 
void setBClusBB (bool i)
 
void setEClusBB (bool i)
 
void setClus_Z (bool i)
 
void setBClus_PHI (bool i)
 
void setEClus_PHI (bool i)
 
void setBEtot_H (bool i)
 
void setEEtot_H (bool i)
 
void setEtot_L (bool i)
 
void setEtot_M (bool i)
 
void setBL_Z (bool i)
 
void setDiff_B (bool i)
 
void setDiff_E (bool i)
 
void setBL_BBLK (bool i)
 
void setBL_EBLK (bool i)
 
void setEmcNbCluster (int i)
 
void setEmcNweCluster (int i)
 
void setEmcNeeCluster (int i)
 
void setEmcTotE (double i)
 
void setEmcLTotE (double i)
 
void setEmcRTotE (double i)
 
void setEmcBTotE (double i)
 
void setEmcETotE (double i)
 
void setEmcLBTotE (double i)
 
void setEmcRBTotE (double i)
 
void setEmcWETotE (double i)
 
void setEmcEETotE (double i)
 
void setBTCEnergy (int theta, int phi, double energy)
 
void setWETCEnergy (int theta, int phi, double energy)
 
void setEETCEnergy (int theta, int phi, double energy)
 
void setEmcBlockE (std::vector< double > i)
 
void setEmcClusId (map< int, vector< complex< int > >, greater< int > > i)
 
void setEmcClusE (std::vector< double > i)
 
bool getNClus1 ()
 
bool getNClus2 ()
 
bool getNBClus1 ()
 
bool getNEClus1 ()
 
bool getBClusBB ()
 
bool getEClusBB ()
 
bool getClus_Z ()
 
bool getBClus_PHI ()
 
bool getEClus_PHI ()
 
bool getBEtot_H ()
 
bool getEEtot_H ()
 
bool getEtot_L ()
 
bool getEtot_M ()
 
bool getBL_Z ()
 
bool getDiff_B ()
 
bool getDiff_E ()
 
bool getBL_BBLK ()
 
bool getBL_EBLK ()
 
std::vector< double > & getEmcBlockE ()
 
int getEmcNbCluster ()
 
int getEmcNweCluster ()
 
int getEmcNeeCluster ()
 
double getEmcTotE ()
 
double getEmcLTotE ()
 
double getEmcRTotE ()
 
double getEmcBTotE ()
 
double getEmcETotE ()
 
double getEmcLBTotE ()
 
double getEmcRBTotE ()
 
double getEmcWETotE ()
 
double getEmcEETotE ()
 
double getBTCEnergy (int theta, int phi)
 
double getWETCEnergy (int theta, int phi)
 
double getEETCEnergy (int theta, int phi)
 
map< int, vector< complex< int > >, greater< int > > getEmcClusId ()
 
std::vector< double > getEmcClusE ()
 
void setMucBB3478 (bool i)
 
void setMucBB37 (bool i)
 
void setMucIndex (std::vector< int > i)
 
void setMucNtrackBR (int i)
 
void setMucNtrackEC (int i)
 
void setMucN3ltrackTotal (int i)
 
bool getMucBB3478 ()
 
bool getMucBB37 ()
 
std::vector< int > getMuclayerSeg ()
 
std::vector< int > getMuchitLayer ()
 
std::vector< int > getMuchitSeg ()
 
std::vector< int > getMucIndex ()
 
int getMucNhitEE ()
 
int getMucNhitBR ()
 
int getMucNhitWE ()
 
int getMucNhitTotal ()
 
int getMucNlayerBR ()
 
int getMucNlayerWE ()
 
int getMucNlayerEE ()
 
int getMucNtrackBR ()
 
int getMucNtrackEC ()
 
int getMucN3ltrackTotal ()
 
void setTMNATrk1 (bool i)
 
void setTMNATrk2 (bool i)
 
void setTMATrkBB (bool i)
 
void setTMNBTrk1 (bool i)
 
void setTMNBTrk2 (bool i)
 
void setTMBTrkBB (bool i)
 
void setTMNCTrk1 (bool i)
 
void setTMNCTrk2 (bool i)
 
void setTMCTrkBB (bool i)
 
bool getTMNATrk1 ()
 
bool getTMNATrk2 ()
 
bool getTMATrkBB ()
 
bool getTMNBTrk1 ()
 
bool getTMNBTrk2 ()
 
bool getTMBTrkBB ()
 
bool getTMNCTrk1 ()
 
bool getTMNCTrk2 ()
 
bool getTMCTrkBB ()
 
int getEndCapMode ()
 
- Public Member Functions inherited from IBesGlobalTrigSvc

Additional Inherited Members

- Static Public Member Functions inherited from IBesGlobalTrigSvc
static const InterfaceID & interfaceID ()
 

Detailed Description

Definition at line 25 of file BesGlobalTrigSvc.h.

Constructor & Destructor Documentation

◆ BesGlobalTrigSvc()

BesGlobalTrigSvc::BesGlobalTrigSvc ( const std::string & name,
ISvcLocator * svc )

Definition at line 93 of file BesGlobalTrigSvc.cxx.

94 : Service( name, svc ),m_MdcTrig(0),m_TofTrig(0),m_EmcTrig(0),m_MucTrig(0),m_TMTrig(0)
95{
96 trigTableFile = std::string(getenv( "TRIGGERROOT" ));
97 trigTableFile += std::string("/share/TriggerTable.txt");
98 declareProperty("TrigTableCon", trigTableFile);
99 declareProperty("TofLayerControl", m_tofLayer = 2);
100 declareProperty("L1TC_GATE", L1TC_GATE = 70);
101 declareProperty("L1TC_THRESH", L1TC_THRESH = 130);
102 declareProperty("L1ETOT_L", L1ETOT_L = 0x56);
103 declareProperty("L1ETOT_M", L1ETOT_M = 0xba); //0xba(run10584),0x190,0x10a(run9571)
104 declareProperty("L1ETOT_BR", L1ETOT_BR = 0x19a);//0x216,0x19a
105 declareProperty("L1ETOT_EC", L1ETOT_EC = 0x19a);//0x1bd,0x19a
106 declareProperty("L1EBL_BR", L1EBL_BR = 0x30);
107 declareProperty("L1EBL_EC", L1EBL_EC = 0x1ec);
108 declareProperty("L1EDIFF_BR", L1EDIFF_BR = 0xf6);
109 declareProperty("L1EDIFF_EC", L1EDIFF_EC = 0xe1);
110 declareProperty("L1BLK_GATE", L1BLK_GATE = 0x30);
111 declareProperty("L1EBL_Z", L1EBL_Z = 0xa4);
112 declareProperty("MAXMDCTRACK", MAXMDCTRACK = 4);
113 declareProperty("TM_ENDCAP_MODE", tm_endcap = 0);
114 declareProperty("Energy_Ratio", Energy_Ratio = 1.);
115}

◆ ~BesGlobalTrigSvc()

BesGlobalTrigSvc::~BesGlobalTrigSvc ( )
virtual

Definition at line 116 of file BesGlobalTrigSvc.cxx.

117{
118}

Member Function Documentation

◆ finalize()

StatusCode BesGlobalTrigSvc::finalize ( )
virtual

Finalise the service.

Definition at line 233 of file BesGlobalTrigSvc.cxx.

234{
235 MsgStream log( msgSvc(), name() );
236 log << MSG::INFO << "Service finalized successfully" << endreq;
237 return StatusCode::SUCCESS;
238}
IMessageSvc * msgSvc()

◆ getBarrelGate()

double BesGlobalTrigSvc::getBarrelGate ( )
inline

Definition at line 83 of file BesGlobalTrigSvc.h.

83{ return emcBarrelGate; }

◆ getBClus_PHI()

bool BesGlobalTrigSvc::getBClus_PHI ( )
inline

Definition at line 226 of file BesGlobalTrigSvc.h.

226{ return emc_BClus_PHI; }

◆ getBClusBB()

bool BesGlobalTrigSvc::getBClusBB ( )
inline

Definition at line 223 of file BesGlobalTrigSvc.h.

223{ return emc_BClusBB; }

◆ getBEtot_H()

bool BesGlobalTrigSvc::getBEtot_H ( )
inline

Definition at line 228 of file BesGlobalTrigSvc.h.

228{ return emc_BEtot_H; }

◆ getBL_BBLK()

bool BesGlobalTrigSvc::getBL_BBLK ( )
inline

Definition at line 235 of file BesGlobalTrigSvc.h.

235{ return emc_BL_BBLK; }

◆ getBL_EBLK()

bool BesGlobalTrigSvc::getBL_EBLK ( )
inline

Definition at line 236 of file BesGlobalTrigSvc.h.

236{ return emc_BL_EBLK; }

◆ getBL_Z()

bool BesGlobalTrigSvc::getBL_Z ( )
inline

Definition at line 232 of file BesGlobalTrigSvc.h.

232{ return emc_BL_Z; }

◆ getBTCEnergy()

double BesGlobalTrigSvc::getBTCEnergy ( int theta,
int phi )
inline

Definition at line 252 of file BesGlobalTrigSvc.h.

252{ return emcBTCEnergy[theta][phi]; }

◆ getBTofBB()

bool BesGlobalTrigSvc::getBTofBB ( )
inline

Definition at line 168 of file BesGlobalTrigSvc.h.

168{ return tof_BTofBB; }

◆ getBTofHitMap()

vector< int > BesGlobalTrigSvc::getBTofHitMap ( )
inlinevirtual

Implements IBesGlobalTrigSvc.

Definition at line 173 of file BesGlobalTrigSvc.h.

173{ return btofHitMap; }

◆ getClus_Z()

bool BesGlobalTrigSvc::getClus_Z ( )
inline

Definition at line 225 of file BesGlobalTrigSvc.h.

225{ return emc_Clus_Z; }

◆ getDiff_B()

bool BesGlobalTrigSvc::getDiff_B ( )
inline

Definition at line 233 of file BesGlobalTrigSvc.h.

233{ return emc_Diff_B; }

◆ getDiff_E()

bool BesGlobalTrigSvc::getDiff_E ( )
inline

Definition at line 234 of file BesGlobalTrigSvc.h.

234{ return emc_Diff_E; }

◆ getEClus_PHI()

bool BesGlobalTrigSvc::getEClus_PHI ( )
inline

Definition at line 227 of file BesGlobalTrigSvc.h.

227{ return emc_EClus_PHI; }

◆ getEClusBB()

bool BesGlobalTrigSvc::getEClusBB ( )
inline

Definition at line 224 of file BesGlobalTrigSvc.h.

224{ return emc_EClusBB; }

◆ getEETCEnergy()

double BesGlobalTrigSvc::getEETCEnergy ( int theta,
int phi )
inline

Definition at line 254 of file BesGlobalTrigSvc.h.

254{ return emcEETCEnergy[theta][phi]; }

◆ getEEtot_H()

bool BesGlobalTrigSvc::getEEtot_H ( )
inline

Definition at line 229 of file BesGlobalTrigSvc.h.

229{ return emc_EEtot_H; }

◆ getEmcBlockE()

std::vector< double > & BesGlobalTrigSvc::getEmcBlockE ( )
inline

Definition at line 239 of file BesGlobalTrigSvc.h.

239{ return emcBlockE; };

◆ getEmcBTotE()

double BesGlobalTrigSvc::getEmcBTotE ( )
inlinevirtual

Implements IBesGlobalTrigSvc.

Definition at line 246 of file BesGlobalTrigSvc.h.

246{ return emcBTotE; }

◆ getEmcClusE()

std::vector< double > BesGlobalTrigSvc::getEmcClusE ( )
inlinevirtual

Implements IBesGlobalTrigSvc.

Definition at line 256 of file BesGlobalTrigSvc.h.

256{ return emcClusE; }

◆ getEmcClusId()

map< int, vector< complex< int > >, greater< int > > BesGlobalTrigSvc::getEmcClusId ( )
inline

Definition at line 255 of file BesGlobalTrigSvc.h.

255{ return emcClusId; }

Referenced by BesTrigL1::execute(), and BesTMTrig::startTMTrig().

◆ getEmcEETotE()

double BesGlobalTrigSvc::getEmcEETotE ( )
inline

Definition at line 251 of file BesGlobalTrigSvc.h.

251{ return emcEETotE; }

Referenced by BesTrigL1::execute().

◆ getEmcETotE()

double BesGlobalTrigSvc::getEmcETotE ( )
inlinevirtual

Implements IBesGlobalTrigSvc.

Definition at line 247 of file BesGlobalTrigSvc.h.

247{ return emcETotE; }

◆ getEmcLBTotE()

double BesGlobalTrigSvc::getEmcLBTotE ( )
inline

Definition at line 248 of file BesGlobalTrigSvc.h.

248{ return emcLBTotE; }

◆ getEmcLTotE()

double BesGlobalTrigSvc::getEmcLTotE ( )
inlinevirtual

Implements IBesGlobalTrigSvc.

Definition at line 244 of file BesGlobalTrigSvc.h.

244{ return emcLTotE; }

◆ getEmcNbCluster()

int BesGlobalTrigSvc::getEmcNbCluster ( )
inline

Definition at line 240 of file BesGlobalTrigSvc.h.

240{ return emcNbCluster; }

Referenced by BesEmcTrig::startEmcTrig().

◆ getEmcNeeCluster()

int BesGlobalTrigSvc::getEmcNeeCluster ( )
inline

Definition at line 242 of file BesGlobalTrigSvc.h.

242{ return emcNeeCluster; }

Referenced by BesEmcTrig::startEmcTrig().

◆ getEmcNweCluster()

int BesGlobalTrigSvc::getEmcNweCluster ( )
inline

Definition at line 241 of file BesGlobalTrigSvc.h.

241{ return emcNweCluster; }

Referenced by BesEmcTrig::startEmcTrig().

◆ getEmcRBTotE()

double BesGlobalTrigSvc::getEmcRBTotE ( )
inline

Definition at line 249 of file BesGlobalTrigSvc.h.

249{ return emcRBTotE; }

◆ getEmcRTotE()

double BesGlobalTrigSvc::getEmcRTotE ( )
inlinevirtual

Implements IBesGlobalTrigSvc.

Definition at line 245 of file BesGlobalTrigSvc.h.

245{ return emcRTotE; }

◆ getEmcTotE()

double BesGlobalTrigSvc::getEmcTotE ( )
inlinevirtual

Implements IBesGlobalTrigSvc.

Definition at line 243 of file BesGlobalTrigSvc.h.

243{ return emcTotE; }

Referenced by BesTrigL1::execute().

◆ getEmcWETotE()

double BesGlobalTrigSvc::getEmcWETotE ( )
inline

Definition at line 250 of file BesGlobalTrigSvc.h.

250{ return emcWETotE; }

Referenced by BesTrigL1::execute().

◆ getEndCapMode()

int BesGlobalTrigSvc::getEndCapMode ( )
inline

Definition at line 313 of file BesGlobalTrigSvc.h.

313{ return tm_endcap; }

Referenced by BesTMTrig::startTMTrig().

◆ getEndGate()

double BesGlobalTrigSvc::getEndGate ( )
inline

Definition at line 84 of file BesGlobalTrigSvc.h.

84{ return emcEndGate; }

◆ getEnergy_Ratio()

double BesGlobalTrigSvc::getEnergy_Ratio ( )
inline

Definition at line 81 of file BesGlobalTrigSvc.h.

81{ return Energy_Ratio; }

◆ getETofBB()

bool BesGlobalTrigSvc::getETofBB ( )
inline

Definition at line 169 of file BesGlobalTrigSvc.h.

169{ return tof_ETofBB; }

◆ getETofHitMap()

vector< int > BesGlobalTrigSvc::getETofHitMap ( )
inlinevirtual

Implements IBesGlobalTrigSvc.

Definition at line 174 of file BesGlobalTrigSvc.h.

174{ return etofHitMap; }

◆ getEtot_L()

bool BesGlobalTrigSvc::getEtot_L ( )
inline

Definition at line 230 of file BesGlobalTrigSvc.h.

230{ return emc_Etot_L; }

◆ getEtot_M()

bool BesGlobalTrigSvc::getEtot_M ( )
inline

Definition at line 231 of file BesGlobalTrigSvc.h.

231{ return emc_Etot_M; }

◆ getEvtTime()

double BesGlobalTrigSvc::getEvtTime ( )
inline

Definition at line 49 of file BesGlobalTrigSvc.h.

49{ return m_evttime; }

◆ getGoodEvent()

bool BesGlobalTrigSvc::getGoodEvent ( )
inlinevirtual

Implements IBesGlobalTrigSvc.

Definition at line 52 of file BesGlobalTrigSvc.h.

52{ return m_goodEvent; };

◆ getIfpass()

bool BesGlobalTrigSvc::getIfpass ( )
inlinevirtual

Implements IBesGlobalTrigSvc.

Definition at line 106 of file BesGlobalTrigSvc.h.

106{ return ifpass; }

Referenced by BesTrigL1::execute().

◆ getL1BLK_GATE()

int BesGlobalTrigSvc::getL1BLK_GATE ( )

Definition at line 357 of file BesGlobalTrigSvc.cxx.

357 {
358 L1BLK_GATE = m_RealizationSvc->getVthBalBLK();
359 return L1BLK_GATE;
360}

Referenced by BesEmcTrig::startEmcTrig().

◆ getL1EBL_BR()

int BesGlobalTrigSvc::getL1EBL_BR ( )

Definition at line 337 of file BesGlobalTrigSvc.cxx.

337 {
338 L1EBL_BR = m_RealizationSvc->getVthBalBLK();
339 return L1EBL_BR;
340}

◆ getL1EBL_EC()

int BesGlobalTrigSvc::getL1EBL_EC ( )

Definition at line 342 of file BesGlobalTrigSvc.cxx.

342 {
343 L1EBL_EC = m_RealizationSvc->getVthBalEEMC();
344 return L1EBL_EC;
345}

Referenced by BesEmcTrig::startEmcTrig().

◆ getL1EBL_Z()

int BesGlobalTrigSvc::getL1EBL_Z ( )

Definition at line 362 of file BesGlobalTrigSvc.cxx.

362 {
363 L1EBL_Z = m_RealizationSvc->getVthBLZ();
364 return L1EBL_Z;
365}

Referenced by BesEmcTrig::startEmcTrig().

◆ getL1EBL_Z_Peak()

int BesGlobalTrigSvc::getL1EBL_Z_Peak ( )
inline

Definition at line 67 of file BesGlobalTrigSvc.h.

67{ return L1EBL_Z_Peak; }

◆ getL1EBL_Z_Sigma()

int BesGlobalTrigSvc::getL1EBL_Z_Sigma ( )
inline

Definition at line 68 of file BesGlobalTrigSvc.h.

68{ return L1EBL_Z_Sigma; }

◆ getL1EDIFF_BR()

int BesGlobalTrigSvc::getL1EDIFF_BR ( )

Definition at line 347 of file BesGlobalTrigSvc.cxx.

347 {
348 L1EDIFF_BR = m_RealizationSvc->getVthDiffB();
349 return L1EDIFF_BR;
350}

Referenced by BesEmcTrig::startEmcTrig().

◆ getL1EDIFF_EC()

int BesGlobalTrigSvc::getL1EDIFF_EC ( )

Definition at line 352 of file BesGlobalTrigSvc.cxx.

352 {
353 L1EDIFF_EC = m_RealizationSvc->getVthDiffE();
354 return L1EDIFF_EC;
355}

Referenced by BesEmcTrig::startEmcTrig().

◆ getL1ETOT_BR()

int BesGlobalTrigSvc::getL1ETOT_BR ( )

Definition at line 327 of file BesGlobalTrigSvc.cxx.

327 {
328 L1ETOT_BR = m_RealizationSvc->getVthBEtotH();
329 return L1ETOT_BR;
330}

Referenced by BesEmcTrig::startEmcTrig().

◆ getL1ETOT_BR_Peak()

int BesGlobalTrigSvc::getL1ETOT_BR_Peak ( )
inline

Definition at line 63 of file BesGlobalTrigSvc.h.

63{ return L1ETOT_BR_Peak; }

◆ getL1ETOT_BR_Sigma()

int BesGlobalTrigSvc::getL1ETOT_BR_Sigma ( )
inline

Definition at line 64 of file BesGlobalTrigSvc.h.

64{ return L1ETOT_BR_Sigma; }

◆ getL1ETOT_EC()

int BesGlobalTrigSvc::getL1ETOT_EC ( )

Definition at line 332 of file BesGlobalTrigSvc.cxx.

332 {
333 L1ETOT_EC = m_RealizationSvc->getVthEEtotH();
334 return L1ETOT_EC;
335}

Referenced by BesEmcTrig::startEmcTrig().

◆ getL1ETOT_EC_Peak()

int BesGlobalTrigSvc::getL1ETOT_EC_Peak ( )
inline

Definition at line 65 of file BesGlobalTrigSvc.h.

65{ return L1ETOT_EC_Peak; }

◆ getL1ETOT_EC_Sigma()

int BesGlobalTrigSvc::getL1ETOT_EC_Sigma ( )
inline

Definition at line 66 of file BesGlobalTrigSvc.h.

66{ return L1ETOT_EC_Sigma; }

◆ getL1ETOT_L()

int BesGlobalTrigSvc::getL1ETOT_L ( )

Definition at line 317 of file BesGlobalTrigSvc.cxx.

317 {
318 L1ETOT_L = m_RealizationSvc->getVthEtotL();
319 return L1ETOT_L;
320}

Referenced by BesEmcTrig::startEmcTrig().

◆ getL1ETOT_L_Peak()

int BesGlobalTrigSvc::getL1ETOT_L_Peak ( )
inline

Definition at line 59 of file BesGlobalTrigSvc.h.

59{ return L1ETOT_L_Peak; }

◆ getL1ETOT_L_Sigma()

int BesGlobalTrigSvc::getL1ETOT_L_Sigma ( )
inline

Definition at line 60 of file BesGlobalTrigSvc.h.

60{ return L1ETOT_L_Sigma; }

◆ getL1ETOT_M()

int BesGlobalTrigSvc::getL1ETOT_M ( )

Definition at line 322 of file BesGlobalTrigSvc.cxx.

322 {
323 L1ETOT_M = m_RealizationSvc->getVthEtotM();
324 return L1ETOT_M;
325}

Referenced by BesEmcTrig::startEmcTrig().

◆ getL1ETOT_M_Peak()

int BesGlobalTrigSvc::getL1ETOT_M_Peak ( )
inline

Definition at line 61 of file BesGlobalTrigSvc.h.

61{ return L1ETOT_M_Peak; }

◆ getL1ETOT_M_Sigma()

int BesGlobalTrigSvc::getL1ETOT_M_Sigma ( )
inline

Definition at line 62 of file BesGlobalTrigSvc.h.

62{ return L1ETOT_M_Sigma; }

◆ getL1TC_GATE()

double BesGlobalTrigSvc::getL1TC_GATE ( )
inline

Definition at line 57 of file BesGlobalTrigSvc.h.

57{ return L1TC_GATE; }

Referenced by BesTrigL1::getEmcAnalogSig().

◆ getL1TC_THRESH()

double BesGlobalTrigSvc::getL1TC_THRESH ( )
inline

Definition at line 58 of file BesGlobalTrigSvc.h.

58{ return L1TC_THRESH; }

Referenced by BesTrigL1::getEmcAnalogSig().

◆ getLTrk_BB()

bool BesGlobalTrigSvc::getLTrk_BB ( )
inline

Definition at line 136 of file BesGlobalTrigSvc.h.

136{ return mdc_LTrk_BB; }

◆ getMAXMDCTRACK()

int BesGlobalTrigSvc::getMAXMDCTRACK ( )
inline

Definition at line 80 of file BesGlobalTrigSvc.h.

80{ return MAXMDCTRACK; }

Referenced by BesMdcTrig::startMdcTrig().

◆ getMdcLtrkId()

std::vector< int > BesGlobalTrigSvc::getMdcLtrkId ( )
inlinevirtual

Implements IBesGlobalTrigSvc.

Definition at line 144 of file BesGlobalTrigSvc.h.

144{ return mdcLtrkId; }

Referenced by BesTrigL1::execute(), and BesTMTrig::startTMTrig().

◆ getMdcStrkId()

std::vector< int > BesGlobalTrigSvc::getMdcStrkId ( )
inlinevirtual

Implements IBesGlobalTrigSvc.

Definition at line 143 of file BesGlobalTrigSvc.h.

143{ return mdcStrkId; }

Referenced by BesTrigL1::execute(), and BesTMTrig::startTMTrig().

◆ getMucBB3478()

bool BesGlobalTrigSvc::getMucBB3478 ( )
inline

Definition at line 271 of file BesGlobalTrigSvc.h.

271{ return muc_BB3478; }

◆ getMucBB37()

bool BesGlobalTrigSvc::getMucBB37 ( )
inline

Definition at line 272 of file BesGlobalTrigSvc.h.

272{ return muc_BB37; }

◆ getMuchitLayer()

std::vector< int > BesGlobalTrigSvc::getMuchitLayer ( )
inline

Definition at line 276 of file BesGlobalTrigSvc.h.

276{ return muc_vhitLayer; }

Referenced by BesTrigL1::execute().

◆ getMuchitSeg()

std::vector< int > BesGlobalTrigSvc::getMuchitSeg ( )
inline

Definition at line 277 of file BesGlobalTrigSvc.h.

277{ return muc_vhitSeg; }

Referenced by BesTrigL1::execute().

◆ getMucIndex()

std::vector< int > BesGlobalTrigSvc::getMucIndex ( )
inline

Definition at line 278 of file BesGlobalTrigSvc.h.

278{ return muc_index; }

◆ getMuclayerSeg()

std::vector< int > BesGlobalTrigSvc::getMuclayerSeg ( )
inline

Definition at line 275 of file BesGlobalTrigSvc.h.

275{ return muc_vlayerSeg; }

Referenced by BesTrigL1::execute().

◆ getMucN3ltrackTotal()

int BesGlobalTrigSvc::getMucN3ltrackTotal ( )
inline

Definition at line 288 of file BesGlobalTrigSvc.h.

288{ return muc_n3ltracktotal; }

◆ getMucNhitBR()

int BesGlobalTrigSvc::getMucNhitBR ( )
inline

Definition at line 280 of file BesGlobalTrigSvc.h.

280{ return muc_nhitBR; }

◆ getMucNhitEE()

int BesGlobalTrigSvc::getMucNhitEE ( )
inline

Definition at line 279 of file BesGlobalTrigSvc.h.

279{ return muc_nhitEE; }

◆ getMucNhitTotal()

int BesGlobalTrigSvc::getMucNhitTotal ( )
inline

Definition at line 282 of file BesGlobalTrigSvc.h.

282{ return muc_nhitTotal; }

◆ getMucNhitWE()

int BesGlobalTrigSvc::getMucNhitWE ( )
inline

Definition at line 281 of file BesGlobalTrigSvc.h.

281{ return muc_nhitWE; }

◆ getMucNlayerBR()

int BesGlobalTrigSvc::getMucNlayerBR ( )
inline

Definition at line 283 of file BesGlobalTrigSvc.h.

283{ return muc_nlayerBR; }

◆ getMucNlayerEE()

int BesGlobalTrigSvc::getMucNlayerEE ( )
inline

Definition at line 285 of file BesGlobalTrigSvc.h.

285{ return muc_nlayerEE; }

◆ getMucNlayerWE()

int BesGlobalTrigSvc::getMucNlayerWE ( )
inline

Definition at line 284 of file BesGlobalTrigSvc.h.

284{ return muc_nlayerWE; }

◆ getMucNtrackBR()

int BesGlobalTrigSvc::getMucNtrackBR ( )
inline

Definition at line 286 of file BesGlobalTrigSvc.h.

286{ return muc_ntrackBR; }

◆ getMucNtrackEC()

int BesGlobalTrigSvc::getMucNtrackEC ( )
inline

Definition at line 287 of file BesGlobalTrigSvc.h.

287{ return muc_ntrackEC; }

◆ getNBClus1()

bool BesGlobalTrigSvc::getNBClus1 ( )
inline

Definition at line 221 of file BesGlobalTrigSvc.h.

221{ return emc_NBClus1; }

◆ getNBTof1()

bool BesGlobalTrigSvc::getNBTof1 ( )
inline

Definition at line 163 of file BesGlobalTrigSvc.h.

163{ return tof_NBTof1; }

◆ getNBTof2()

bool BesGlobalTrigSvc::getNBTof2 ( )
inline

Definition at line 164 of file BesGlobalTrigSvc.h.

164{ return tof_NBTof2; }

◆ getNClus1()

bool BesGlobalTrigSvc::getNClus1 ( )
inline

Definition at line 219 of file BesGlobalTrigSvc.h.

219{ return emc_NClus1; }

◆ getNClus2()

bool BesGlobalTrigSvc::getNClus2 ( )
inline

Definition at line 220 of file BesGlobalTrigSvc.h.

220{ return emc_NClus2; }

◆ getNEClus1()

bool BesGlobalTrigSvc::getNEClus1 ( )
inline

Definition at line 222 of file BesGlobalTrigSvc.h.

222{ return emc_NEClus1; }

◆ getNETof1()

bool BesGlobalTrigSvc::getNETof1 ( )
inline

Definition at line 165 of file BesGlobalTrigSvc.h.

165{ return tof_NETof1; }

◆ getNETof2()

bool BesGlobalTrigSvc::getNETof2 ( )
inline

Definition at line 166 of file BesGlobalTrigSvc.h.

166{ return tof_NETof2; }

◆ getNItrk1()

bool BesGlobalTrigSvc::getNItrk1 ( )
inline

Definition at line 140 of file BesGlobalTrigSvc.h.

140{ return mdc_NItrk1; }

◆ getNItrk2()

bool BesGlobalTrigSvc::getNItrk2 ( )
inline

Definition at line 141 of file BesGlobalTrigSvc.h.

141{ return mdc_NItrk2; }

◆ getNLtrk1()

bool BesGlobalTrigSvc::getNLtrk1 ( )
inline

Definition at line 139 of file BesGlobalTrigSvc.h.

139{ return mdc_NLtrk1; }

◆ getNLtrk2()

bool BesGlobalTrigSvc::getNLtrk2 ( )
inline

Definition at line 138 of file BesGlobalTrigSvc.h.

138{ return mdc_NLtrk2; }

◆ getNLtrkN()

bool BesGlobalTrigSvc::getNLtrkN ( )
inline

Definition at line 137 of file BesGlobalTrigSvc.h.

137{ return mdc_NLtrkN; }

◆ getNStrk1()

bool BesGlobalTrigSvc::getNStrk1 ( )
inline

Definition at line 135 of file BesGlobalTrigSvc.h.

135{ return mdc_NStrk1; }

◆ getNStrk2()

bool BesGlobalTrigSvc::getNStrk2 ( )
inline

Definition at line 134 of file BesGlobalTrigSvc.h.

134{ return mdc_NStrk2; }

◆ getNStrkN()

bool BesGlobalTrigSvc::getNStrkN ( )
inline

Definition at line 133 of file BesGlobalTrigSvc.h.

133{ return mdc_NStrkN; }

◆ getNTof1()

bool BesGlobalTrigSvc::getNTof1 ( )
inline

Definition at line 167 of file BesGlobalTrigSvc.h.

167{ return tof_NTof1; }

◆ getRunMode()

int BesGlobalTrigSvc::getRunMode ( )
inline

Definition at line 111 of file BesGlobalTrigSvc.h.

111{ return m_runMode; }

◆ getSTrk_BB()

bool BesGlobalTrigSvc::getSTrk_BB ( )
inline

Definition at line 132 of file BesGlobalTrigSvc.h.

132{ return mdc_STrk_BB; }

◆ getTMATrkBB()

bool BesGlobalTrigSvc::getTMATrkBB ( )
inline

Definition at line 304 of file BesGlobalTrigSvc.h.

304{ return tm_ATrk_BB; }

◆ getTMBTrkBB()

bool BesGlobalTrigSvc::getTMBTrkBB ( )
inline

Definition at line 307 of file BesGlobalTrigSvc.h.

307{ return tm_BTrk_BB; }

◆ getTMCTrkBB()

bool BesGlobalTrigSvc::getTMCTrkBB ( )
inline

Definition at line 310 of file BesGlobalTrigSvc.h.

310{ return tm_CTrk_BB; }

◆ getTMNATrk1()

bool BesGlobalTrigSvc::getTMNATrk1 ( )
inline

Definition at line 302 of file BesGlobalTrigSvc.h.

302{ return tm_NATrk1; }

◆ getTMNATrk2()

bool BesGlobalTrigSvc::getTMNATrk2 ( )
inline

Definition at line 303 of file BesGlobalTrigSvc.h.

303{ return tm_NATrk2; }

◆ getTMNBTrk1()

bool BesGlobalTrigSvc::getTMNBTrk1 ( )
inline

Definition at line 305 of file BesGlobalTrigSvc.h.

305{ return tm_NBTrk1; }

◆ getTMNBTrk2()

bool BesGlobalTrigSvc::getTMNBTrk2 ( )
inline

Definition at line 306 of file BesGlobalTrigSvc.h.

306{ return tm_NBTrk2; }

◆ getTMNCTrk1()

bool BesGlobalTrigSvc::getTMNCTrk1 ( )
inline

Definition at line 308 of file BesGlobalTrigSvc.h.

308{ return tm_NCTrk1; }

◆ getTMNCTrk2()

bool BesGlobalTrigSvc::getTMNCTrk2 ( )
inline

Definition at line 309 of file BesGlobalTrigSvc.h.

309{ return tm_NCTrk2; }

◆ getTofHitPos()

map< int, vector< int >, greater< int > > BesGlobalTrigSvc::getTofHitPos ( )
inline

Definition at line 172 of file BesGlobalTrigSvc.h.

172{ return tofHitPos; }

Referenced by BesTrigL1::execute(), and BesTMTrig::startTMTrig().

◆ getTofLayerControl()

int BesGlobalTrigSvc::getTofLayerControl ( )
inline

Definition at line 85 of file BesGlobalTrigSvc.h.

85{ return m_tofLayer; }

Referenced by BesTofTrig::startTofTrig().

◆ getTrigChan() [1/2]

const int * BesGlobalTrigSvc::getTrigChan ( ) const
inline

Definition at line 89 of file BesGlobalTrigSvc.h.

89{ return m_trigChannel; }

◆ getTrigChan() [2/2]

const int BesGlobalTrigSvc::getTrigChan ( int i)
inline

Definition at line 88 of file BesGlobalTrigSvc.h.

88{ return m_trigChannel[i]; }

Referenced by BesTrigL1::execute().

◆ getTrigCond() [1/2]

const int * BesGlobalTrigSvc::getTrigCond ( ) const
inline

Definition at line 95 of file BesGlobalTrigSvc.h.

95{ return m_trigCondition; }

◆ getTrigCond() [2/2]

const int BesGlobalTrigSvc::getTrigCond ( int i)
inlinevirtual

Implements IBesGlobalTrigSvc.

Definition at line 94 of file BesGlobalTrigSvc.h.

94{ return m_trigCondition[i]; }

Referenced by BesTrigL1::execute().

◆ getWETCEnergy()

double BesGlobalTrigSvc::getWETCEnergy ( int theta,
int phi )
inline

Definition at line 253 of file BesGlobalTrigSvc.h.

253{ return emcWETCEnergy[theta][phi]; }

◆ GlobalTrig()

StatusCode BesGlobalTrigSvc::GlobalTrig ( )
virtual

Implements IBesGlobalTrigSvc.

Definition at line 383 of file BesGlobalTrigSvc.cxx.

384{
385 //initialize
386 ifpass = false;
387 trigOut.clear();
388
389 for(int i = 0; i < 16; i++) {
390 if(i < 16) m_trigChannel[i] = 0;
391 }
392
393 MsgStream log(msgSvc(), name());
394
395 //get Muc trigger information
396 muc_vlayerSeg = m_MucTrig->getNlayerSeg();
397
398 muc_nlayerEE = m_MucTrig->getNlayerPart(0);
399 muc_nlayerBR = m_MucTrig->getNlayerPart(1);
400 muc_nlayerWE = m_MucTrig->getNlayerPart(2);
401 muc_vhitLayer = m_MucTrig->getNhitLayer();
402 muc_vhitSeg = m_MucTrig->getNhitSeg();
403 muc_nhitEE = m_MucTrig->getNhitPart(0);
404 muc_nhitBR = m_MucTrig->getNhitPart(1);
405 muc_nhitWE = m_MucTrig->getNhitPart(2);
406 muc_nhitTotal = m_MucTrig->getNhitTotal();
407
408 //set trigger condition id
409 StatusCode status;
410 //StatusCode status = setTrigCondition();
411
412 //make out trigger conditon table;
413 for(unsigned int i = 0; i < 48; i++) {
414 for(unsigned int j = 0; j < trigChannel.size(); j++) {
415 if(trigCond[i]) trigOut.push_back(1);
416 else trigOut.push_back(0);
417 }
418 }
419
420 //compare trigger table and trigger output
421
422 for(unsigned int i=0; i<channelNo.size(); i++)
423 {
424 if(channelNo.size() > 16) {
425 log << MSG::FATAL <<"Trigger Channel is greater than 16!!!!!" << endreq;
426 return StatusCode::FAILURE;
427 }
428 int condition = 0;
429 int conditionNo = 0;
430 if(channelNo[i]==0)
431 {
432 m_trigChannel[i] = 0; //data structure member in TDS
433 continue;
434 }
435 else
436 {
437 log<<MSG::INFO<<trigChannel[i]<<": ";
438 for(unsigned int j=0; j<trigCondName.size(); j++)
439 {
440 if(trigTable[i+j*channelNo.size()]=="1"&&trigOut[i+j*channelNo.size()]==1) condition++;
441 if(trigTable[i+j*channelNo.size()]=="0"&&trigOut[i+j*channelNo.size()]==0) condition++;
442 if(trigTable[i+j*channelNo.size()]=="1") log<<MSG::INFO<<trigCondName[j]<<" ";
443 if(trigTable[i+j*channelNo.size()]=="0") log<<MSG::INFO<<"anti_"<<trigCondName[j]<<" ";
444 }
445 for(unsigned int k=0; k<trigCondName.size(); k++)
446 {
447 if(trigTable[i+k*channelNo.size()]=="1"||trigTable[i+k*channelNo.size()]=="0") {
448 log<<MSG::INFO<<trigOut[i+k*channelNo.size()]<<" ";
449 conditionNo++; }
450 }
451 log<<MSG::INFO<<endreq;
452 if((condition == conditionNo) && conditionNo!=0) {
453 ifpass = true;
454 m_trigChannel[i] = 1; //data structure member in TDS
455 }
456 else {
457 m_trigChannel[i] = 0; //data structure member in TDS
458 }
459 }
460 }
461
462 return status;
463}
std::vector< int > getNlayerSeg()
int getNlayerPart(int part)
std::vector< int > getNhitLayer()
int getNhitTotal()
int getNhitPart(int i)
std::vector< int > getNhitSeg()

Referenced by BesTrigL1::execute().

◆ handle()

void BesGlobalTrigSvc::handle ( const Incident & inc)

Definition at line 255 of file BesGlobalTrigSvc.cxx.

255 {
256 MsgStream log( msgSvc(), name() );
257 log << MSG::DEBUG << "handle: " << inc.type() << endreq;
258 if ( inc.type() != "NewRun" ){
259 return;
260 }
261 log << MSG::DEBUG << "Begin New Run" << endreq;
262 if(m_RealizationSvc->UseDBFlag() == true && m_RealizationSvc->ifReadTrg() == true) {
263
264 std::vector<uint32_t> trgTable_DB = m_RealizationSvc->getTrgTable();
265
266 trigChannel.clear();
267 trigCondName.clear();
268 trigTable.clear();
269 channelNo.clear();
270
271 for(unsigned int i = 0, mask = 1; i <16; i++,mask<<=1) {
272 if(trgTable_DB[0] & mask) {
273 if(i == 9) channelNo.push_back(0);
274 else channelNo.push_back(1);
275 }
276 else channelNo.push_back(0);
277 std::ostringstream osname;
278 osname << "Channel_"<<i;
279 std::string name = osname.str();
280 trigChannel.push_back(name);
281 }
282
283 string table_tmp[16][64];
284 for(unsigned int i = 1; i <65; i++) {
285 for(unsigned int j = 0; j <16; j++) {
286 int bit2 = (trgTable_DB[i]>>2*j) & 0x3;
287 int row = (int) (i-1)/4;
288 int column = ((i-1)%4)*16 + j;
289 if(bit2 == 0) table_tmp[row][column] = "1";
290 else if(bit2 == 1) table_tmp[row][column] = "0";
291 else table_tmp[row][column] = "-";
292 }
293 }
294
295 for(int j = 0; j < 48; j++) {
296 trigCondName.push_back(COND_NAME[j]);
297 for(int i = 0; i < 16; i++) {
298 trigTable.push_back(table_tmp[i][j]);
299 }
300 }
301 //print
302 for(unsigned int i=0;i<trigChannel.size();i++){ cout<<" "<<trigChannel[i]<<" ";}
303 cout<<endl;
304 for(unsigned int i=0;i<channelNo.size();i++){ cout<<" "<<channelNo[i]<<" ";}
305 cout<<endl;
306 for(unsigned int j=0;j<trigCondName.size();j++)
307 {
308 cout<<setw(15)<<trigCondName[j]<<" ";
309 for(unsigned int i=0+j*trigChannel.size();i<trigChannel.size()+j*trigChannel.size();i++)
310 { cout<<trigTable[i]<<" ";}
311 cout<<endl;
312 }
313 }
314
315}
std::vector< uint32_t > getTrgTable()

◆ initialize()

StatusCode BesGlobalTrigSvc::initialize ( )
virtual

Initialise the service (Inherited Service overrides)

Definition at line 122 of file BesGlobalTrigSvc.cxx.

123{
124 MsgStream log(msgSvc(), name());
125
126 StatusCode sc = Service::initialize();
127 if( sc.isFailure() ) return sc;
128
129 StatusCode status;
130 // Get the references to the services that are needed by the ApplicationMgr itself
131 IIncidentSvc* incsvc;
132 status = service("IncidentSvc", incsvc);
133 int priority = 100;
134 if( status.isSuccess() ){
135 incsvc -> addListener(this, "NewRun", priority);
136 }
137
138 IRealizationSvc *tmpReal;
139 status = service("RealizationSvc",tmpReal);
140 if (!status.isSuccess())
141 {
142 log << MSG::FATAL << " Could not initialize Realization Service" << endreq;
143 } else {
144 m_RealizationSvc=dynamic_cast<RealizationSvc*>(tmpReal);
145 }
146
147 m_MdcTrig = new BesMdcTrig();
148 m_TofTrig = new BesTofTrig();
149 m_EmcTrig = new BesEmcTrig();
150 m_MucTrig = new BesMucTrig();
151 m_TMTrig = new BesTMTrig();
152
153 if(!m_MdcTrig) log<<MSG::FATAL<<"can not get BesMdcTrig pointer "<<endreq;
154 if(!m_TofTrig) log<<MSG::FATAL<<"can not get BesTofTrig pointer "<<endreq;
155 if(!m_EmcTrig) log<<MSG::FATAL<<"can not get BesEmcTrig pointer "<<endreq;
156 if(!m_MucTrig) log<<MSG::FATAL<<"can not get BesMucTrig pointer "<<endreq;
157 if(!m_TMTrig) log<<MSG::FATAL<<"can not get BesTMTrig pointer "<<endreq;
158
159 trigChannel.clear();
160 trigCondName.clear();
161 trigTable.clear();
162 channelNo.clear();
163
164 if(m_RealizationSvc->UseDBFlag() == false) {
165 ifstream infile;
166 infile.open(trigTableFile.c_str(),ios_base::in);
167 if(!infile) log<<MSG::FATAL<<"can not open Trigger Table file: "<<trigTableFile<<endreq;
168 char line[ 255 ];
169 // Skip the header
170 do{
171 infile.getline( line, 255 );
172 } while( line[0] != 'C' );
173 //the name of each trigger channel
174 std::string chan;
175 int num;
176 char* token = strtok( line, " " );
177 do{
178 if ( token ) {
179 chan = token;
180 token = strtok( NULL, " " );
181 if(chan!="CHANNEL") trigChannel.push_back(chan);
182 }
183 else continue;
184 }while ( token != NULL );
185 //use this trigger channel, yes or no ?
186 infile.getline( line, 255 );
187 token = strtok( line, " " );
188 do{
189 if( token ) {
190 chan = token;
191 token = strtok(NULL, " ");
192 num = atoi(chan.c_str());
193 channelNo.push_back(num);
194 }
195 else continue;
196 }while ( token!=NULL);
197
198 while(infile) {
199 infile.getline( line, 255 );
200 if(line[0]==' ') continue;
201 if(line[0]=='#') break;
202 token = strtok( line, " " );
203 do{
204 if(token) {
205 chan = token;
206 token = strtok(NULL," ");
207 if(chan=="1"||chan=="0"||chan=="-") { trigTable.push_back(chan); }
208 else {
209 trigCondName.push_back(chan);
210 }
211 }
212 else continue;
213 }while (token!=NULL);
214 }
215
216 for(unsigned int i=0;i<trigChannel.size();i++){ cout<<" "<<trigChannel[i]<<" ";}
217 cout<<endl;
218 for(unsigned int i=0;i<channelNo.size();i++){ cout<<" "<<channelNo[i]<<" ";}
219 cout<<endl;
220 for(unsigned int j=0;j<trigCondName.size();j++)
221 {
222 cout<<trigCondName[j]<<" ";
223 for(unsigned int i=0+j*trigChannel.size();i<trigChannel.size()+j*trigChannel.size();i++)
224 { cout<<trigTable[i]<<" ";}
225 cout<<endl;
226 }
227 infile.close();
228 }
229
230 return StatusCode::SUCCESS;
231}
int num[96]
Definition ranlxd.c:373

◆ queryInterface()

StatusCode BesGlobalTrigSvc::queryInterface ( const InterfaceID & riid,
void ** ppvInterface )
virtual

Definition at line 243 of file BesGlobalTrigSvc.cxx.

245{
246 if ( IBesGlobalTrigSvc::interfaceID().versionMatch(riid) ) {
247 *ppvInterface = (IBesGlobalTrigSvc*)this;
248 }else{
249 return Service::queryInterface(riid, ppvInterface);
250 }
251 addRef();
252 return StatusCode::SUCCESS;
253}
static const InterfaceID & interfaceID()

◆ setBClus_PHI()

void BesGlobalTrigSvc::setBClus_PHI ( bool i)
inline

Definition at line 185 of file BesGlobalTrigSvc.h.

185{ emc_BClus_PHI = i; }

Referenced by BesEmcTrig::startEmcTrig().

◆ setBClusBB()

void BesGlobalTrigSvc::setBClusBB ( bool i)
inline

Definition at line 182 of file BesGlobalTrigSvc.h.

182{ emc_BClusBB = i; }

Referenced by BesEmcTrig::startEmcTrig().

◆ setBEtot_H()

void BesGlobalTrigSvc::setBEtot_H ( bool i)
inline

Definition at line 187 of file BesGlobalTrigSvc.h.

187{ emc_BEtot_H = i; }

Referenced by BesEmcTrig::startEmcTrig().

◆ setBL_BBLK()

void BesGlobalTrigSvc::setBL_BBLK ( bool i)
inline

Definition at line 194 of file BesGlobalTrigSvc.h.

194{ emc_BL_BBLK = i; }

Referenced by BesEmcTrig::startEmcTrig().

◆ setBL_EBLK()

void BesGlobalTrigSvc::setBL_EBLK ( bool i)
inline

Definition at line 195 of file BesGlobalTrigSvc.h.

195{ emc_BL_EBLK = i; }

Referenced by BesEmcTrig::startEmcTrig().

◆ setBL_Z()

void BesGlobalTrigSvc::setBL_Z ( bool i)
inline

Definition at line 191 of file BesGlobalTrigSvc.h.

191{ emc_BL_Z = i; }

Referenced by BesEmcTrig::startEmcTrig().

◆ setBTCEnergy()

void BesGlobalTrigSvc::setBTCEnergy ( int theta,
int phi,
double energy )
inline

Definition at line 210 of file BesGlobalTrigSvc.h.

210{ emcBTCEnergy[theta][phi] = energy; }
************Class m_ypar INTEGER m_KeyWgt INTEGER m_nphot INTEGER m_KeyGPS INTEGER m_IsBeamPolarized INTEGER m_EvtGenInterface DOUBLE PRECISION m_Emin DOUBLE PRECISION m_sphot DOUBLE PRECISION m_Xenph DOUBLE PRECISION m_q2 DOUBLE PRECISION m_PolBeam2 DOUBLE PRECISION m_xErrPb *COMMON c_KK2f $ !CMS energy average $ !Spin Polarization vector first beam $ !Spin Polarization vector second beam $ !Beam energy spread[GeV] $ !minimum hadronization energy[GeV] $ !input READ never touch them !$ !debug facility $ !maximum weight $ !inverse alfaQED $ !minimum real photon energy
Definition KK2f.h:50

◆ setBTofBB()

void BesGlobalTrigSvc::setBTofBB ( bool i)
inline

Definition at line 149 of file BesGlobalTrigSvc.h.

149{ tof_BTofBB = i; }

Referenced by BesTofTrig::startTofTrig().

◆ setBTofHitMap()

void BesGlobalTrigSvc::setBTofHitMap ( vector< int > i)
inline

Definition at line 158 of file BesGlobalTrigSvc.h.

158{ btofHitMap = i; }

Referenced by BesTofTrig::startTofTrig().

◆ setClus_Z()

void BesGlobalTrigSvc::setClus_Z ( bool i)
inline

Definition at line 184 of file BesGlobalTrigSvc.h.

184{ emc_Clus_Z = i; }

Referenced by BesEmcTrig::startEmcTrig().

◆ setDiff_B()

void BesGlobalTrigSvc::setDiff_B ( bool i)
inline

Definition at line 192 of file BesGlobalTrigSvc.h.

192{ emc_Diff_B = i; }

Referenced by BesEmcTrig::startEmcTrig().

◆ setDiff_E()

void BesGlobalTrigSvc::setDiff_E ( bool i)
inline

Definition at line 193 of file BesGlobalTrigSvc.h.

193{ emc_Diff_E = i; }

Referenced by BesEmcTrig::startEmcTrig().

◆ setEClus_PHI()

void BesGlobalTrigSvc::setEClus_PHI ( bool i)
inline

Definition at line 186 of file BesGlobalTrigSvc.h.

186{ emc_EClus_PHI = i; }

Referenced by BesEmcTrig::startEmcTrig().

◆ setEClusBB()

void BesGlobalTrigSvc::setEClusBB ( bool i)
inline

Definition at line 183 of file BesGlobalTrigSvc.h.

183{ emc_EClusBB = i; }

Referenced by BesEmcTrig::startEmcTrig().

◆ setEETCEnergy()

void BesGlobalTrigSvc::setEETCEnergy ( int theta,
int phi,
double energy )
inline

Definition at line 212 of file BesGlobalTrigSvc.h.

212{ emcEETCEnergy[theta][phi] = energy; }

◆ setEEtot_H()

void BesGlobalTrigSvc::setEEtot_H ( bool i)
inline

Definition at line 188 of file BesGlobalTrigSvc.h.

188{ emc_EEtot_H = i; }

Referenced by BesEmcTrig::startEmcTrig().

◆ setEmcBlockE()

void BesGlobalTrigSvc::setEmcBlockE ( std::vector< double > i)
inline

Definition at line 213 of file BesGlobalTrigSvc.h.

213{ emcBlockE = i; }

Referenced by EmcESum::getESum().

◆ setEmcBTotE()

void BesGlobalTrigSvc::setEmcBTotE ( double i)
inline

Definition at line 204 of file BesGlobalTrigSvc.h.

204{ emcBTotE = i; }

Referenced by EmcESum::getESum().

◆ setEmcClusE()

void BesGlobalTrigSvc::setEmcClusE ( std::vector< double > i)
inline

Definition at line 215 of file BesGlobalTrigSvc.h.

215{ emcClusE = i; }

Referenced by EmcCCount::getClusterId().

◆ setEmcClusId()

void BesGlobalTrigSvc::setEmcClusId ( map< int, vector< complex< int > >, greater< int > > i)
inline

Definition at line 214 of file BesGlobalTrigSvc.h.

214{ emcClusId = i; }

Referenced by EmcCCount::getClusterId().

◆ setEmcEETotE()

void BesGlobalTrigSvc::setEmcEETotE ( double i)
inline

Definition at line 209 of file BesGlobalTrigSvc.h.

209{ emcEETotE = i; }

Referenced by EmcESum::getESum().

◆ setEmcETotE()

void BesGlobalTrigSvc::setEmcETotE ( double i)
inline

Definition at line 205 of file BesGlobalTrigSvc.h.

205{ emcETotE = i; }

Referenced by EmcESum::getESum().

◆ setEmcLBTotE()

void BesGlobalTrigSvc::setEmcLBTotE ( double i)
inline

Definition at line 206 of file BesGlobalTrigSvc.h.

206{ emcLBTotE = i; }

Referenced by EmcESum::getESum().

◆ setEmcLTotE()

void BesGlobalTrigSvc::setEmcLTotE ( double i)
inline

Definition at line 202 of file BesGlobalTrigSvc.h.

202{ emcLTotE = i; }

Referenced by EmcESum::getESum().

◆ setEmcNbCluster()

void BesGlobalTrigSvc::setEmcNbCluster ( int i)
inline

Definition at line 198 of file BesGlobalTrigSvc.h.

198{ emcNbCluster = i; }

Referenced by EmcCCount::getClusterId().

◆ setEmcNeeCluster()

void BesGlobalTrigSvc::setEmcNeeCluster ( int i)
inline

Definition at line 200 of file BesGlobalTrigSvc.h.

200{ emcNeeCluster = i; }

Referenced by EmcCCount::getClusterId().

◆ setEmcNweCluster()

void BesGlobalTrigSvc::setEmcNweCluster ( int i)
inline

Definition at line 199 of file BesGlobalTrigSvc.h.

199{ emcNweCluster = i; }

Referenced by EmcCCount::getClusterId().

◆ setEmcRBTotE()

void BesGlobalTrigSvc::setEmcRBTotE ( double i)
inline

Definition at line 207 of file BesGlobalTrigSvc.h.

207{ emcRBTotE = i; }

Referenced by EmcESum::getESum().

◆ setEmcRTotE()

void BesGlobalTrigSvc::setEmcRTotE ( double i)
inline

Definition at line 203 of file BesGlobalTrigSvc.h.

203{ emcRTotE = i; }

Referenced by EmcESum::getESum().

◆ setEmcTotE()

void BesGlobalTrigSvc::setEmcTotE ( double i)
inline

Definition at line 201 of file BesGlobalTrigSvc.h.

201{ emcTotE = i; }

Referenced by EmcESum::getESum().

◆ setEmcWETotE()

void BesGlobalTrigSvc::setEmcWETotE ( double i)
inline

Definition at line 208 of file BesGlobalTrigSvc.h.

208{ emcWETotE = i; }

Referenced by EmcESum::getESum().

◆ setETofBB()

void BesGlobalTrigSvc::setETofBB ( bool i)
inline

Definition at line 148 of file BesGlobalTrigSvc.h.

148{ tof_ETofBB = i; }

Referenced by BesTofTrig::startTofTrig().

◆ setETofHitMap()

void BesGlobalTrigSvc::setETofHitMap ( vector< int > i)
inline

Definition at line 159 of file BesGlobalTrigSvc.h.

159{ etofHitMap = i; }

Referenced by BesTofTrig::startTofTrig().

◆ setEtot_L()

void BesGlobalTrigSvc::setEtot_L ( bool i)
inline

Definition at line 189 of file BesGlobalTrigSvc.h.

189{ emc_Etot_L = i; }

Referenced by BesEmcTrig::startEmcTrig().

◆ setEtot_M()

void BesGlobalTrigSvc::setEtot_M ( bool i)
inline

Definition at line 190 of file BesGlobalTrigSvc.h.

190{ emc_Etot_M = i; }

Referenced by BesEmcTrig::startEmcTrig().

◆ setEvtTime()

void BesGlobalTrigSvc::setEvtTime ( double i)
inline

Definition at line 48 of file BesGlobalTrigSvc.h.

48{ m_evttime = i; };

◆ setGoodEvent()

void BesGlobalTrigSvc::setGoodEvent ( bool i)
inlinevirtual

Implements IBesGlobalTrigSvc.

Definition at line 51 of file BesGlobalTrigSvc.h.

51{ m_goodEvent = i; };

◆ setIfpass()

void BesGlobalTrigSvc::setIfpass ( bool i)
inline

Definition at line 104 of file BesGlobalTrigSvc.h.

104{ ifpass = i; }

◆ setLTrk_BB()

void BesGlobalTrigSvc::setLTrk_BB ( bool i)
inline

Definition at line 119 of file BesGlobalTrigSvc.h.

119{ mdc_LTrk_BB = i; }

Referenced by BesMdcTrig::startMdcTrig().

◆ setMdcLtrkId()

void BesGlobalTrigSvc::setMdcLtrkId ( std::vector< int > i)
inline

Definition at line 128 of file BesGlobalTrigSvc.h.

128{ mdcLtrkId = i; }

Referenced by MdcTCount::GetTCount().

◆ setMdcStrkId()

void BesGlobalTrigSvc::setMdcStrkId ( std::vector< int > i)
inline

Definition at line 127 of file BesGlobalTrigSvc.h.

127{ mdcStrkId = i; }

Referenced by MdcTCount::GetTCount().

◆ setMucBB3478()

void BesGlobalTrigSvc::setMucBB3478 ( bool i)
inline

Definition at line 260 of file BesGlobalTrigSvc.h.

260{ muc_BB3478 = i; }

Referenced by BesMucTrig::findTrack().

◆ setMucBB37()

void BesGlobalTrigSvc::setMucBB37 ( bool i)
inline

Definition at line 261 of file BesGlobalTrigSvc.h.

261{ muc_BB37 = i; }

Referenced by BesMucTrig::findTrack().

◆ setMucIndex()

void BesGlobalTrigSvc::setMucIndex ( std::vector< int > i)
inline

Definition at line 264 of file BesGlobalTrigSvc.h.

264{ muc_index = i; }

Referenced by BesMucTrig::setIndex().

◆ setMucN3ltrackTotal()

void BesGlobalTrigSvc::setMucN3ltrackTotal ( int i)
inline

Definition at line 267 of file BesGlobalTrigSvc.h.

267{ muc_n3ltracktotal = i; }

Referenced by BesMucTrig::findTrack().

◆ setMucNtrackBR()

void BesGlobalTrigSvc::setMucNtrackBR ( int i)
inline

Definition at line 265 of file BesGlobalTrigSvc.h.

265{ muc_ntrackBR = i; }

Referenced by BesMucTrig::findTrack().

◆ setMucNtrackEC()

void BesGlobalTrigSvc::setMucNtrackEC ( int i)
inline

Definition at line 266 of file BesGlobalTrigSvc.h.

266{ muc_ntrackEC = i; }

Referenced by BesMucTrig::findTrack().

◆ setNBClus1()

void BesGlobalTrigSvc::setNBClus1 ( bool i)
inline

Definition at line 180 of file BesGlobalTrigSvc.h.

180{ emc_NBClus1 = i; }

Referenced by BesEmcTrig::startEmcTrig().

◆ setNBTof1()

void BesGlobalTrigSvc::setNBTof1 ( bool i)
inline

Definition at line 153 of file BesGlobalTrigSvc.h.

153{ tof_NBTof1 = i; }

Referenced by BesTofTrig::startTofTrig().

◆ setNBTof2()

void BesGlobalTrigSvc::setNBTof2 ( bool i)
inline

Definition at line 152 of file BesGlobalTrigSvc.h.

152{ tof_NBTof2 = i; }

Referenced by BesTofTrig::startTofTrig().

◆ setNClus1()

void BesGlobalTrigSvc::setNClus1 ( bool i)
inline

Definition at line 178 of file BesGlobalTrigSvc.h.

178{ emc_NClus1 = i; }

Referenced by BesEmcTrig::startEmcTrig().

◆ setNClus2()

void BesGlobalTrigSvc::setNClus2 ( bool i)
inline

Definition at line 179 of file BesGlobalTrigSvc.h.

179{ emc_NClus2 = i; }

Referenced by BesEmcTrig::startEmcTrig().

◆ setNEClus1()

void BesGlobalTrigSvc::setNEClus1 ( bool i)
inline

Definition at line 181 of file BesGlobalTrigSvc.h.

181{ emc_NEClus1 = i; }

Referenced by BesEmcTrig::startEmcTrig().

◆ setNETof1()

void BesGlobalTrigSvc::setNETof1 ( bool i)
inline

Definition at line 151 of file BesGlobalTrigSvc.h.

151{ tof_NETof1 = i; }

Referenced by BesTofTrig::startTofTrig().

◆ setNETof2()

void BesGlobalTrigSvc::setNETof2 ( bool i)
inline

Definition at line 150 of file BesGlobalTrigSvc.h.

150{ tof_NETof2 = i; }

Referenced by BesTofTrig::startTofTrig().

◆ setNItrk1()

void BesGlobalTrigSvc::setNItrk1 ( bool i)
inline

Definition at line 123 of file BesGlobalTrigSvc.h.

123{ mdc_NItrk1 = i; }

Referenced by BesMdcTrig::startMdcTrig().

◆ setNItrk2()

void BesGlobalTrigSvc::setNItrk2 ( bool i)
inline

Definition at line 124 of file BesGlobalTrigSvc.h.

124{ mdc_NItrk2 = i; }

Referenced by BesMdcTrig::startMdcTrig().

◆ setNLtrk1()

void BesGlobalTrigSvc::setNLtrk1 ( bool i)
inline

Definition at line 122 of file BesGlobalTrigSvc.h.

122{ mdc_NLtrk1 = i; }

Referenced by BesMdcTrig::startMdcTrig().

◆ setNLtrk2()

void BesGlobalTrigSvc::setNLtrk2 ( bool i)
inline

Definition at line 121 of file BesGlobalTrigSvc.h.

121{ mdc_NLtrk2 = i; }

Referenced by BesMdcTrig::startMdcTrig().

◆ setNLtrkN()

void BesGlobalTrigSvc::setNLtrkN ( bool i)
inline

Definition at line 120 of file BesGlobalTrigSvc.h.

120{ mdc_NLtrkN = i; }

Referenced by BesMdcTrig::startMdcTrig().

◆ setNStrk1()

void BesGlobalTrigSvc::setNStrk1 ( bool i)
inline

Definition at line 118 of file BesGlobalTrigSvc.h.

118{ mdc_NStrk1 = i; }

Referenced by BesMdcTrig::startMdcTrig().

◆ setNStrk2()

void BesGlobalTrigSvc::setNStrk2 ( bool i)
inline

Definition at line 117 of file BesGlobalTrigSvc.h.

117{ mdc_NStrk2 = i; }

Referenced by BesMdcTrig::startMdcTrig().

◆ setNStrkN()

void BesGlobalTrigSvc::setNStrkN ( bool i)
inline

Definition at line 116 of file BesGlobalTrigSvc.h.

116{ mdc_NStrkN = i; }

Referenced by BesMdcTrig::startMdcTrig().

◆ setNTof1()

void BesGlobalTrigSvc::setNTof1 ( bool i)
inline

Definition at line 154 of file BesGlobalTrigSvc.h.

154{ tof_NTof1 = i; }

Referenced by BesTofTrig::startTofTrig().

◆ setRunMode()

void BesGlobalTrigSvc::setRunMode ( int mode)
inline

Definition at line 109 of file BesGlobalTrigSvc.h.

109{ m_runMode = mode; }

Referenced by BesTrigL1::initialize().

◆ setSTrk_BB()

void BesGlobalTrigSvc::setSTrk_BB ( bool i)
inline

Definition at line 115 of file BesGlobalTrigSvc.h.

115{ mdc_STrk_BB = i; }

Referenced by BesMdcTrig::startMdcTrig().

◆ setTMATrkBB()

void BesGlobalTrigSvc::setTMATrkBB ( bool i)
inline

Definition at line 293 of file BesGlobalTrigSvc.h.

293{ tm_ATrk_BB = i; }

Referenced by BesTMTrig::startTMTrig().

◆ setTMBTrkBB()

void BesGlobalTrigSvc::setTMBTrkBB ( bool i)
inline

Definition at line 296 of file BesGlobalTrigSvc.h.

296{ tm_BTrk_BB = i; }

Referenced by BesTMTrig::startTMTrig().

◆ setTMCTrkBB()

void BesGlobalTrigSvc::setTMCTrkBB ( bool i)
inline

Definition at line 299 of file BesGlobalTrigSvc.h.

299{ tm_CTrk_BB = i; }

Referenced by BesTMTrig::startTMTrig().

◆ setTMNATrk1()

void BesGlobalTrigSvc::setTMNATrk1 ( bool i)
inline

Definition at line 291 of file BesGlobalTrigSvc.h.

291{ tm_NATrk1 = i; }

Referenced by BesTMTrig::startTMTrig().

◆ setTMNATrk2()

void BesGlobalTrigSvc::setTMNATrk2 ( bool i)
inline

Definition at line 292 of file BesGlobalTrigSvc.h.

292{ tm_NATrk2 = i; }

Referenced by BesTMTrig::startTMTrig().

◆ setTMNBTrk1()

void BesGlobalTrigSvc::setTMNBTrk1 ( bool i)
inline

Definition at line 294 of file BesGlobalTrigSvc.h.

294{ tm_NBTrk1 = i; }

Referenced by BesTMTrig::startTMTrig().

◆ setTMNBTrk2()

void BesGlobalTrigSvc::setTMNBTrk2 ( bool i)
inline

Definition at line 295 of file BesGlobalTrigSvc.h.

295{ tm_NBTrk2 = i; }

Referenced by BesTMTrig::startTMTrig().

◆ setTMNCTrk1()

void BesGlobalTrigSvc::setTMNCTrk1 ( bool i)
inline

Definition at line 297 of file BesGlobalTrigSvc.h.

297{ tm_NCTrk1 = i; }

Referenced by BesTMTrig::startTMTrig().

◆ setTMNCTrk2()

void BesGlobalTrigSvc::setTMNCTrk2 ( bool i)
inline

Definition at line 298 of file BesGlobalTrigSvc.h.

298{ tm_NCTrk2 = i; }

Referenced by BesTMTrig::startTMTrig().

◆ setTofHitPos()

void BesGlobalTrigSvc::setTofHitPos ( map< int, vector< int >, greater< int > > i)
inline

Definition at line 157 of file BesGlobalTrigSvc.h.

157{ tofHitPos = i; }

Referenced by BesTofTrig::startTofTrig().

◆ setTrigChan()

void BesGlobalTrigSvc::setTrigChan ( int i,
int j )
inline

Definition at line 91 of file BesGlobalTrigSvc.h.

91{ m_trigChannel[i] = j; }

◆ setTrigCond()

void BesGlobalTrigSvc::setTrigCond ( int i,
bool j )
inline

Definition at line 97 of file BesGlobalTrigSvc.h.

97 {
98 trigCond[i] = j;
99 if(j) m_trigCondition[i] = 1;
100 else m_trigCondition[i] = 0;
101 }

Referenced by BesTrigL1::execute().

◆ setTrigCondition()

StatusCode BesGlobalTrigSvc::setTrigCondition ( )

Definition at line 465 of file BesGlobalTrigSvc.cxx.

466{
467 for(int i = 0; i < 48; i++) {
468 trigCond[i] = false;
469 m_trigCondition[i] = 0;
470 }
471
472 trigCond[0] = emc_NClus1;
473 trigCond[1] = emc_NClus2;
474 trigCond[2] = emc_BClusBB;
475 trigCond[3] = emc_EClusBB;
476 trigCond[4] = emc_Clus_Z;
477 trigCond[5] = emc_BClus_PHI;
478 trigCond[6] = emc_EClus_PHI;
479 trigCond[7] = emc_BEtot_H;
480 trigCond[8] = emc_EEtot_H;
481 trigCond[9] = emc_Etot_L;
482 trigCond[10] = emc_Etot_M;
483 trigCond[11] = emc_BL_Z;
484 trigCond[12] = emc_NBClus1;
485 trigCond[13] = emc_NEClus1;
486 trigCond[14] = emc_BL_BBLK;
487 trigCond[15] = emc_BL_EBLK;
488 trigCond[16] = tof_ETofBB;
489 trigCond[17] = tof_BTofBB;
490 trigCond[18] = tof_NETof2;
491 trigCond[19] = tof_NETof1;
492 trigCond[20] = tof_NBTof2;
493 trigCond[21] = tof_NBTof1;
494 trigCond[22] = tof_NTof1;
495 trigCond[23] = tm_CTrk_BB;
496 trigCond[24] = tm_NCTrk2;
497 trigCond[25] = tm_NCTrk1;
498 trigCond[26] = tm_BTrk_BB;
499 trigCond[27] = tm_NBTrk2;
500 trigCond[28] = tm_NBTrk1;
501 trigCond[29] = tm_ATrk_BB;
502 trigCond[30] = tm_NATrk2;
503 trigCond[31] = tm_NATrk1;
504 trigCond[32] = muc_BB3478;
505 trigCond[33] = muc_BB37;
506 trigCond[34] = false;
507 trigCond[35] = false;
508 trigCond[36] = false;
509 trigCond[37] = false;
510 trigCond[38] = mdc_STrk_BB;
511 trigCond[39] = mdc_NStrkN;
512 trigCond[40] = mdc_NStrk2;
513 trigCond[41] = mdc_NStrk1;
514 trigCond[42] = mdc_LTrk_BB;
515 trigCond[43] = mdc_NLtrkN;
516 trigCond[44] = mdc_NLtrk2;
517 trigCond[45] = mdc_NLtrk1;
518 trigCond[46] = mdc_NItrk2;
519 trigCond[47] = mdc_NItrk1;
520
521 MsgStream log(msgSvc(), name());
522 if(trigCondName.size() != 48) {
523 log << MSG::FATAL << "The trigger condition CAN NOT be successfully read!!!" << endreq;
524 return StatusCode::FAILURE;
525 }
526
527 for(unsigned int i = 0; i < 48; i++) {
528 if(trigCond[i]) m_trigCondition[i] = 1; //data structure member in TDS
529 }
530
531 return StatusCode::SUCCESS;
532}

Referenced by BesTrigL1::execute().

◆ setWETCEnergy()

void BesGlobalTrigSvc::setWETCEnergy ( int theta,
int phi,
double energy )
inline

Definition at line 211 of file BesGlobalTrigSvc.h.

211{ emcWETCEnergy[theta][phi] = energy; }

◆ startEmcTrig()

void BesGlobalTrigSvc::startEmcTrig ( )

Definition at line 375 of file BesGlobalTrigSvc.cxx.

375 {
376 if(m_EmcTrig) m_EmcTrig->startEmcTrig();
377}
void startEmcTrig()

Referenced by BesTrigL1::runAclock_emc().

◆ startMdcTrig()

void BesGlobalTrigSvc::startMdcTrig ( )

Definition at line 367 of file BesGlobalTrigSvc.cxx.

367 {
368 if(m_MdcTrig) m_MdcTrig->startMdcTrig();
369}
void startMdcTrig()

Referenced by BesTrigL1::runAclock_mdc().

◆ startTMTrig()

void BesGlobalTrigSvc::startTMTrig ( )

Definition at line 379 of file BesGlobalTrigSvc.cxx.

379 {
380 if(m_TMTrig) m_TMTrig->startTMTrig();
381}
void startTMTrig()

◆ startTofTrig()

void BesGlobalTrigSvc::startTofTrig ( )

Definition at line 371 of file BesGlobalTrigSvc.cxx.

371 {
372 if(m_TofTrig) m_TofTrig->startTofTrig();
373}
void startTofTrig()

Referenced by BesTrigL1::runAclock_tof().


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