StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjTowerEnergyListVariation.h
1 // -*- mode: c++;-*-
2 // $Id: StjTowerEnergyListVariation.h,v 1.1 2008/11/27 07:35:32 tai Exp $
3 // Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
4 #ifndef STJTOWERENERGYLISTVARIATION_H
5 #define STJTOWERENERGYLISTVARIATION_H
6 
7 #include <TObject.h>
8 
9 #include "StjTowerEnergyList.h"
10 #include "StjTowerEnergyVariation.h"
11 
12 #include <vector>
13 
14 class StjTowerEnergyListVariation : public TObject {
15 
16 public:
18  virtual ~StjTowerEnergyListVariation() { }
19 
20  StjTowerEnergyList operator()(const StjTowerEnergyList& energyList);
21 
22  void addVariation(StjTowerEnergyVariation* var) {
23  _varList.push_back(var);
24  }
25 
26  typedef std::vector<StjTowerEnergyVariation*> VarList;
27  VarList getVariationList() { return _varList; }
28 
29 private:
30 
31  StjTowerEnergy vary(const StjTowerEnergy& deposit);
32 
33  VarList _varList;
34 
35  ClassDef(StjTowerEnergyListVariation, 1)
36 
37 };
38 
39 #endif // STJTOWERENERGYLISTVARIATION_H