BOSS
7.0.8
BESIII Offline Software System
Loading...
Searching...
No Matches
LabeledCandidateList.cc
Go to the documentation of this file.
1
#ifndef DCHAIN_LABELEDCANDIDATELIST_CC
2
#define DCHAIN_LABELEDCANDIDATELIST_CC
3
// -*- C++ -*-
4
//
5
// Package: DChain
6
// Module: LabeledCandidateList
7
//
8
// Description: Container of `primary'/`conjugate' subclasses of Candidate
9
//
10
// Implimentation:
11
// <Notes on implimentation>
12
//
13
// Author: Simon Patton
14
// Created: Wed Sep 11 20:56:18 EDT 1996
15
// $Id: LabeledCandidateList.cc,v 1.1.1.1 2009/03/03 06:06:56 maqm Exp $
16
//
17
// Revision history
18
//
19
// $Log: LabeledCandidateList.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:40 cdj
24
// massive class renaming, addition of [] for selection and unit tests
25
//
26
// Revision 1.1.1.1 2000/12/18 22:16:56 cdj
27
// imported DChain
28
//
29
// Revision 1.10 1998/08/21 00:51:56 sjp
30
// Modifier to no longer use typedefs
31
//
32
// Revision 1.9 1998/08/19 20:46:24 sjp
33
// Fixed comments and removed report references
34
//
35
// Revision 1.8 1997/08/28 07:00:21 sjp
36
// Modified files to handle complete templating
37
//
38
// Revision 1.7 1997/08/26 04:14:27 sjp
39
// Made Candidate handling objects into `CandidateClass' Templates
40
//
41
// Revision 1.6 1997/08/19 23:03:20 sjp
42
// Restructured package to be independent of Rock
43
//
44
// Revision 1.5 1997/08/15 21:33:47 sjp
45
// Updated to use <package>/<file>.h include structure.
46
// Updated to use bug flags specified in Experiement.h
47
//
48
// Revision 1.4 1997/01/31 20:16:27 sjp
49
// Modified to use the new `bug' include files
50
//
51
// Revision 1.3 1997/01/21 20:31:43 sjp
52
// Changed CPP flags and include because of library reorganization
53
//
54
// Revision 1.2 1997/01/19 20:28:45 sjp
55
// Changed LargeCount to Count
56
//
57
// Revision 1.1 1996/11/04 17:17:19 sjp
58
// New file for new `List' module
59
//
60
61
// system include files
62
63
// user include files
64
#include "
DecayChain/Element/LabeledCandidate.h
"
65
#include "
DecayChain/Iterator/MuteWholeCandidateItr.h
"
66
#include "
DecayChain/Iterator/WholeCandidateItr.h
"
67
#include "
DecayChain/Iterator/PartialCandidateItr.h
"
68
69
#include "
DecayChain/List/LabeledCandidateList.h
"
70
71
//
72
// constants, enums and typedefs
73
//
74
75
//
76
// static data member definitions
77
//
78
79
//
80
// constructors and destructor
81
//
82
namespace
dchain
{
83
template
<
class
Cand
id
ateClass >
84
LabeledCandidateList< CandidateClass >::LabeledCandidateList
()
85
{
86
}
87
88
// LabeledCandidateList< CandidateClass >::LabeledCandidateList( const LabeledCandidateList< CandidateClass >& )
89
// {
90
// }
91
92
template
<
class
Cand
id
ateClass >
93
LabeledCandidateList< CandidateClass >::~LabeledCandidateList
()
94
{
95
}
96
97
//
98
// assignment operators
99
//
100
// const LabeledCandidateList< CandidateClass >& LabeledCandidateList< CandidateClass >::operator=( const LabeledCandidateList< CandidateClass >& )
101
// {
102
// }
103
104
//
105
// member functions
106
//
107
108
//------ operator[] ------
109
//
110
template
<
class
Cand
id
ateClass >
111
LabeledCandidate< CandidateClass >
&
LabeledCandidateList< CandidateClass >::operator[]
(
const
int
aIndex )
112
{
113
return
( labeledCandidateClass( aIndex ) ) ;
114
}
115
116
//------ begin ------
117
//
118
template
<
class
Cand
id
ateClass >
119
typename
LabeledCandidateList< CandidateClass >::iterator
LabeledCandidateList< CandidateClass >::begin
()
120
{
121
return
(
iterator
(
this
, 0 ) ) ;
122
}
123
124
//------ end ------
125
//
126
template
<
class
Cand
id
ateClass >
127
typename
LabeledCandidateList< CandidateClass >::iterator
LabeledCandidateList< CandidateClass >::end
()
128
{
129
return
(
iterator
(
this
, size() ) ) ;
130
}
131
132
//------ erase ------
133
//
134
template
<
class
Cand
id
ateClass >
135
void
LabeledCandidateList< CandidateClass >::erase
(
iterator
aStart ,
136
iterator
aFinish )
137
{
138
erase_elements( aStart.
index
() ,
139
aFinish.
index
() ) ;
140
}
141
142
//
143
// const member functions
144
//
145
146
//------ operator[] ------
147
//
148
template
<
class
Cand
id
ateClass >
149
const
LabeledCandidate< CandidateClass >
&
LabeledCandidateList< CandidateClass >::operator[]
(
const
int
aIndex )
const
150
{
151
return
( labeledCandidateClass( aIndex ) ) ;
152
}
153
154
//------ begin ------
155
//
156
template
<
class
Cand
id
ateClass >
157
typename
LabeledCandidateList< CandidateClass >::const_iterator
LabeledCandidateList< CandidateClass >::begin
()
const
158
{
159
return
(
const_iterator
(
this
, 0 ) ) ;
160
}
161
162
//------ begin ------
163
//
164
template
<
class
Cand
id
ateClass >
165
typename
LabeledCandidateList< CandidateClass >::const_partial_iterator
LabeledCandidateList< CandidateClass >::begin
(
const
conjugation::Label
aLabel )
const
166
{
167
return
(
const_partial_iterator
(
this
, 0 , aLabel ) ) ;
168
}
169
170
//------ end ------
171
//
172
template
<
class
Cand
id
ateClass >
173
typename
LabeledCandidateList< CandidateClass >::const_iterator
LabeledCandidateList< CandidateClass >::end
()
const
174
{
175
return
(
const_iterator
(
this
, size() ) ) ;
176
}
177
178
//------ end ------
179
//
180
template
<
class
Cand
id
ateClass >
181
typename
LabeledCandidateList< CandidateClass >::const_partial_iterator
LabeledCandidateList< CandidateClass >::end
(
const
conjugation::Label
aLabel )
const
182
{
183
return
(
const_partial_iterator
(
this
, size() , aLabel ) ) ;
184
}
185
186
//
187
// static member functions
188
//
189
}
190
#endif
/* DCHAIN_LABELEDCANDIDATELIST_CC */
LabeledCandidateList.h
LabeledCandidate.h
MuteWholeCandidateItr.h
PartialCandidateItr.h
WholeCandidateItr.h
dchain::LabeledCandidateList::LabeledCandidateList
LabeledCandidateList()
Definition:
LabeledCandidateList.cc:84
dchain::LabeledCandidateList::~LabeledCandidateList
virtual ~LabeledCandidateList()
Definition:
LabeledCandidateList.cc:93
dchain::LabeledCandidateList::end
iterator end()
Definition:
LabeledCandidateList.cc:127
dchain::LabeledCandidateList::operator[]
LabeledCandidate< CandidateClass > & operator[](const int aIndex)
Definition:
LabeledCandidateList.cc:111
dchain::LabeledCandidateList::erase
void erase(iterator aStart, iterator aFinish)
Definition:
LabeledCandidateList.cc:135
dchain::LabeledCandidateList::begin
iterator begin()
Definition:
LabeledCandidateList.cc:119
dchain::LabeledCandidate
Definition:
LabeledCandidate.h:38
dchain::MuteWholeCandidateItr
Definition:
MuteWholeCandidateItr.h:44
dchain::MuteWholeCandidateItr::index
size_type index() const
Definition:
MuteWholeCandidateItr.h:135
dchain::PartialCandidateItr
Definition:
PartialCandidateItr.h:48
dchain::WholeCandidateItr
Definition:
WholeCandidateItr.h:46
dchain::conjugation::Label
Label
Definition:
conjugation.h:39
dchain
Definition:
children.h:16
source
Event
DecayChain
DecayChain-00-00-03-slc6tag
DecayChain
List
Template
LabeledCandidateList.cc
Generated by
1.9.6