#include <PndMQFileSinkHits.h>
Definition at line 67 of file PndMQFileSinkHits.h.
◆ PndMQFileSinkHits()
PndMQFileSinkHits::PndMQFileSinkHits |
( |
std::string |
outputFileName = "FilesSinkHits.root" | ) |
|
|
inline |
Definition at line 69 of file PndMQFileSinkHits.h.
70 : fOutFile(
nullptr), fTree(
nullptr), fOutput(
nullptr), fHitVector(), fHasBoostSerialization(
false), fOutputFileName(outputFileName), fBranchNameList(0)
72 gSystem->ResetSignal(kSigInterrupt);
73 gSystem->ResetSignal(kSigTermination);
76 using namespace baseMQ::tools::resolve;
78 if (is_same<boost::archive::binary_iarchive, boost::archive::binary_iarchive>::value || is_same<boost::archive::binary_iarchive, boost::archive::text_iarchive>::value) {
79 if (has_BoostSerialization<
PndSdsHit,
void(boost::archive::binary_iarchive &,
const unsigned int)>::value == 1) {
80 fHasBoostSerialization =
true;
◆ ~PndMQFileSinkHits()
virtual PndMQFileSinkHits::~PndMQFileSinkHits |
( |
| ) |
|
|
inlinevirtual |
Definition at line 85 of file PndMQFileSinkHits.h.
87 fBranchNameList->Write(
"BranchList", TObject::kSingleKey);
90 if (fHitVector.size() > 0) {
◆ InitOutputFile()
virtual void PndMQFileSinkHits::InitOutputFile |
( |
TString |
defaultId = "100" | ) |
|
|
inlinevirtual |
Definition at line 97 of file PndMQFileSinkHits.h.
99 fOutput =
new TClonesArray(
"PndSdsHit");
101 std::stringstream ss;
103 ss << fOutputFileName.c_str();
105 fOutFile =
new TFile(ss.str().c_str(),
"recreate");
106 fTree =
new TTree(
"pndsim",
"Test output");
107 fTree->Branch(
"Output",
"TClonesArray", &fOutput, 64000, 99);
108 fBranchNameList =
new TList();
109 fBranchNameList->AddLast(
new TObjString(
"Output"));
◆ Run()
virtual void PndMQFileSinkHits::Run |
( |
| ) |
|
|
protectedvirtual |
◆ serialize()
template<class Archive >
void PndMQFileSinkHits::serialize |
( |
Archive & |
ar, |
|
|
const unsigned int |
version |
|
) |
| |
|
inline |
◆ SetFileName()
virtual void PndMQFileSinkHits::SetFileName |
( |
std::string |
fileName | ) |
|
|
inlinevirtual |
◆ boost::serialization::access
friend class boost::serialization::access |
|
friend |
The documentation for this class was generated from the following file: