SQLamarr
The stand-alone ultra-fast simulation option for the LHCb experiment
HepMC2DataLoader.h
1 // (c) Copyright 2022 CERN for the benefit of the LHCb Collaboration.
2 //
3 // This software is distributed under the terms of the GNU General Public
4 // Licence version 3 (GPL Version 3), copied verbatim in the file "LICENCE".
5 //
6 // In applying this licence, CERN does not waive the privileges and immunities
7 // granted to it by virtue of its status as an Intergovernmental Organization
8 // or submit itself to any jurisdiction.
9 
10 
11 // STL
12 #include <string>
13 #include <unordered_map>
14 #include <memory>
15 
16 // HepMC3
17 #include "HepMC3/GenParticle.h"
18 #include "HepMC3/GenEvent.h"
19 #include "HepMC3/GenVertex.h"
20 #include "HepMC3/GenParticle.h"
21 #include "HepMC3/ReaderAsciiHepMC2.h"
22 
23 #include "SQLamarr/db_functions.h"
24 #include "SQLamarr/AbsDataLoader.h"
25 
26 namespace SQLamarr
27 {
63  class HepMC2DataLoader: public AbsDataLoader
64  {
65  public:
66  using AbsDataLoader::AbsDataLoader;
67 
70  void load (
71  const std::string& file_path,
72  size_t run_number,
73  size_t evt_number
74  );
75  };
76 }
def load(self, str filename, int runNumber, int evtNumber)
Loads an ASCII file with HepMC3::ReaderAsciiHepMC2.