ATLAS Offline Software
UnitTestSkim.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 EVENT_LOOP_ALGS_UNIT_TEST_SKIM_H
6 #define EVENT_LOOP_ALGS_UNIT_TEST_SKIM_H
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 
21 
22 
23 
24 #include <EventLoopAlgs/Global.h>
25 
26 #include <EventLoop/Algorithm.h>
27 
28 namespace EL
29 {
30  class UnitTestSkim : public Algorithm
31  {
32  //
33  // public interface
34  //
35 
38  public:
39  void testInvariant () const;
40 
41 
45  public:
46  UnitTestSkim ();
47 
48 
49 
50  //
51  // interface inherited from Algorithm
52  //
53 
59  private:
60  virtual StatusCode changeInput (bool firstFile);
61 
62 
73  private:
74  virtual StatusCode initialize ();
75 
76 
81  private:
82  virtual StatusCode execute ();
83 
84 
85 
86  //
87  // private interface
88  //
89 
91  private:
93 
95  private:
96  Int_t el_n;
97 
99  private:
100  Int_t el_n2;
101 
103  };
104 }
105 
106 #endif
EL::UnitTestSkim::el_n2
Int_t el_n2
description: the member we write from
Definition: UnitTestSkim.h:100
EL::UnitTestSkim::testInvariant
void testInvariant() const
effects: test the invariant of this object guarantee: no-fail
Definition: UnitTestSkim.cxx:33
EL::UnitTestSkim
Definition: UnitTestSkim.h:31
Global.h
EL::NTupleSvc
Definition: NTupleSvc.h:49
EL::Algorithm
Definition: Algorithm.h:22
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Algorithm.h
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition: AlgorithmWorkerData.h:24
EL::UnitTestSkim::UnitTestSkim
UnitTestSkim()
effects: standard default constructor guarantee: strong failures: out of memory I
Definition: UnitTestSkim.cxx:41
EL::UnitTestSkim::m_skim
NTupleSvc * m_skim
description: the output algorithm we use
Definition: UnitTestSkim.h:92
EL::UnitTestSkim::execute
virtual StatusCode execute()
effects: process the next event guarantee: basic failures: algorithm dependent rationale: the virtual...
Definition: UnitTestSkim.cxx:72
EL::UnitTestSkim::changeInput
virtual StatusCode changeInput(bool firstFile)
effects: do all changes to work with a new input file, e.g.
Definition: UnitTestSkim.cxx:49
EL::UnitTestSkim::ClassDef
ClassDef(UnitTestSkim, 1)
EL::UnitTestSkim::initialize
virtual StatusCode initialize()
effects: do everything that needs to be done before running the algorithm, e.g.
Definition: UnitTestSkim.cxx:59
EL::UnitTestSkim::el_n
Int_t el_n
description: the member we read into
Definition: UnitTestSkim.h:96