12int main(
int argc,
char* argv[]) {
13 auto gopts =std::make_shared<GOptions>(argc, argv, gtouchable::defineOptions());
14 auto log = std::make_shared<GLogger>(gopts, SFUNCTION_NAME, TOUCHABLE_LOGGER);
18 auto a_ctof_gtouchable = GTouchable(gopts,
"readout",
"sector: 6, paddle: 10", {10.0, 20.0, 30.0});
20 auto a_hit =
new GHit(std::make_shared<GTouchable>(a_ctof_gtouchable), hitBitSet);
24 hits.emplace_back(a_hit);
26 for (
unsigned i = 1; i < 100; i++) {
29 log->info(
" GHit: ", *hit->getGTouchable(),
" with total Edep: ", hit->getTotalEnergyDeposited(),
" MeV");
32 for (
const auto& hit_in_v : hits) {
if (hit->is_same_hit(hit_in_v)) { log->info(NORMAL, (*hit->getGTouchable()),
" found in hit n. ", i); } }