BOSS 7.0.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)
 
 LocalEtatoGGSelector ()
 
bool operator() (CDEta &aEta)
 
- Public Member Functions inherited from DCSelectionFunction< CDEta >
 DCSelectionFunction ()
 
 DCSelectionFunction ()
 
virtual ~DCSelectionFunction ()
 
virtual ~DCSelectionFunction ()
 
virtual bool operator() (CDEta &)=0
 
bool operator() (CDEta &iArg) const
 
virtual bool operator() (CDEta &)=0
 
bool operator() (CDEta &iArg) const
 

Detailed Description

Constructor & Destructor Documentation

◆ LocalEtatoGGSelector() [1/2]

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}

◆ LocalEtatoGGSelector() [2/2]

LocalEtatoGGSelector::LocalEtatoGGSelector ( )

Member Function Documentation

◆ operator()() [1/2]

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)
Definition: CDCandidate.cxx:81
virtual const EvtRecEtaToGG * navEta() const
Definition: CDEta.cxx:66

◆ operator()() [2/2]

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

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