Fixes for bug #52499: Field polarities inconsistiency
[u/mrichter/AliRoot.git] / STEER / AliTriggerScalersRecordESD.h
CommitLineData
56413996 1#ifndef ALITRIGGERSCALERSRECORDESD_H\r
2#define ALITRIGGERSCALERSRECORDESD_H\r
3\r
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *\r
5* See cxx source for full Copyright notice */\r
6/* $Id$ */\r
7\r
8///////////////////////////////////////////////////////////////////////////////\r
9//\r
10// Class to define the ALICE Trigger Scalers Record \r
11//\r
12// Each record consists of 1 time stamp (4 words) (AliTimeStamp)\r
13// and an array with the scalers (AliTriggerScalers) for each trigger class \r
14// in partition \r
15//\r
16//////////////////////////////////////////////////////////////////////////////\r
17#include <TObjArray.h>\r
435919c9 18#include "AliTimeStamp.h"\r
56413996 19class TObjArray;\r
435919c9 20class AliTimeStamp;\r
56413996 21class AliTriggerScalersESD;\r
22\r
23class AliTriggerScalersRecordESD : public TObject {\r
24\r
25public:\r
435919c9 26 AliTriggerScalersRecordESD();\r
27 virtual ~AliTriggerScalersRecordESD() { fScalers.SetOwner(); fScalers.Delete(); } \r
28 void Reset();\r
29 void AddTriggerScalers( AliTriggerScalersESD* scaler );\r
30 void AddTriggerScalers( UChar_t classIndex, ULong64_t LOCB, ULong64_t LOCA, \r
31 ULong64_t L1CB, ULong64_t L1CA, ULong64_t L2CB, ULong64_t L2CA ); \r
32 const TObjArray* GetTriggerScalers() const { return &fScalers; }\r
33const AliTriggerScalersESD* GetTriggerScalersForClass( const Int_t classindex ) const; \r
34 const AliTimeStamp* GetTimeStamp() const {return &fTimestamp;};\r
268381f3 35 void SetTimeStamp(const AliTimeStamp *stamp){fTimestamp = *stamp;}; \r
435919c9 36 virtual void Print( const Option_t* opt ="" ) const;\r
0bf41faa 37 \r
435919c9 38 AliTriggerScalersRecordESD( const AliTriggerScalersRecordESD &rec );\r
0bf41faa 39 AliTriggerScalersRecordESD& operator=(const AliTriggerScalersRecordESD& rec); \r
56413996 40 \r
41\r
42private: \r
435919c9 43 AliTimeStamp fTimestamp; // record timestamp\r
0bf41faa 44 TObjArray fScalers; // Array of scalers (AliTriggerScalersESD) \r
435919c9 45 ClassDef( AliTriggerScalersRecordESD, 2 ) // Define a Record of Trigger Scalers \r
56413996 46};\r
47\r
48#endif\r