ATLAS Offline Software
SampleGrid.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef SAMPLE_HANDLER_SAMPLE_GRID_HH
6 #define SAMPLE_HANDLER_SAMPLE_GRID_HH
7 
8 //
9 // Distributed under the Boost Software License, Version 1.0.
10 // (See accompanying file LICENSE_1_0.txt or copy at
11 // http://www.boost.org/LICENSE_1_0.txt)
12 
13 // Please feel free to contact me (krumnack@iastate.edu) for bug
14 // reports, feature suggestions, praise and complaints.
15 
16 
17 
18 #include <SampleHandler/Global.h>
19 
20 #include <string>
21 #include <vector>
22 #include <SampleHandler/Sample.h>
23 
24 namespace SH
25 {
43  class SampleGrid : public Sample
44  {
45  //
46  // public interface
47  //
48 
53  public:
54  void testInvariant () const;
55 
56 
65  public:
67 
68 
76  public:
77  SampleGrid (const std::string& name);
78 
79 
80 
81  //
82  // inherited interface
83  //
84 
86  protected:
87  virtual std::size_t getNumFiles () const;
88 
90  protected:
91  virtual std::string getFileName (std::size_t index) const;
92 
94  protected:
95  virtual SamplePtr doMakeLocal () const;
96 
98  protected:
99  virtual std::vector<std::string> doMakeFileList () const;
100 
101 
102 
103  //
104  // private interface
105  //
106 
108  };
109 }
110 
111 #endif
SH::SampleGrid::getNumFiles
virtual std::size_t getNumFiles() const
the number of files in the sample
SH::SampleGrid::ClassDef
ClassDef(SampleGrid, 1)
SH::SampleGrid::SampleGrid
SampleGrid(const std::string &name)
standard constructor
index
Definition: index.py:1
SH::SampleGrid::doMakeLocal
virtual SamplePtr doMakeLocal() const
Make this a local sample, i.e.
SH::SampleGrid
This class implements a Sample located on the grid.
Definition: SampleGrid.h:44
SH::SampleGrid::doMakeFileList
virtual std::vector< std::string > doMakeFileList() const
make a list of all files, prestaging them if necessary
SH::Sample::name
const std::string & name() const
the name of the sample we are using
SH::Sample
a base class that manages a set of files belonging to a particular data set and the associated meta-d...
Definition: Sample.h:54
SH::SamplePtr
A smart pointer class that holds a single Sample object.
Definition: SamplePtr.h:35
SH::SampleGrid::testInvariant
void testInvariant() const
test the invariant of this object
SH::SampleGrid::SampleGrid
SampleGrid()
standard constructor
SH
This module provides a lot of global definitions, forward declarations and includes that are used by ...
Definition: PrunDriver.h:15
Global.h
Sample.h
SH::SampleGrid::getFileName
virtual std::string getFileName(std::size_t index) const
the name of the file with the given index