BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
LocalEtatoGGSelector Class Reference

#include <LocalEtatoGGSelector.h>

+ Inheritance diagram for LocalEtatoGGSelector:

Public Member Functions

 LocalEtatoGGSelector ()
 
bool operator() (CDEta &aEta)
 
- Public Member Functions inherited from DCSelectionFunction< CDEta >
 DCSelectionFunction ()
 
virtual ~DCSelectionFunction ()
 
bool operator() (CDEta &iArg) const
 

Detailed Description

Definition at line 7 of file LocalEtatoGGSelector.h.

Constructor & Destructor Documentation

◆ LocalEtatoGGSelector()

LocalEtatoGGSelector::LocalEtatoGGSelector ( )

Definition at line 9 of file LocalEtatoGGSelector.cxx.

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}

Member Function Documentation

◆ operator()()

bool LocalEtatoGGSelector::operator() ( CDEta & aEta)
virtual

Implements DCSelectionFunction< CDEta >.

Definition at line 24 of file LocalEtatoGGSelector.cxx.

24 {
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}
double mass
void setUserTag(int tag)
virtual const EvtRecEtaToGG * navEta() const
Definition CDEta.cxx:66
double unconMass() const
double chisq() const

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