~ma5dev/madanalysis5/v1.8_beta

« back to all changes in this revision

Viewing changes to madanalysis/job/job_header.py

  • Committer: Benjamin Fuks
  • Date: 2019-04-09 20:57:58 UTC
  • Revision ID: fuks@cern.ch-20190409205758-g20yagjnz59pywn2
Adding the C++ structure required for the generic tagger 

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    if main.archi_info.has_root:
41
41
        file.write('#include "SampleAnalyzer/Interfaces/root/RootMainHeaders.h"\n')
42
42
    file.write('\n')
 
43
    if main.superfastsim.tagger.rules!={}:
 
44
        file.write('#include "NewTagger.h"\n')
43
45
 
44
46
    # Namespace
45
47
    file.write('namespace MA5\n')
52
54
    file.write('  virtual bool Initialize(const MA5::Configuration& cfg,\n')
53
55
    file.write('                          const std::map<std::string,std::string>& parameters);\n')
54
56
    file.write('  virtual void Finalize(const SampleFormat& summary, const std::vector<SampleFormat>& files);\n')
55
 
    file.write('  virtual bool Execute(SampleFormat& sample, const EventFormat& event);\n\n')
56
 
    file.write(' private : \n')
 
57
    file.write('  virtual bool Execute(SampleFormat& sample, const EventFormat& event);\n')
 
58
    file.write('\n private : \n')
57
59
 
58
60
 
59
61
def WriteCore(file,main,part_list):