2 * AliEMCALConfiguration.h
4 * Created on: 06.11.2014
8 #ifndef _ALIEMCALCONFIGURATION_H_
9 #define _ALIEMCALCONFIGURATION_H_
19 class AliEMCALConfiguration : public TNamed {
21 AliEMCALConfiguration(const char *name);
22 virtual ~AliEMCALConfiguration();
24 void AddParam(const char *name, AliJSONValue *value);
25 void AddConfiguration(AliEMCALConfiguration * conf);
26 void Build(const char * jsonstring);
27 void Build(TList *entries);
28 std::string CreateJSONString() const;
30 Bool_t HasKey(const char *key) const { return GetValue(key) != NULL; }
31 AliJSONValue *GetValue(const char *key) const ;
32 void Print(Option_t *) const;
38 AliEMCALConfiguration(const AliEMCALConfiguration &ref);
39 AliEMCALConfiguration &operator=(const AliEMCALConfiguration &ref);
41 ClassDef(AliEMCALConfiguration, 1);
44 std::ostream &operator<<(std::ostream &, const AliEMCALConfiguration &);
46 #endif /* _ALIEMCALCONFIGURATION_H_ */