ATLAS Offline Software
Functions
DiskOutput.cxx File Reference
#include <SampleHandler/DiskOutput.h>
#include <RootCoreUtils/Assert.h>
#include <SampleHandler/DiskWriter.h>
Include dependency graph for DiskOutput.cxx:

Go to the source code of this file.

Functions

 ClassImp (SH::DiskOutput) namespace SH
 

Function Documentation

◆ ClassImp()

ClassImp ( SH::DiskOutput  )
Author
Nils Krumnack

Definition at line 21 of file DiskOutput.cxx.

24 {
25  void DiskOutput ::
26  testInvariant () const
27  {
28  }
29 
30 
31 
32  DiskOutput ::
33  DiskOutput ()
34  {
35  RCU_NEW_INVARIANT (this);
36  }
37 
38 
39 
40  std::unique_ptr<DiskWriter> DiskOutput ::
41  makeWriter (const std::string& sampleName,
42  const std::string& segmentName,
43  const std::string& suffix) const
44  {
45  RCU_READ_INVARIANT (this);
46  RCU_REQUIRE (!sampleName.empty());
47  std::unique_ptr<DiskWriter> result
48  = doMakeWriter (sampleName, segmentName, suffix);
49  RCU_PROVIDE (result != nullptr);
50  return result;
51  }
52 
53 
54 
55  std::string DiskOutput ::
56  targetURL (const std::string& sampleName,
57  const std::string& segmentName,
58  const std::string& suffix) const
59  {
60  RCU_READ_INVARIANT (this);
61  RCU_REQUIRE (!sampleName.empty());
62  std::string result = getTargetURL (sampleName, segmentName, suffix);
63  RCU_PROVIDE (!result.empty());
64  return result;
65  }
66 }
get_generator_info.result
result
Definition: get_generator_info.py:21
hotSpotInTAG.suffix
string suffix
Definition: hotSpotInTAG.py:186
RCU_REQUIRE
#define RCU_REQUIRE(x)
Definition: Assert.h:208
RCU_PROVIDE
#define RCU_PROVIDE(x)
Definition: Assert.h:215
H5Utils::makeWriter
Writer< N, I > makeWriter(H5::Group &group, const std::string &name, const Consumers< I > &consumers, const std::array< hsize_t, N > &extent=internal::uniform< N >(5), hsize_t batch_size=defaults::batch_size)
makeWriter
Definition: Writer.h:534
RCU_READ_INVARIANT
#define RCU_READ_INVARIANT(x)
Definition: Assert.h:229
RCU_NEW_INVARIANT
#define RCU_NEW_INVARIANT(x)
Definition: Assert.h:233