CGEM BOSS
6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtModelAlias.cc
Go to the documentation of this file.
1
//--------------------------------------------------------------------------
2
//
3
// Environment:
4
// This software is part of the EvtGen package developed jointly
5
// for the BaBar and CLEO collaborations. If you use all or part
6
// of it, please give an appropriate acknowledgement.
7
//
8
// Copyright Information: See EvtGen/COPYRIGHT
9
// Copyright (C) 2002 Caltech, LLNL
10
//
11
// Module: EvtGen/EvtModelAlias.cc
12
//
13
// Description:Class to keep track of model aliases
14
// read in from the decay table
15
//
16
// Modification history:
17
//
18
// Lange January 19, 2002 Module created
19
//
20
//------------------------------------------------------------------------
21
#include "
EvtGenBase/EvtPatches.hh
"
22
23
#include "
EvtGenBase/EvtModelAlias.hh
"
24
25
EvtModelAlias::EvtModelAlias
(std::string alias, std::string model, std::vector<std::string> args):
26
27
_aliasName(alias)
28
,_model(model)
29
30
{
31
32
if
( args.size() > 0 ) {
33
int i;
34
for ( i=0; i<args.size(); i++) {
35
std::string tempStr=args[i];
36
_modelArgs.push_back(tempStr);
37
}
38
}
39
}
40
41
EvtModelAlias::EvtModelAlias
(
const
EvtModelAlias
©Me) :
42
43
_aliasName(copyMe._aliasName)
44
,_model(copyMe._model)
45
{
46
if
( copyMe._modelArgs.size() > 0 ) {
47
int i;
48
for ( i=0; i<copyMe._modelArgs.size(); i++) _modelArgs.push_back(copyMe._modelArgs[i]);
49
}
50
}
51
52
EvtModelAlias
EvtModelAlias::operator=
(
const
EvtModelAlias
©Me) {
53
54
_aliasName=copyMe._aliasName;
55
_model=copyMe._model;
56
57
if
( copyMe._modelArgs.size() > 0 ) {
58
int
i;
59
for
( i=0; i<copyMe._modelArgs.size(); i++) _modelArgs.push_back(copyMe._modelArgs[i]);
60
}
61
return
*
this
;
62
}
63
64
std::vector<std::string>
EvtModelAlias::getArgList
() {
65
66
return
_modelArgs;
67
}
EvtModelAlias.hh
EvtPatches.hh
EvtModelAlias
Definition
EvtModelAlias.hh:28
EvtModelAlias::getArgList
std::vector< std::string > getArgList()
Definition
EvtModelAlias.cc:64
EvtModelAlias::EvtModelAlias
EvtModelAlias()
Definition
EvtModelAlias.hh:32
EvtModelAlias::operator=
EvtModelAlias operator=(const EvtModelAlias ©Me)
Definition
EvtModelAlias.cc:52
6.6.5.h
Generator
BesEvtGen
BesEvtGen-00-01-96-slc6tag
src
EvtGen
EvtGenBase
EvtModelAlias.cc
Generated by
1.12.0