-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathConfigurationDescriptions.h
40 lines (30 loc) · 1.09 KB
/
ConfigurationDescriptions.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// -*- C++ -*-
#ifndef CONFIGURATIONDESCRIPTIONS_H
#define CONFIGURATIONDESCRIPTIONS_H
//class extracted from drawReducedTrees.h
//holds information about the options used to make the reducedTree
#include "TString.h"
#include <map>
class ConfigurationDescriptions {
public:
ConfigurationDescriptions();
~ConfigurationDescriptions();
//setters
void setDefault(const TString & description) {default_ = description;}
void setCorrected(const TString & description) {corrected_=description;}
void addVariation(const TString & description1, const TString & description2);
//getters
TString getDefault() const {return default_;}
TString getCorrected() const {return corrected_;}
TString at(const unsigned int i);
//utilities
TString getVariedSubstring(const TString ¤tVariation);
//kludge a way to iterate over the elements
//this fits nicely with the way we were already accessing the old data structure in drawReducedTrees.C
unsigned int size();
private:
TString default_;
TString corrected_;
std::map< TString, std::pair<TString, TString> > variationPairs;
};
#endif