Fork me on GitHub

Changes between Initial Version and Version 1 of WorkBook/ModuleSystem


Ignore:
Timestamp:
Jun 20, 2012, 6:04:19 PM (12 years ago)
Author:
Pavel Demin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WorkBook/ModuleSystem

    v1 v1  
     1Delphes' module system is inspired by the 'Folders and Tasks' chapter from the ROOT Users Guide and it's based on the {{{TTask}}} and {{{TFolder}}} classes.
     2
     3http://root.cern.ch/download/doc/ROOTUsersGuideHTML/ch10.html
     4
     5All Delphes' modules consume and produce {{{TObjArrays}}} of {{{ExRootCandidates}}}. Every Delphes' module has a corresponding {{{TFolder}}} that is used to store {{{TObjArrays}}} produced by this module. Any Delphes' module can access {{{TObjArrays}}} produced by other Delphes' module using {{{ImportArray("ModuleInstanceName/arraName")}}} method.
     6
     7The contents of all Delphes' {{{TFolders}}} and {{{TObjArrays}}} is browsable:
     8
     9Additional classes {{{ExRootTask}}} and {{{ExRootModule}}} has been developed to provide frequently used services for Delphes. All Delphes' modules inherit from {{{ExRootModule}}}.
     10
     11{{{
     12#ifndef ExampleModule_h
     13#define ExampleModule_h
     14
     15#include "ExRootAnalysis/ExRootModule.h"
     16
     17#include <map>
     18#include <set>
     19#include <deque>
     20
     21class TArrayD;
     22class TObjArray;
     23class ExRootCandidate;
     24
     25class ExampleModule: public ExRootModule
     26{
     27public:
     28
     29  ExampleModule();
     30  ~ExampleModule();
     31
     32  void Init();
     33  void Process();
     34  void Finish();
     35
     36private:
     37
     38  TIterator *fItInputArray; //!
     39
     40  const TObjArray *fInputArray; //!
     41
     42  TObjArray *fOutputArray; //!
     43
     44  ClassDef(ExampleModule, 1)
     45};
     46
     47#endif
     48}}}