46 int ndepos = jdat[
"x"].size();
51 m_depos.resize(ndepos,
nullptr);
52 for (
int idepo=0; idepo <
ndepos; ++idepo) {
53 m_depos[idepo] = std::make_shared<SimpleDepo>(
54 jdat[
"t"][idepo].asDouble(),
56 jdat[
"x"][idepo].asDouble(),
57 jdat[
"y"][idepo].asDouble(),
58 jdat[
"z"][idepo].asDouble()),
59 jdat[
"q"][idepo].asDouble());
80 cfg[
"filelist"] = Json::arrayValue;
std::shared_ptr< const IDepo > pointer
D3Vector< double > Point
A 3D Cartesian point in double precision.
virtual WireCell::Configuration default_configuration() const
IConfigurable.
GenericValue< UTF8<> > Value
GenericValue with UTF8 encoding.
virtual void configure(const WireCell::Configuration &config)
Accept a configuration.
Json::Value load(const std::string &filename, const externalvars_t &extvar=externalvars_t(), const externalvars_t &extcode=externalvars_t())
virtual bool operator()(IDepo::pointer &out)
IDepoSource.
std::vector< std::string > m_filenames
static unsigned int reverse(QString &chars, unsigned char *level, unsigned int a, unsigned int b)
Json::Value Configuration
WIRECELL_FACTORY(BeeDepoSource, WireCell::Sio::BeeDepoSource, WireCell::IDepoSource, WireCell::IConfigurable) using namespace WireCell