PandaRoot
PndFtsHitWriteoutBuffer.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 /*
14  * PndFtsHitWriteoutBuffer.h
15  *
16  * Created on: May 10, 2011
17  * Author: stockman
18  */
19 
20 #ifndef PndFtsHitWRITEOUTBUFFER_H_
21 #define PndFtsHitWRITEOUTBUFFER_H_
22 
23 #include "FairWriteoutBuffer.h"
24 #include "PndFtsHit.h"
25 
26 class FairTimeStamp;
27 
28 class PndFtsHitWriteoutBuffer : public FairWriteoutBuffer {
29 
30  public:
32  PndFtsHitWriteoutBuffer(TString branchName, TString folderName, Bool_t persistance);
33  void AddNewDataToTClonesArray(FairTimeStamp *);
34 
35  virtual ~PndFtsHitWriteoutBuffer();
36 
37  virtual double FindTimeForData(FairTimeStamp *data);
38  virtual void FillDataMap(FairTimeStamp *data, double activeTime);
39  virtual void EraseDataFromDataMap(FairTimeStamp *data);
40 
41  protected:
42  std::map<PndFtsHit, double> fData_map;
43 
45 };
46 
47 #endif /* PndFtsHitWRITEOUTBUFFER_H_ */
ClassDef(PndFtsHitWriteoutBuffer, 1)
virtual void FillDataMap(FairTimeStamp *data, double activeTime)
virtual double FindTimeForData(FairTimeStamp *data)
std::map< PndFtsHit, double > fData_map
virtual void EraseDataFromDataMap(FairTimeStamp *data)
void AddNewDataToTClonesArray(FairTimeStamp *)
virtual ~PndFtsHitWriteoutBuffer()