evtgen is hosted by Hepforge, IPPP Durham
EvtGen  2.0.0
Monte Carlo generator of particle decays, in particular the weak decays of heavy flavour particles such as B mesons.
EvtIdSet.hh
Go to the documentation of this file.
1 
2 /***********************************************************************
3 * Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
4 * *
5 * This file is part of EvtGen. *
6 * *
7 * EvtGen is free software: you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation, either version 3 of the License, or *
10 * (at your option) any later version. *
11 * *
12 * EvtGen is distributed in the hope that it will be useful, *
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15 * GNU General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU General Public License *
18 * along with EvtGen. If not, see <https://www.gnu.org/licenses/>. *
19 ***********************************************************************/
20 
21 #ifndef EVTIDSET_HH
22 #define EVTIDSET_HH
23 
24 #include "EvtGenBase/EvtId.hh"
25 #include "EvtGenBase/EvtPatches.hh"
26 
27 #include <string>
28 class EvtId;
29 
30 class EvtIdSet {
31  public:
32  //need a default constructor
33 
34  EvtIdSet( const EvtId name1 );
35  EvtIdSet( const std::string name1 );
36 
37  EvtIdSet( const EvtId name1, const EvtId name2 );
38 
39  EvtIdSet( const std::string name1, const std::string name2 );
40 
41  EvtIdSet( const EvtId name1, const EvtId name2, const EvtId name3 );
42 
43  EvtIdSet( const std::string name1, const std::string name2,
44  const std::string name3 );
45 
46  EvtIdSet( const EvtId name1, const EvtId name2, const EvtId name3,
47  const EvtId name4 );
48 
49  EvtIdSet( const std::string name1, const std::string name2,
50  const std::string name3, const std::string name4 );
51 
52  EvtIdSet( const EvtId name1, const EvtId name2, const EvtId name3,
53  const EvtId name4, const EvtId name5 );
54 
55  EvtIdSet( const std::string name1, const std::string name2,
56  const std::string name3, const std::string name4,
57  const std::string name5 );
58 
59  EvtIdSet( const EvtId name1, const EvtId name2, const EvtId name3,
60  const EvtId name4, const EvtId name5, const EvtId name6 );
61 
62  EvtIdSet( const std::string name1, const std::string name2,
63  const std::string name3, const std::string name4,
64  const std::string name5, const std::string name6 );
65 
66  EvtIdSet( const EvtId name1, const EvtId name2, const EvtId name3,
67  const EvtId name4, const EvtId name5, const EvtId name6,
68  const EvtId name7 );
69 
70  EvtIdSet( const std::string name1, const std::string name2,
71  const std::string name3, const std::string name4,
72  const std::string name5, const std::string name6,
73  const std::string name7 );
74 
75  EvtIdSet( const EvtId name1, const EvtId name2, const EvtId name3,
76  const EvtId name4, const EvtId name5, const EvtId name6,
77  const EvtId name7, const EvtId name8 );
78 
79  EvtIdSet( const std::string name1, const std::string name2,
80  const std::string name3, const std::string name4,
81  const std::string name5, const std::string name6,
82  const std::string name7, const std::string name8 );
83 
84  EvtIdSet( const EvtId name1, const EvtId name2, const EvtId name3,
85  const EvtId name4, const EvtId name5, const EvtId name6,
86  const EvtId name7, const EvtId name8, const EvtId name9 );
87 
88  EvtIdSet( const std::string name1, const std::string name2,
89  const std::string name3, const std::string name4,
90  const std::string name5, const std::string name6,
91  const std::string name7, const std::string name8,
92  const std::string name9 );
93 
94  EvtIdSet( const EvtId name1, const EvtId name2, const EvtId name3,
95  const EvtId name4, const EvtId name5, const EvtId name6,
96  const EvtId name7, const EvtId name8, const EvtId name9,
97  const EvtId name10 );
98 
99  EvtIdSet( const std::string name1, const std::string name2,
100  const std::string name3, const std::string name4,
101  const std::string name5, const std::string name6,
102  const std::string name7, const std::string name8,
103  const std::string name9, const std::string name10 );
104 
105  EvtIdSet( const EvtId name1, const EvtId name2, const EvtId name3,
106  const EvtId name4, const EvtId name5, const EvtId name6,
107  const EvtId name7, const EvtId name8, const EvtId name9,
108  const EvtId name10, const EvtId name11 );
109 
110  EvtIdSet( const std::string name1, const std::string name2,
111  const std::string name3, const std::string name4,
112  const std::string name5, const std::string name6,
113  const std::string name7, const std::string name8,
114  const std::string name9, const std::string name10,
115  const std::string name11 );
116 
117  EvtIdSet( const EvtId name1, const EvtId name2, const EvtId name3,
118  const EvtId name4, const EvtId name5, const EvtId name6,
119  const EvtId name7, const EvtId name8, const EvtId name9,
120  const EvtId name10, const EvtId name11, const EvtId name12 );
121 
122  EvtIdSet( const std::string name1, const std::string name2,
123  const std::string name3, const std::string name4,
124  const std::string name5, const std::string name6,
125  const std::string name7, const std::string name8,
126  const std::string name9, const std::string name10,
127  const std::string name11, const std::string name12 );
128 
129  ~EvtIdSet() { delete[] _list; }
130 
131  EvtIdSet( const EvtIdSet& set1 );
132  EvtIdSet( const EvtIdSet& set1, const EvtIdSet& set2 );
133 
134  int contains( const EvtId id );
135  int contains( const std::string id );
136 
137  void append( const EvtIdSet set1 );
138  int sizeOfSet() const;
139  EvtId getElem( const int i ) const;
140 
141  private:
144 };
145 
146 #endif
EvtId * _list
Definition: EvtIdSet.hh:143
void append(const EvtIdSet set1)
Definition: EvtIdSet.cpp:444
EvtId getElem(const int i) const
Definition: EvtIdSet.cpp:489
int sizeOfSet() const
Definition: EvtIdSet.cpp:484
int _numInList
Definition: EvtIdSet.hh:142
Definition: EvtId.hh:27
EvtIdSet(const EvtId name1)
Definition: EvtIdSet.cpp:29
int contains(const EvtId id)
Definition: EvtIdSet.cpp:422
~EvtIdSet()
Definition: EvtIdSet.hh:129