BOSS 7.0.4
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//------------------------------------------------------------------------
22
24
25EvtModelAlias::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
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
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
64std::vector<std::string> EvtModelAlias::getArgList() {
65
66 return _modelArgs;
67}
std::vector< std::string > getArgList()
EvtModelAlias operator=(const EvtModelAlias &copyMe)