FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MyWriteoutBuffer.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  ********************************************************************************/
8 /* MyWriteoutBuffer.h
9  *
10  * Created on: Mar 7, 2012
11  * Author: uhlig
12  */
13 
14 #ifndef MYWRITEOUTBUFFER_H_
15 #define MYWRITEOUTBUFFER_H_
16 
17 #include "FairWriteoutBuffer.h"
18 #include "MyDataClass.h"
19 
20 class FairTimeStamp;
21 
23 {
24 
25  public:
27  MyWriteoutBuffer(TString branchName, TString folderName, Bool_t persistance);
29 
30  virtual ~MyWriteoutBuffer();
31 
32  virtual std::vector<std::pair<double, MyDataClass*>> Modify(std::pair<double, MyDataClass*> oldData,
33  std::pair<double, MyDataClass*> newData);
34 
35  virtual double FindTimeForData(FairTimeStamp* data);
36  virtual void FillDataMap(FairTimeStamp* data, double activeTime);
37  virtual void EraseDataFromDataMap(FairTimeStamp* data);
38 
39  protected:
40  std::map<MyDataClass, double> fData_map;
41 
43 };
44 
45 #endif /* MYWRITEOUTBUFFER_H_ */
virtual void FillDataMap(FairTimeStamp *data, double activeTime)
add a new element in the search buffer
virtual std::vector< std::pair< double, MyDataClass * > > Modify(std::pair< double, MyDataClass * > oldData, std::pair< double, MyDataClass * > newData)
ClassDef(MyWriteoutBuffer, 1)
void AddNewDataToTClonesArray(FairTimeStamp *)
virtual void EraseDataFromDataMap(FairTimeStamp *data)
delete the element from the search buffer (see PndSdsDigiPixelWriteoutBuffer)
virtual double FindTimeForData(FairTimeStamp *data)
std::map< MyDataClass, double > fData_map
A container class to store digi data during events.
virtual ~MyWriteoutBuffer()