AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliStorageDatabase.h
Go to the documentation of this file.
1 #ifndef AliStorageDatabase_H
2 #define AliStorageDatabase_H
3 
4 #include "AliStorageTypes.h"
5 #include "AliESDEvent.h"
6 
7 #include <string>
8 #include <vector>
9 
10 #include <TSQLServer.h>
11 
13 {
14 public:
17 
18  void InsertEvent(int runNumber,
19  int eventNumber,
20  char *system,
21  int multiplicity,
22  char *filePath,
23  ULong64_t triggerMask,
24  ULong64_t triggerMaskNext50); //more parameters of the event can be added to this method
25 
26  bool MarkEvent(struct eventStruct event);
27  bool UpdateEventPath(struct eventStruct event,const char *newPath);
28  void RemoveEvent(struct eventStruct event);
29  void RemoveEventsWithPath(std::string path);
30  std::string GetFilePath(struct eventStruct event);
31  struct eventStruct GetOldestEvent();
32  std::vector<serverListStruct> GetList(struct listRequestStruct listStruct);
33  std::vector<int> GetListOfRuns(); // returns list of run numbers stored in the database
34 
35  AliESDEvent* GetEvent(struct eventStruct event);
36  AliESDEvent* GetNextEvent(struct eventStruct event);
37  AliESDEvent* GetLastEvent();
38  AliESDEvent* GetPrevEvent(struct eventStruct event);
39  AliESDEvent* GetFirstEvent();
40 private:
41  std::string fHost;
42  std::string fPort;
43  std::string fDatabase;
44  std::string fUID;
45  std::string fPassword;
46  std::string fTable;
47 
48  TSQLServer *fServer;
49  std::string fStoragePath;
50 
53 };
54 
55 #endif
bool MarkEvent(struct eventStruct event)
AliStorageDatabase & operator=(const AliStorageDatabase &)
void InsertEvent(int runNumber, int eventNumber, char *system, int multiplicity, char *filePath, ULong64_t triggerMask, ULong64_t triggerMaskNext50)
AliESDEvent * GetFirstEvent()
AliESDEvent * GetLastEvent()
void RemoveEvent(struct eventStruct event)
std::vector< int > GetListOfRuns()
AliESDEvent * GetNextEvent(struct eventStruct event)
bool UpdateEventPath(struct eventStruct event, const char *newPath)
std::vector< serverListStruct > GetList(struct listRequestStruct listStruct)
AliESDEvent * GetEvent(struct eventStruct event)
std::string GetFilePath(struct eventStruct event)
void RemoveEventsWithPath(std::string path)
AliESDEvent * GetPrevEvent(struct eventStruct event)