Line data Source code
1 : #ifndef ALIGENTOYEVENTHEADER_H
2 : #define ALIGENTOYEVENTHEADER_H
3 :
4 : /* Copyright(c) 1998-2016, ALICE Experiment at CERN, All rights reserved. *
5 : * See cxx source for full Copyright notice */
6 :
7 : #include "AliGenEventHeader.h"
8 :
9 : class AliGenToyEventHeader : public AliGenEventHeader
10 : {
11 : public:
12 : AliGenToyEventHeader(const char* name = "");
13 : AliGenToyEventHeader(const AliGenToyEventHeader &rhs);
14 : virtual ~AliGenToyEventHeader();
15 :
16 : AliGenToyEventHeader &operator=(const AliGenToyEventHeader &rhs);
17 :
18 0 : void SetCentrality(Double_t cent) { fCentrality = cent; }
19 0 : void SetValue(const std::string &key, Double_t value) { fParameters[key] = value; }
20 :
21 0 : Double_t GetCentrality() const { return fCentrality; }
22 0 : Double_t GetParameter(const std::string &key) const { return fParameters.at(key); }
23 :
24 : protected:
25 : Float_t fCentrality; // centrality
26 : std::map<std::string, Float_t> fParameters; // additional parameters
27 :
28 176 : ClassDef(AliGenToyEventHeader, 0)
29 : };
30 :
31 : #endif
|