Skip to content

Instantly share code, notes, and snippets.

View YanzhaoW's full-sized avatar

Yanzhao Wang (王彦昭) YanzhaoW

  • Universität zu Köln
  • Zülpicher Straße 77, Köln
View GitHub Profile
@YanzhaoW
YanzhaoW / EventStitchingUtils.hpp
Last active June 20, 2024 15:17
ROOT macro script for the event stitching of neuland and sofia data.
namespace ROOT::Internal::RDF
{
std::string GetBranchOrLeafTypeName(TTree& t, const std::string& colName);
}
class InputRootFiles
{
public:
InputRootFiles(std::string_view tree_name) { data_ = std::make_unique<TChain>(tree_name.data()); }
void add_filename(std::string_view filename)
@YanzhaoW
YanzhaoW / DetectorData.h
Last active April 10, 2024 17:01
R3BRoot template for a task class
/******************************************************************************
* Copyright (C) 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH *
* Copyright (C) 2019-2024 Members of R3B Collaboration *
* *
* This software is distributed under the terms of the *
* GNU General Public Licence (GPL) version 3, *
* copied verbatim in the file "LICENSE". *
* *
* In applying this license GSI does not waive the privileges and immunities *
* granted to it by virtue of its status as an Intergovernmental Organization *