]>
Commit | Line | Data |
---|---|---|
6769d914 | 1 | #ifndef ALIEVENTINFO_H |
2 | #define ALIEVENTINFO_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | ////////////////////////////////////////////////////////////////////////////// | |
7 | // Class AliEventInfo // | |
8 | // Container class for all the information related to LHCstate, run and // | |
9 | // event types, trigger mask and trigger clusters. // | |
10 | // It is used in order to provide the detector's AliRecoParam objects with// | |
11 | // the necessary information so that they can decide which instance of // | |
12 | // AliDetectorRecoParam to use in reconstruction one particular event. // | |
13 | // // | |
14 | // cvetan.cheshkov@cern.ch 12/06/2008 // | |
15 | ////////////////////////////////////////////////////////////////////////////// | |
16 | ||
17 | #include <TObject.h> | |
18 | #include <TObjString.h> | |
19 | ||
20 | class AliEventInfo : public TObject { | |
21 | ||
22 | public: | |
23 | AliEventInfo(); | |
24 | AliEventInfo(const char *lhcState, | |
25 | const char *runType, | |
26 | const char *activeDetectors); | |
27 | virtual ~AliEventInfo() {} | |
28 | ||
29 | void SetEventType(UInt_t evType) { fEventType = evType; } | |
30 | void SetTriggerClasses(const char *classes) { fTriggerClasses.SetString(classes); } | |
31 | void SetTriggerMask(ULong_t mask) { fTriggerMask = mask; } | |
32 | void SetTriggerCluster(const char *cluster) { fTriggerCluster.SetString(cluster); } | |
33 | ||
34 | virtual void Print(Option_t */*option=""*/) const { Dump(); } | |
35 | ||
36 | const char *GetLHCState() const { return fLHCState.GetString().Data(); } | |
37 | ||
38 | AliEventInfo(const AliEventInfo &evInfo); | |
39 | AliEventInfo& operator= (const AliEventInfo& evInfo); | |
40 | ||
41 | void Reset(); | |
42 | private: | |
43 | ||
44 | TObjString fLHCState; // state of the machine as provided by DCS and DAQ log-book (per run) | |
45 | TObjString fRunType; // run type accoring to ECS (per run) | |
46 | TObjString fActiveDetectors;// list of active detectors (per run) | |
47 | UInt_t fEventType; // event type as defined by DAQ (start_of_*,calibration,physics etc) (per event) | |
48 | TObjString fTriggerClasses; // list of fired trigger classes (per event) | |
49 | ULong_t fTriggerMask; // trigger mask as received from DAQ or CTP raw-data payload (per event) | |
50 | TObjString fTriggerCluster; // list of detectors that have been read out (per event) | |
51 | ||
52 | ClassDef(AliEventInfo,1) // Event info class | |
53 | }; | |
54 | ||
55 | #endif |