00001 #include "GaudiKernel/Bootstrap.h" 00002 #include "GaudiKernel/IJobOptionsSvc.h" 00003 #include "GaudiKernel/ISvcLocator.h" 00004 #include "GaudiKernel/PropertyMgr.h" 00005 00006 #include "EventModel/EventModel.h" 00007 #include "EventModel/EventHeader.h" 00008 #include "EvtRecEvent/EvtRecEvent.h" 00009 #include "EvtRecEvent/EvtRecTrack.h" 00010 #include "ParticleID/ParticleID.h" 00011 #include "DTagAlg/LocalRhotoPiPiSelector.h" 00012 00013 LocalRhotoPiPiSelector::LocalRhotoPiPiSelector() 00014 { 00015 IJobOptionsSvc* jobSvc; 00016 Gaudi::svcLocator()->service("JobOptionsSvc", jobSvc); 00017 00018 PropertyMgr m_propMgr; 00019 00020 //Declare the properties 00021 m_propMgr.declareProperty("minMassRhotoPiPi", m_minMass = 0.5); 00022 m_propMgr.declareProperty("maxMassRhotoPiPi", m_maxMass = 1.0); 00023 00024 jobSvc->setMyProperties("LocalRhotoPiPiSelector", &m_propMgr); 00025 } 00026 00027 bool LocalRhotoPiPiSelector::operator() (CDDecay& aRho) { 00028 00029 aRho.setUserTag(1); 00030 double mass = aRho.mass(); 00031 if( mass >= m_minMass && mass <= m_maxMass) 00032 return true; 00033 return false; 00034 } 00035 00036 LocalRhotoPiPiSelector rhotoPiPiSelector;