FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairMCSplitEventHeader.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
10 #ifndef FAIRMCSPLITEVENTHEADER_H
11 #define FAIRMCSPLITEVENTHEADER_H 1
12 
13 #include "FairMCEventHeader.h"
14 
15 #include <Rtypes.h>
16 
18 {
19  public:
21  FairMCSplitEventHeader(UInt_t runID, UInt_t eventID, UInt_t nofChunks, UInt_t chunkStart);
22 
23  virtual ~FairMCSplitEventHeader();
24 
25  void SetRECC(UInt_t i1, UInt_t i2, UInt_t i3, UInt_t i4)
26  {
27  SetRunID(i1);
28  SetEventID(i2);
29  SetNofChunks(i3);
30  SetChunkStart(i4);
31  }
32  void SetNofChunks(UInt_t ti) { fNofChunks = ti; }
33  void SetChunkStart(UInt_t ti) { fChunkStart = ti; }
34 
35  UInt_t GetNofChunks() { return fNofChunks; }
36  UInt_t GetChunkStart() { return fChunkStart; }
37 
38  virtual void Register();
39 
40  protected:
41  UInt_t fNofChunks;
42  UInt_t fChunkStart;
43 
45 };
46 
47 #endif /* FAIRMCSPLITEVENTHEADER_H_ */
ClassDef(FairMCSplitEventHeader, 1)
void SetRunID(UInt_t runId)
void SetEventID(UInt_t eventId)
void SetRECC(UInt_t i1, UInt_t i2, UInt_t i3, UInt_t i4)