LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
ICVNZlibMaker.cxx
Go to the documentation of this file.
2 
3 namespace fs = boost::filesystem;
4 
5 namespace lcvn {
6 
7  ICVNZlibMaker::ICVNZlibMaker(fhicl::ParameterSet const& pset) : EDAnalyzer(pset)
8  {
9  this->reconfigure(pset);
10  }
11 
12  //......................................................................
14 
15  //......................................................................
17  {
18  fOutputDir = pset.get<std::string>("OutputDir", "");
19  fPixelMapInput = pset.get<std::string>("PixelMapInput");
20  fSetLog = pset.get<bool>("SetLog");
21  fReverseViews = pset.get<std::vector<bool>>("ReverseViews");
22 
23  fPlaneLimit = pset.get<unsigned int>("PlaneLimit");
24  fTDCLimit = pset.get<unsigned int>("TDCLimit");
25  }
26 
28  {
32 
33  if (fOutputDir != "")
35 
36  else
37  out_dir = ".";
38 
39  // Throw an error if the specified output directory doesn't exist
40  if (!fs::exists(out_dir))
42  << "Output directory " << out_dir << " does not exist!" << std::endl;
43  }
44 
45 }
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
std::string out_dir
Definition: ICVNZlibMaker.h:71
Utility class for truth labels.
void SetLogScale(bool setLog)
Set the log scale for charge.
void reconfigure(const fhicl::ParameterSet &pset)
std::string fPixelMapInput
Definition: ICVNZlibMaker.h:65
unsigned int fPlaneLimit
Definition: ICVNZlibMaker.h:68
T get(std::string const &key) const
Definition: ParameterSet.h:314
CVNImageUtils fImage
Definition: ICVNZlibMaker.h:72
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
std::string fOutputDir
Definition: ICVNZlibMaker.h:64
ICVNZlibMaker(fhicl::ParameterSet const &pset)
void beginJob() override
void SetViewReversal(bool reverseX, bool reverseY, bool reverseZ)
Function to set any views that need reversing.