CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
LocalEtatoGGSelector.cxx
Go to the documentation of this file.
1#include "GaudiKernel/Bootstrap.h"
2#include "GaudiKernel/IJobOptionsSvc.h"
3#include "GaudiKernel/ISvcLocator.h"
4#include "GaudiKernel/PropertyMgr.h"
5
8
10{
11 IJobOptionsSvc* jobSvc;
12 Gaudi::svcLocator()->service("JobOptionsSvc", jobSvc);
13
14 PropertyMgr m_propMgr;
15
16 m_propMgr.declareProperty("EtaMinMassCut", m_minMass = 0.40 );
17 m_propMgr.declareProperty("EtaMaxMassCut", m_maxMass = 0.70 );
18 m_propMgr.declareProperty("EtaMaxChisqCut", m_maxChisq = 2500 );
19
20
21 jobSvc->setMyProperties("LocalEtatoGGSelector", &m_propMgr);
22}
23
25
26 aEta.setUserTag(1);
27 EvtRecEtaToGG* eta = const_cast<EvtRecEtaToGG*>( aEta.navEta() );
28
29 double mass = eta->unconMass();
30 double chi2 = eta->chisq();
31 if ((mass <= m_minMass) || (mass >= m_maxMass) || (chi2 >= m_maxChisq)) return false;
32
33
34 return true;
35}
36
double mass
LocalEtatoGGSelector etatoGGSelector
void setUserTag(int tag)
Definition CDEta.h:31
virtual const EvtRecEtaToGG * navEta() const
Definition CDEta.cxx:66
double unconMass() const
double chisq() const