BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
LocalomegatoPiPiPi0Selector.cxx
Go to the documentation of this file.
1
#include "GaudiKernel/Bootstrap.h"
2
3
#include "
LocalomegatoPiPiPi0Selector.h
"
4
5
DECLARE_COMPONENT
(
LocalomegatoPiPiPi0Selector
)
6
7
LocalomegatoPiPiPi0Selector
::
LocalomegatoPiPiPi0Selector
( const
std
::
string
&
type
,
8
const
std
::
string
& name,
9
const IInterface* parent )
10
: base_class(
type
, name, parent ) {
11
// Declare the properties
12
declareProperty(
"MinMassCut"
, m_minMass = 0.71 );
13
declareProperty(
"MaxMassCut"
, m_maxMass = 0.86 );
14
}
15
16
bool
LocalomegatoPiPiPi0Selector::operator()
(
CDDecay
& aomega ) {
17
18
// aomega.setUserTag(1);
19
int
userTag_pion1 = aomega.
decay
().
child
( 0 ).
userTag
();
20
int
userTag_pion2 = aomega.
decay
().
child
( 1 ).
userTag
();
21
if
( userTag_pion1 == 1 && userTag_pion2 == 1 ) aomega.
setUserTag
( 1 );
22
else
aomega.
setUserTag
( 2 );
23
24
double
mass
= aomega.
mass
();
25
if
( (
mass
<= m_minMass ) || (
mass
>= m_maxMass ) )
return
false
;
26
27
return
true
;
28
}
DECLARE_COMPONENT
DECLARE_COMPONENT(BesBdkRc)
mass
double mass
Definition
CosmicGenerator.cxx:128
LocalomegatoPiPiPi0Selector.h
CDCandidate::setUserTag
void setUserTag(int tag)
Definition
CDCandidate.cxx:66
CDCandidate::userTag
int userTag() const
Definition
CDCandidate.cxx:117
CDCandidate::mass
double mass() const
Definition
CDCandidate.cxx:122
CDDecay
Definition
Event/BesDChain/include/BesDChain/CDDecay.h:110
CDDecay::child
const CDCandidate & child(unsigned int aPosition) const
Definition
CDDecay.cxx:231
CDDecay::decay
virtual const CDDecay & decay(void) const
Definition
CDDecay.cxx:204
LocalomegatoPiPiPi0Selector
Definition
LocalomegatoPiPiPi0Selector.h:7
LocalomegatoPiPiPi0Selector::LocalomegatoPiPiPi0Selector
LocalomegatoPiPiPi0Selector(const std::string &type, const std::string &name, const IInterface *parent)
Definition
LocalomegatoPiPiPi0Selector.cxx:7
LocalomegatoPiPiPi0Selector::operator()
bool operator()(CDDecay &aEp)
Definition
LocalomegatoPiPiPi0Selector.cxx:16
std
Definition
x86_64-el9-gcc13-dbg/Event/RootEventData/RootEventDataDict.cxx:101
type
8.0.0
BOSS_Source
Reconstruction
DTagAlg
src
LocalomegatoPiPiPi0Selector.cxx
Generated by
1.16.1