LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
ICVNZlibMaker.h
Go to the documentation of this file.
1 // \file ICVNZlibMaker_module.cc
3 // \brief Analyzer module for creating CVN gzip file objects
4 // \author Jeremy Hewes - jhewes15@fnal.gov
5 // Saul Alonso-Monsalve - saul.alonso.monsalve@cern.ch
6 // - wrote the zlib code used in this module
8 #ifndef LCVN_ICVNZLIBMAKER_H
9 #define LCVN_ICVNZLIBMAKER_H
10 
11 // C/C++ includes
12 #include <cstdlib>
13 #include <iostream>
14 
18 #include "art_root_io/TFileDirectory.h"
19 #include "boost/filesystem.hpp"
20 
21 // Framework includes
31 
32 // Data products
37 // #include "dunereco/FDSensOpt/FDSensOptData/EnergyRecoOutput.h"
38 
39 // CVN includes
45 
46 // Compression
47 #include "math.h"
48 #include "zlib.h"
49 
50 #include "TH1.h"
51 
52 namespace lcvn {
53 
54  class ICVNZlibMaker : public art::EDAnalyzer {
55  public:
56  explicit ICVNZlibMaker(fhicl::ParameterSet const& pset);
58 
59  void beginJob() override;
60  void analyze(const art::Event& evt) override {}
61  void reconfigure(const fhicl::ParameterSet& pset);
62 
63  protected:
64  std::string fOutputDir;
65  std::string fPixelMapInput;
66  bool fSetLog;
67  std::vector<bool> fReverseViews;
68  unsigned int fPlaneLimit;
69  unsigned int fTDCLimit;
70 
71  std::string out_dir;
73 
74  template <class T>
75  void write_files(LArTrainingData<T> td, std::string evtid) = delete;
76  };
77 }
78 #endif
unsigned int fTDCLimit
Definition: ICVNZlibMaker.h:69
std::vector< bool > fReverseViews
Definition: ICVNZlibMaker.h:67
Class containing some utility functions for all things CVN.
Definition: CVNImageUtils.h:23
void analyze(const art::Event &evt) override
Definition: ICVNZlibMaker.h:60
std::string out_dir
Definition: ICVNZlibMaker.h:71
Utility class for truth labels.
PixelMap for CVN.
object containing MC flux information
void reconfigure(const fhicl::ParameterSet &pset)
std::string fPixelMapInput
Definition: ICVNZlibMaker.h:65
unsigned int fPlaneLimit
Definition: ICVNZlibMaker.h:68
Utilities for producing images for the CVN.
CVNImageUtils fImage
Definition: ICVNZlibMaker.h:72
void write_files(LArTrainingData< T > td, std::string evtid)=delete
The TrainingData objects contains a PixelMap and the output class type, and any other bit that goes i...
std::string fOutputDir
Definition: ICVNZlibMaker.h:64
ICVNZlibMaker(fhicl::ParameterSet const &pset)
TCEvent evt
Definition: DataStructs.cxx:8
void beginJob() override