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

Go to the source code of this file.

Functions

 ClassImp (SH::SampleMeta) namespace SH
 

Function Documentation

◆ ClassImp()

ClassImp ( SH::SampleMeta  )

Definition at line 28 of file SampleMeta.cxx.

31 {
32  void SampleMeta ::
33  testInvariant () const
34  {
35  }
36 
37 
38 
39  SampleMeta ::
40  SampleMeta ()
41  : Sample ("unnamed")
42  {
43  RCU_NEW_INVARIANT (this);
44  }
45 
46 
47 
48  SampleMeta ::
49  SampleMeta (const std::string& name)
50  : Sample (name)
51  {
52  RCU_NEW_INVARIANT (this);
53  }
54 
55 
56 
57  std::size_t SampleMeta ::
58  getNumFiles () const
59  {
60  RCU_READ_INVARIANT (this);
61  // rationale: this is just so that print() will work
62  return 0;
63  }
64 
65 
66 
67  std::string SampleMeta ::
68  getFileName (std::size_t /*index*/) const
69  {
70  RCU_READ_INVARIANT (this);
71  RCU_THROW_MSG ("fileName() should not be called on SampleMeta");
72  return ""; //compiler dummy
73  }
74 
75 
76 
77  SamplePtr SampleMeta ::
78  doMakeLocal () const
79  {
80  RCU_READ_INVARIANT (this);
81  RCU_THROW_MSG ("makeLocal() should not be called on SampleMeta");
82  return 0; //compiler dummy
83  }
84 
85 
86 
87  std::vector<std::string> SampleMeta ::
88  doMakeFileList () const
89  {
90  RCU_READ_INVARIANT (this);
91 
92  std::vector<std::string> result;
93  return result;
94  }
95 }
get_generator_info.result
result
Definition: get_generator_info.py:21
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
python.TrfUtils.getFileName
def getFileName(name, sep='#')
Definition: TrfUtils.py:45
RCU_THROW_MSG
#define RCU_THROW_MSG(message)
Definition: PrintMsg.h:58
RCU_READ_INVARIANT
#define RCU_READ_INVARIANT(x)
Definition: Assert.h:229
RCU_NEW_INVARIANT
#define RCU_NEW_INVARIANT(x)
Definition: Assert.h:233