FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairMCSplitEventHeader.cxx
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  ********************************************************************************/
8 
10 
11 #include "FairRootManager.h"
12 
15  , fNofChunks(1)
16  , fChunkStart(0)
17 {}
18 
19 FairMCSplitEventHeader::FairMCSplitEventHeader(UInt_t runID, UInt_t eventID, UInt_t nofChunks, UInt_t chunkStart)
20  : FairMCEventHeader(runID)
21  , fNofChunks(nofChunks)
22  , fChunkStart(chunkStart)
23 {
24  SetEventID(eventID);
25 }
26 
28 
30 {
31  // Dot at the end of the name is needed for splitting!!
32  FairRootManager::Instance()->Register("MCEventHeader.", "Event", this, kTRUE);
33 }
34 
static FairRootManager * Instance()
ClassImp(FairEventBuilder)
void Register(const char *name, const char *Foldername, TNamed *obj, Bool_t toFile)
void SetEventID(UInt_t eventId)