#include <PndMQFileSamplerHits.h>
Definition at line 54 of file PndMQFileSamplerHits.h.
◆ anonymous enum
◆ PndMQFileSamplerHits()
PndMQFileSamplerHits::PndMQFileSamplerHits |
( |
std::string |
inputFileName = "" | ) |
|
|
inline |
Definition at line 59 of file PndMQFileSamplerHits.h.
60 : fInFile(
nullptr), fTree(
nullptr), fInput(
nullptr), fHitVector(), fHasBoostSerialization(
false), fInputFileName(inputFileName), fBranchNameList(0)
62 gSystem->ResetSignal(kSigInterrupt);
63 gSystem->ResetSignal(kSigTermination);
66 using namespace baseMQ::tools::resolve;
68 if (is_same<boost::archive::binary_oarchive, boost::archive::binary_oarchive>::value) {
69 if (has_BoostSerialization<
PndSdsHit,
void(boost::archive::binary_oarchive &,
const unsigned int)>::value == 1) {
70 fHasBoostSerialization =
true;
◆ ~PndMQFileSamplerHits()
virtual PndMQFileSamplerHits::~PndMQFileSamplerHits |
( |
| ) |
|
|
inlinevirtual |
◆ GetProperty()
std::string PndMQFileSamplerHits::GetProperty |
( |
const int |
key, |
|
|
const std::string & |
default_ |
|
) |
| |
|
inline |
◆ InitInputFile()
virtual void PndMQFileSamplerHits::InitInputFile |
( |
| ) |
|
|
inlinevirtual |
Definition at line 87 of file PndMQFileSamplerHits.h.
89 fInput =
new TClonesArray(
"PndSdsHit");
91 fInFile =
new TFile(fInputFileName.c_str(),
"read");
92 fTree = (TTree *)fInFile->Get(
"pndsim");
93 fTree->SetBranchAddress(
"Output", &fInput);
◆ Run()
virtual void PndMQFileSamplerHits::Run |
( |
| ) |
|
|
protectedvirtual |
◆ serialize()
template<class Archive >
void PndMQFileSamplerHits::serialize |
( |
Archive & |
ar, |
|
|
const unsigned int |
version |
|
) |
| |
|
inline |
◆ SetFileName()
virtual void PndMQFileSamplerHits::SetFileName |
( |
std::string |
fileName | ) |
|
|
inlinevirtual |
◆ SetProperty()
void PndMQFileSamplerHits::SetProperty |
( |
const int |
key, |
|
|
const std::string & |
value |
|
) |
| |
|
inline |
◆ boost::serialization::access
friend class boost::serialization::access |
|
friend |
The documentation for this class was generated from the following file: