Celeritas  0.5.0-86+4a8eea4
Macros | Functions
RootStepWriter.cc File Reference
#include "RootStepWriter.hh"
#include <algorithm>
#include <cstring>
#include <TBranch.h>
#include <TFile.h>
#include <TTree.h>
#include "corecel/Assert.hh"
#include "celeritas/ext/RootFileManager.hh"
#include "celeritas/phys/ParticleParams.hh"

Macros

#define RSW_STORE(ATTR, GETTER)
 
#define RSW_CREATE_BRANCH(ATTR, BRANCH_NAME)
 

Functions

RootStepWriter::WriteFilter celeritas::make_write_filter (SimpleRootFilterInput const &inp)
 

Macro Definition Documentation

◆ RSW_CREATE_BRANCH

#define RSW_CREATE_BRANCH (   ATTR,
  BRANCH_NAME 
)
Value:
do \
{ \
if (this->selection_.ATTR) \
{ \
this->tstep_tree_->Branch(BRANCH_NAME, &tstep_.ATTR); \
} \
} while (0)

◆ RSW_STORE

#define RSW_STORE (   ATTR,
  GETTER 
)
Value:
do \
{ \
if (selection_.ATTR) \
{ \
copy_if_selected(state.steps.data.ATTR[tid] GETTER, tstep_.ATTR); \
} \
} while (0)