HerdSoftware  0.4.0
HerdRootPersistenceService.h
Go to the documentation of this file.
1 /*
2  * HerdRootPersistenceService.h
3  *
4  * Created on: 24 Jul 2020
5  * Author: Nicola Mori
6  */
7 
8 #ifndef HERDROOTPERSISTENCESERVICE_H_
9 #define HERDROOTPERSISTENCESERVICE_H_
10 
11 // EventAnalysis headers
12 #include "persistence/RootPersistenceService.h"
13 namespace Herd {
14 
21 class HerdRootPersistenceService : public EA::RootPersistenceService {
22 public:
23  using RootPersistenceService::RootPersistenceService;
24 
34  bool BookGlobalObject(const std::string &objName, const std::string &objStore) override;
35 
37  bool EndOfProcessing() override;
38 
48  std::unique_ptr<PersistenceService> Copy(const std::string &name, const std::string &output) override;
49 };
50 
51 } // namespace Herd
52 
53 #endif /* HERDROOTPERSISTENCESERVICE_H_ */
Herd::HerdRootPersistenceService::EndOfProcessing
bool EndOfProcessing() override
Saves the Herd::FileHeader and then calls EA::RootPersistenceService::EndOfProcessing().
Definition: HerdRootPersistenceService.cpp:29
Herd
CssGeoParams.h CssGeoParams class declaration.
Definition: CaloPDCalibrationAlgo.h:22
Herd::HerdRootPersistenceService::BookGlobalObject
bool BookGlobalObject(const std::string &objName, const std::string &objStore) override
Prevent booking an object with the same name used for file header object.
Definition: HerdRootPersistenceService.cpp:20
Herd::HerdRootPersistenceService::Copy
std::unique_ptr< PersistenceService > Copy(const std::string &name, const std::string &output) override
Creates a copy of the persistence service.
Definition: HerdRootPersistenceService.cpp:38
Herd::HerdRootPersistenceService
Persistence service adding HERD-specific behavior to RootPersistenceService.
Definition: HerdRootPersistenceService.h:21