From d93a8c6a27d584b1c4f1ad1e515a81283d491dad Mon Sep 17 00:00:00 2001 From: Derek Glazier Date: Wed, 18 Dec 2024 13:38:34 +0000 Subject: [PATCH 1/2] remove outdated Ex9_QualityAssurance.C see Ex10_clas12DatabasesChain.C instead --- RunRoot/Ex9_QualityAssurance.C | 55 ---------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 RunRoot/Ex9_QualityAssurance.C diff --git a/RunRoot/Ex9_QualityAssurance.C b/RunRoot/Ex9_QualityAssurance.C deleted file mode 100644 index 19fc6e2..0000000 --- a/RunRoot/Ex9_QualityAssurance.C +++ /dev/null @@ -1,55 +0,0 @@ -#include -#include -#include "clas12reader.h" -#include "jsonFileMerger.h" - - -using namespace clas12; -using namespace std; - -void Ex9_QualityAssurance(){ - - //clas12reader declared as usual. - clas12reader c12("/path/to/data.hipo"); - - /*c12reader needs a database*/ - clas12databases db; - c12.connectDataBases(&db); - - /* - * Several quality assurance requirements can be specified. - * requireOkForAsymmetry requires that an event was deemed - * suitable for asymmetry measurements. - * - * addRequirement requires that the event was not identified - * as, for example, a marginal outlier. Several requirements - * can be assigned at the same time. - * - * See RGA analysis note and clas12-qadb github repository for - * additional information. - */ - c12.db()->qadb_requireOkForAsymmetry(true); - c12.db()->qadb_requireGolden(true); - c12.db()->qadb_addQARequirement("MarginalOutlier"); - c12.db()->qadb_addQARequirement("TotalOutlier"); - - /* - * applyQA specifies to the clas12reader that quality assurance - * cuts will be applied, based on the .json file given as an - * argument. This file should contain the Clas12 Quality Assurance - * database. - */ - c12.applyQA(); - - //The analysis can then proceed as usual. - while(c12.next()) { - //Do rest of analysis... - } - - /* - * The clas12-qadb software also provides the accumulated charge for events - * that pass the quality assurance requirements. - */ - cout<<"Accumulated charge past QA: "<getAccCharge()<<" nC"< Date: Thu, 19 Jun 2025 12:42:30 +0100 Subject: [PATCH 2/2] ls hipo --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bbc2582..b9d5ca8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -65,6 +65,8 @@ jobs: - name: build clas12root run: | echo 'check hipo:' + ls $HIPO + ls $HIPO/include ./installC12Root - name: run example on data file