FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairTestDetectorDigiWriteoutBuffer.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 /*
9  * FairTestDetectorDigiWriteoutBuffer.h
10  *
11  * Created on: May 10, 2011
12  * Author: stockman
13  */
14 
15 #ifndef FairTestDetectorDigiWriteoutBuffer_H_
16 #define FairTestDetectorDigiWriteoutBuffer_H_
17 
18 #include "FairTestDetectorDigi.h" // for FairTestDetectorDigi
19 #include "FairWriteoutBuffer.h" // for FairWriteoutBuffer
20 
21 #include <Rtypes.h>
22 #include <TString.h> // for TString
23 #include <map> // for map
24 
25 class FairTimeStamp;
26 
28 {
29 
30  public:
32  FairTestDetectorDigiWriteoutBuffer(TString branchName, TString folderName, Bool_t persistance);
33 
35 
37 
38  virtual double FindTimeForData(FairTimeStamp* data);
39  virtual void FillDataMap(FairTimeStamp* data, double activeTime);
40  virtual void EraseDataFromDataMap(FairTimeStamp* data);
41 
42  protected:
43  std::map<FairTestDetectorDigi, double> fData_map;
44 
46 };
47 
48 #endif /* FairTestDetectorDigiWriteoutBuffer_H_ */
ClassDef(FairTestDetectorDigiWriteoutBuffer, 1)
virtual double FindTimeForData(FairTimeStamp *data)
virtual void FillDataMap(FairTimeStamp *data, double activeTime)
add a new element in the search buffer
std::map< FairTestDetectorDigi, double > fData_map
virtual void EraseDataFromDataMap(FairTimeStamp *data)
delete the element from the search buffer (see PndSdsDigiPixelWriteoutBuffer)
A container class to store digi data during events.