DQACtrlSamples Class Reference

#include <DQACtrlSamples.h>

List of all members.

Public Member Functions

 DQACtrlSamples (const std::string &name, ISvcLocator *pSvcLocator)
StatusCode initialize ()
StatusCode execute ()
StatusCode finalize ()

Private Attributes

BooleanProperty m_selBhabha
BooleanProperty m_selDimu
BooleanProperty m_selHadron
BooleanProperty m_selRhopi
BooleanProperty m_selPpbar
BooleanProperty m_selKstark
BooleanProperty m_selLambdalambda
Algorithmm_dqaBhabha
Algorithmm_dqaDimu
Algorithmm_dqaHadron
Algorithmm_dqaRhopi
Algorithmm_dqaPpbar
Algorithmm_dqaKstark
Algorithmm_dqaLambdalambda


Detailed Description

Definition at line 22 of file DQACtrlSamples.h.


Constructor & Destructor Documentation

DQACtrlSamples::DQACtrlSamples ( const std::string name,
ISvcLocator *  pSvcLocator 
)

Definition at line 17 of file DQACtrlSamples.cxx.

00017                                                                               :
00018   Algorithm(name, pSvcLocator) {
00019    
00020     //Declare the properties
00021     declareProperty("SelectBhabha", m_selBhabha = true);
00022     declareProperty("SelectDimu", m_selDimu = true);
00023     declareProperty("SelectHadron", m_selHadron = false);
00024     declareProperty("SelectRhopi", m_selRhopi = false);
00025     declareProperty("SelectPpbar", m_selPpbar = false);
00026     declareProperty("SelectKstark", m_selKstark = false);
00027     declareProperty("SelectLambdalambda", m_selLambdalambda = false);
00028     
00029 }


Member Function Documentation

StatusCode DQACtrlSamples::execute (  ) 

Definition at line 101 of file DQACtrlSamples.cxx.

References calibUtil::ERROR, Bes_Common::INFO, m_dqaBhabha, m_dqaDimu, m_dqaHadron, m_dqaKstark, m_dqaLambdalambda, m_dqaPpbar, m_dqaRhopi, m_selBhabha, m_selDimu, m_selHadron, m_selKstark, m_selLambdalambda, m_selPpbar, m_selRhopi, and msgSvc().

00101                                    {
00102   
00103   MsgStream log(msgSvc(), name());
00104   log << MSG::INFO << "in execute()" << endreq;
00105 
00106   SmartDataPtr<DQAEvent::DQAEvent> dqaevt(eventSvc(), "/Event/DQATag");
00107   if( !dqaevt ) {
00108       dqaevt = new DQAEvent::DQAEvent;
00109       StatusCode sc;
00110       sc = eventSvc()->registerObject("/Event/DQATag", dqaevt);
00111       if (sc.isFailure()) {
00112           log << MSG::ERROR << "Could not register DQAEvent to TDS" << endreq;
00113           return StatusCode::FAILURE;
00114           return sc;
00115       }
00116   }
00117 
00118   if ( m_selBhabha ) {
00119       m_dqaBhabha->execute();
00120       if ( m_dqaBhabha->filterPassed() ) dqaevt->setBhabha(1);
00121   }
00122 
00123   if ( m_selDimu ) {
00124       m_dqaDimu->execute();
00125       if ( m_dqaDimu->filterPassed() ) dqaevt->setDimu(1);
00126   }
00127 
00128   if ( m_selHadron ) {
00129       m_dqaHadron->execute();
00130       if ( m_dqaHadron->filterPassed() ) dqaevt->setHadron(1);
00131   }
00132 
00133   if ( m_selRhopi ) {
00134       m_dqaRhopi->execute();
00135       if ( m_dqaRhopi->filterPassed() ) dqaevt->setRhopi(1);
00136   }
00137   
00138   if ( m_selPpbar ) {
00139       m_dqaPpbar->execute();
00140       if ( m_dqaPpbar->filterPassed() ) dqaevt->setPpbar(1);
00141   }
00142   
00143   if ( m_selKstark ) {
00144       m_dqaKstark->execute();
00145       if ( m_dqaKstark->filterPassed() ) dqaevt->setKstark(1);
00146   }
00147   
00148   if ( m_selLambdalambda ) {
00149       m_dqaLambdalambda->execute();
00150       if ( m_dqaLambdalambda->filterPassed() ) dqaevt->setLambdalambdabar(1);
00151   }
00152   
00153   return StatusCode::SUCCESS;
00154 
00155 }

StatusCode DQACtrlSamples::finalize (  ) 

Definition at line 158 of file DQACtrlSamples.cxx.

References Bes_Common::INFO, and msgSvc().

00158                                     {
00159 
00160   MsgStream log(msgSvc(), name());
00161   log << MSG::INFO << "in finalize()" << endmsg;
00162   return StatusCode::SUCCESS;
00163 }

StatusCode DQACtrlSamples::initialize (  ) 

Definition at line 32 of file DQACtrlSamples.cxx.

References calibUtil::ERROR, Bes_Common::INFO, m_dqaBhabha, m_dqaDimu, m_dqaHadron, m_dqaKstark, m_dqaLambdalambda, m_dqaPpbar, m_dqaRhopi, m_selBhabha, m_selDimu, m_selHadron, m_selKstark, m_selLambdalambda, m_selPpbar, m_selRhopi, and msgSvc().

00032                                      {
00033   MsgStream log(msgSvc(), name());
00034 
00035   log << MSG::INFO << "in initialize()" << endmsg;
00036   StatusCode sc;
00037 
00038   if ( m_selBhabha ) {
00039       sc =  createSubAlgorithm( "DQASelBhabha", "DQASelBhabha", m_dqaBhabha);
00040       if (sc.isFailure()) {
00041           log << MSG::ERROR << "Error creating Sub-Algorithm DQASelBhabha" << endreq;
00042           return StatusCode::FAILURE;
00043       }
00044   }
00045 
00046   if ( m_selDimu ) {
00047       sc =  createSubAlgorithm( "DQASelDimu", "DQASelDimu", m_dqaDimu);
00048       if (sc.isFailure()) {
00049           log << MSG::ERROR << "Error creating Sub-Algorithm DQASelDimu" << endreq;
00050           return StatusCode::FAILURE;
00051       }
00052   }
00053 
00054   if ( m_selHadron ) {
00055       sc =  createSubAlgorithm( "DQASelHadron", "DQASelHadron", m_dqaHadron);
00056       if (sc.isFailure()) {
00057           log << MSG::ERROR << "Error creating Sub-Algorithm DQASelHadron" << endreq;
00058           return StatusCode::FAILURE;
00059       }
00060   }
00061 
00062   if ( m_selRhopi ) {
00063       sc =  createSubAlgorithm( "DQARhopi", "DQARhopi", m_dqaRhopi);
00064       if (sc.isFailure()) {
00065           log << MSG::ERROR << "Error creating Sub-Algorithm DQARhopiAlg" << endreq;
00066           return StatusCode::FAILURE;
00067       }
00068   }
00069 
00070   if ( m_selPpbar ) {
00071       sc =  createSubAlgorithm( "DQAJpsi2PPbarAlg", "DQAJpsi2PPbarAlg", m_dqaPpbar);
00072       if (sc.isFailure()) {
00073           log << MSG::ERROR << "Error creating Sub-Algorithm Jpsi2PPbarAlg" << endreq;
00074           return StatusCode::FAILURE;
00075       }
00076   }
00077   
00078   if ( m_selKstark ) {
00079       sc =  createSubAlgorithm( "DQAKsKpi", "DQAKsKpi", m_dqaKstark);
00080       if (sc.isFailure()) {
00081           log << MSG::ERROR << "Error creating Sub-Algorithm DQAKsKpi" << endreq;
00082           return StatusCode::FAILURE;
00083       }
00084   }
00085   
00086   if ( m_selLambdalambda ) {
00087       sc =  createSubAlgorithm( "JsiLL", "JsiLL", m_dqaLambdalambda);
00088       if (sc.isFailure()) {
00089           log << MSG::ERROR << "Error creating Sub-Algorithm JsiLL" << endreq;
00090           return StatusCode::FAILURE;
00091       }
00092   }
00093   
00094   log << MSG::INFO << "successfully return from initialize()" <<endmsg;
00095   return StatusCode::SUCCESS;
00096 
00097 
00098 }


Member Data Documentation

Algorithm* DQACtrlSamples::m_dqaBhabha [private]

Definition at line 41 of file DQACtrlSamples.h.

Referenced by execute(), and initialize().

Algorithm* DQACtrlSamples::m_dqaDimu [private]

Definition at line 42 of file DQACtrlSamples.h.

Referenced by execute(), and initialize().

Algorithm* DQACtrlSamples::m_dqaHadron [private]

Definition at line 43 of file DQACtrlSamples.h.

Referenced by execute(), and initialize().

Algorithm* DQACtrlSamples::m_dqaKstark [private]

Definition at line 46 of file DQACtrlSamples.h.

Referenced by execute(), and initialize().

Algorithm* DQACtrlSamples::m_dqaLambdalambda [private]

Definition at line 47 of file DQACtrlSamples.h.

Referenced by execute(), and initialize().

Algorithm* DQACtrlSamples::m_dqaPpbar [private]

Definition at line 45 of file DQACtrlSamples.h.

Referenced by execute(), and initialize().

Algorithm* DQACtrlSamples::m_dqaRhopi [private]

Definition at line 44 of file DQACtrlSamples.h.

Referenced by execute(), and initialize().

BooleanProperty DQACtrlSamples::m_selBhabha [private]

Definition at line 33 of file DQACtrlSamples.h.

Referenced by execute(), and initialize().

BooleanProperty DQACtrlSamples::m_selDimu [private]

Definition at line 34 of file DQACtrlSamples.h.

Referenced by execute(), and initialize().

BooleanProperty DQACtrlSamples::m_selHadron [private]

Definition at line 35 of file DQACtrlSamples.h.

Referenced by execute(), and initialize().

BooleanProperty DQACtrlSamples::m_selKstark [private]

Definition at line 38 of file DQACtrlSamples.h.

Referenced by execute(), and initialize().

BooleanProperty DQACtrlSamples::m_selLambdalambda [private]

Definition at line 39 of file DQACtrlSamples.h.

Referenced by execute(), and initialize().

BooleanProperty DQACtrlSamples::m_selPpbar [private]

Definition at line 37 of file DQACtrlSamples.h.

Referenced by execute(), and initialize().

BooleanProperty DQACtrlSamples::m_selRhopi [private]

Definition at line 36 of file DQACtrlSamples.h.

Referenced by execute(), and initialize().


Generated on Tue Nov 29 23:18:20 2016 for BOSS_7.0.2 by  doxygen 1.4.7