BOSS
7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
ChosenConjugateList.cc
Go to the documentation of this file.
1
#ifndef DCHAIN_CHOSENCONJUGATELIST_CC
2
#define DCHAIN_CHOSENCONJUGATELIST_CC
3
// -*- C++ -*-
4
//
5
// Package: DChain
6
// Module: ChosenConjugateList
7
//
8
// Description: <one line class summary>
9
//
10
// Implimentation:
11
// <Notes on implimentation>
12
//
13
// Author: Simon Patton
14
// Created: Fri Oct 4 11:04:56 EDT 1996
15
// $Id: ChosenConjugateList.cc,v 1.1.1.1 2009/03/03 06:06:56 maqm Exp $
16
//
17
// Revision history
18
//
19
// $Log: ChosenConjugateList.cc,v $
20
// Revision 1.1.1.1 2009/03/03 06:06:56 maqm
21
// first import of DecayChain
22
//
23
// Revision 1.1 2006/01/11 20:28:34 cdj
24
// massive class renaming, addition of [] for selection and unit tests
25
//
26
//
27
28
// system include files
29
#include <stdlib.h>
// required for 'exit'
30
31
// user include files
32
#include "
DecayChain/Function/DCAnalysisFunction.h
"
33
#include "
DecayChain/Function/DCConjugateFunction.h
"
34
#include "
DecayChain/Element/conjugation.h
"
35
#include "
DecayChain/Element/LabeledParticle.h
"
36
#include "
DecayChain/Iterator/MuteWholeItr.h
"
37
#include "
DecayChain/Iterator/WholeItr.h
"
38
#include "
DecayChain/Iterator/PartialItr.h
"
39
#include "
DecayChain/List/LabeledParticleList.h
"
40
41
#include "
DecayChain/List/ChosenConjugateList.h
"
42
43
//
44
// constants, enums and typedefs
45
//
46
namespace
dchain
{
47
//
48
// static data member definitions
49
//
50
51
//
52
// constructors and destructor
53
//
54
template
<
class
Conjugate ,
class
Cand
id
ateClass >
55
ChosenConjugateList< Conjugate , CandidateClass >::ChosenConjugateList
(
LabeledParticleList< Conjugate , CandidateClass >
& aLabeledParticleList ,
56
const
conjugation::Label
aLabel ) :
57
ConjugateList
< CandidateClass >( aLabel ) ,
58
m_list( &aLabeledParticleList )
59
{
60
}
61
62
template
<
class
Conjugate ,
class
Cand
id
ateClass >
63
ChosenConjugateList< Conjugate , CandidateClass >::~ChosenConjugateList
()
64
{
65
}
66
67
//
68
// member functions
69
//
70
template
<
class
Conjugate ,
class
Cand
id
ateClass >
71
typename
ChosenConjugateList< Conjugate , CandidateClass >::iterator
ChosenConjugateList< Conjugate , CandidateClass >::particle_begin
()
72
{
73
return
( m_list->begin() ) ;
74
}
75
76
template
<
class
Conjugate ,
class
Cand
id
ateClass >
77
typename
ChosenConjugateList< Conjugate , CandidateClass >::iterator
ChosenConjugateList< Conjugate , CandidateClass >::particle_end
()
78
{
79
return
( m_list->end() ) ;
80
}
81
82
template
<
class
Conjugate ,
class
Cand
id
ateClass >
83
LabeledCandidateList< CandidateClass >
&
ChosenConjugateList< Conjugate , CandidateClass >::labeledCandidateList
()
84
{
85
return
( *m_list ) ;
86
}
87
88
//
89
// const member functions
90
//
91
template
<
class
Conjugate ,
class
Cand
id
ateClass >
92
typename
ChosenConjugateList< Conjugate , CandidateClass >::const_iterator
ChosenConjugateList< Conjugate , CandidateClass >::particle_begin
()
const
93
{
94
// Need to cast to 'const' to get the right function call
95
return
( (*(
const
LabeledParticleList< Conjugate , CandidateClass >
*)(m_list.pointer())).begin() ) ;
96
}
97
98
template
<
class
Conjugate ,
class
Cand
id
ateClass >
99
typename
ChosenConjugateList< Conjugate , CandidateClass >::const_iterator
ChosenConjugateList< Conjugate , CandidateClass >::particle_end
()
const
100
{
101
// Need to cast to 'const' to get the right function call
102
return
( (*(
const
LabeledParticleList< Conjugate , CandidateClass >
*)(m_list.pointer())).end() ) ;
103
}
104
105
template
<
class
Conjugate ,
class
Cand
id
ateClass >
106
typename
ChosenConjugateList< Conjugate , CandidateClass >::const_partial_iterator
ChosenConjugateList< Conjugate , CandidateClass >::partial_particle_begin
()
const
107
{
108
// Need to cast to 'const' to get the right function call
109
return
( (*(
const
LabeledParticleList< Conjugate , CandidateClass >
*)(m_list.pointer())).begin( this->label() ) ) ;
110
}
111
112
template
<
class
Conjugate ,
class
Cand
id
ateClass >
113
typename
ChosenConjugateList< Conjugate , CandidateClass >::const_partial_iterator
ChosenConjugateList< Conjugate , CandidateClass >::partial_particle_end
()
const
114
{
115
// Need to cast to 'const' to get the right function call
116
return
( (*(
const
LabeledParticleList< Conjugate , CandidateClass >
*)(m_list.pointer())).end( this->label() ) ) ;
117
}
118
119
120
template
<
class
Conjugate ,
class
Cand
id
ateClass >
121
const
LabeledCandidateList< CandidateClass >
&
ChosenConjugateList< Conjugate , CandidateClass >::labeledCandidateList
()
const
122
{
123
return
( *m_list ) ;
124
}
125
126
//
127
// static member functions
128
//
129
}
130
#endif
/* DCHAIN_CHOSENCONJUGATELIST_CC */
ChosenConjugateList.h
DCAnalysisFunction.h
DCConjugateFunction.h
LabeledParticleList.h
LabeledParticle.h
MuteWholeItr.h
PartialItr.h
WholeItr.h
dchain::ChosenConjugateList
Definition
ChosenConjugateList.h:51
dchain::ChosenConjugateList::partial_particle_end
const_partial_iterator partial_particle_end() const
Definition
ChosenConjugateList.cc:113
dchain::ChosenConjugateList::~ChosenConjugateList
virtual ~ChosenConjugateList()
Definition
ChosenConjugateList.cc:63
dchain::ChosenConjugateList::particle_begin
iterator particle_begin()
Definition
ChosenConjugateList.cc:71
dchain::ChosenConjugateList::labeledCandidateList
virtual LabeledCandidateList< CandidateClass > & labeledCandidateList()
Definition
ChosenConjugateList.cc:83
dchain::ChosenConjugateList::particle_end
iterator particle_end()
Definition
ChosenConjugateList.cc:77
dchain::ChosenConjugateList::partial_particle_begin
const_partial_iterator partial_particle_begin() const
Definition
ChosenConjugateList.cc:106
dchain::ConjugateList
Definition
ConjugateList.h:87
dchain::LabeledCandidateList
Definition
LabeledCandidateList.h:94
dchain::LabeledParticleList
Definition
LabeledParticleList.h:113
dchain::MuteWholeItr
Definition
NeutralVisibleList.h:88
dchain::PartialItr
Definition
NeutralVisibleList.h:90
dchain::WholeItr
Definition
NeutralVisibleList.h:89
conjugation.h
dchain::conjugation::Label
Label
Definition
conjugation.h:39
dchain
Definition
children.h:16
7.1.2
Event
DecayChain
DecayChain-00-04-01
DecayChain
List
Template
ChosenConjugateList.cc
Generated by
1.12.0