eventAnalysis  7.0-49-g0ac7482
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
TTagsModule.hxx
Go to the documentation of this file.
1 ///
2 /// For questions or suggestions about this module please contact the
3 /// current responsible and CC in the eventAnalysis package manager.
4 ///
5 /// 23-May-2014: Current responsible for this module is,
6 /// Luke Pickering (lp208 [*a*t*] ic.ac.uk)
7 
8 #ifndef TTagsModule_hxx_seen
9 #define TTagsModule_hxx_seen
10 
11 #include <TNamed.h>
12 #include <TRef.h>
13 #include <TTree.h>
14 #include <TFieldManager.hxx>
15 #include <TND280Event.hxx>
16 #include <TND280Tags.hxx>
17 #include <string>
18 #include <map>
19 #include <vector>
21 
22 namespace ND {
23 class TTagsModule;
24 };
25 
26 /// An analysis module which stores the contents of the tags part of oaEvent
28  public:
29  TTagsModule(const char *name = "Tags",
30  const char *title = "Tags Module");
31 
32  virtual ~TTagsModule();
33 
34  virtual Bool_t IsEnabledByDefault() const { return kTRUE; }
35 
36  void SayAvailableOpts(std::string indent = "") {
37  std::cout << indent
38  << "None"
39  << std::endl;
40  }
41 
42 
43  virtual Bool_t ProcessFirstEvent(ND::TND280Event &);
44  Bool_t Configure(std::string &);
45 
46  protected:
47  virtual void InitializeBranches();
48  virtual bool FillTree(ND::TND280Event &);
49 
50  public:
51  //*******************Tree Entries********************
52  ///\short vector of maps containing key value pairs from the /tags space.
53  std::vector< ND::TND280Tags::tagsMap > fTags;
54  ///\short vector of maps containing key value pairs from the /tags/jobs space.
55  std::vector< std::map<string,string> > fJobs;
56 
57 
58  private:
59 
60 };
61 #endif
virtual Bool_t ProcessFirstEvent(ND::TND280Event &)
Is called after the first event is loaded in.
Definition: TTagsModule.cxx:72
TTagsModule(const char *name="Tags", const char *title="Tags Module")
For questions or suggestions about this module please contact the current responsible and CC in the e...
Definition: TTagsModule.cxx:13
virtual ~TTagsModule()
Definition: TTagsModule.cxx:25
virtual Bool_t IsEnabledByDefault() const
Is the module is enabled by default.
Definition: TTagsModule.hxx:34
virtual bool FillTree(ND::TND280Event &)
Fill all the stuff that goes in the output tree.
Definition: TTagsModule.cxx:36
std::vector< std::map< string, string > > fJobs
vector of maps containing key value pairs from the /tags/jobs space.
Definition: TTagsModule.hxx:55
Bool_t Configure(std::string &)
A function that allows the module to be configured from an external class without any dependencies...
Definition: TTagsModule.cxx:26
std::vector< ND::TND280Tags::tagsMap > fTags
vector of maps containing key value pairs from the /tags space.
Definition: TTagsModule.hxx:53
A base class for analysis output modules which contain event header information.
void SayAvailableOpts(std::string indent="")
Subclasses should override this to let a user know what options are available.
Definition: TTagsModule.hxx:36
An analysis module which stores the contents of the tags part of oaEvent.
Definition: TTagsModule.hxx:27
virtual void InitializeBranches()
Initialize Branches. Don&#39;t do anything else in this function.
Definition: TTagsModule.cxx:31

Package Summary
Package Name: eventAnalysis
Package Version: 7.0-49-g0ac7482
Package Manager:

Generated on Mon Mar 25 2024 14:43:59 for eventAnalysis by doxygen 1.8.5