BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
LocalEtatoPiPiPi0Selector Class Reference

#include <LocalEtatoPiPiPi0Selector.h>

+ Inheritance diagram for LocalEtatoPiPiPi0Selector:

Public Member Functions

 LocalEtatoPiPiPi0Selector ()
 
bool operator() (CDDecay &aEp)
 
 LocalEtatoPiPiPi0Selector ()
 
bool operator() (CDDecay &aEp)
 
- Public Member Functions inherited from DCSelectionFunction< CDDecay >
 DCSelectionFunction ()
 
 DCSelectionFunction ()
 
virtual ~DCSelectionFunction ()
 
virtual ~DCSelectionFunction ()
 
virtual bool operator() (CDDecay &)=0
 
bool operator() (CDDecay &iArg) const
 
virtual bool operator() (CDDecay &)=0
 
bool operator() (CDDecay &iArg) const
 

Detailed Description

Constructor & Destructor Documentation

◆ LocalEtatoPiPiPi0Selector() [1/2]

LocalEtatoPiPiPi0Selector::LocalEtatoPiPiPi0Selector ( )

Definition at line 13 of file LocalEtatoPiPiPi0Selector.cxx.

14{
15 IJobOptionsSvc* jobSvc;
16 Gaudi::svcLocator()->service("JobOptionsSvc", jobSvc);
17
18 PropertyMgr m_propMgr;
19
20 //Declare the properties
21 m_propMgr.declareProperty("minMassEtatoPiPiPi0", m_minMass=0.40);
22 m_propMgr.declareProperty("maxMassEtatoPiPiPi0", m_maxMass=0.70);
23
24
25 jobSvc->setMyProperties("LocalEtatoPiPiPi0Selector", &m_propMgr);
26}

◆ LocalEtatoPiPiPi0Selector() [2/2]

LocalEtatoPiPiPi0Selector::LocalEtatoPiPiPi0Selector ( )

Member Function Documentation

◆ operator()() [1/2]

bool LocalEtatoPiPiPi0Selector::operator() ( CDDecay aEp)
virtual

Implements DCSelectionFunction< CDDecay >.

Definition at line 28 of file LocalEtatoPiPiPi0Selector.cxx.

28 {
29
30 //aEta.setUserTag(1);
31
32 int userTag_pion1=aEta.decay().child(0).userTag();
33 int userTag_pion2=aEta.decay().child(1).userTag();
34 if(userTag_pion1==1 && userTag_pion2==1) aEta.setUserTag(1);
35 else aEta.setUserTag(2);
36
37 double mass = aEta.mass();
38 if(mass >= m_minMass && mass<= m_maxMass)
39 return true;
40 else
41 return false;
42}
double mass

◆ operator()() [2/2]

bool LocalEtatoPiPiPi0Selector::operator() ( CDDecay aEp)
virtual

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