#ifndef __JCOMPASS__JSUPPORT__ #define __JCOMPASS__JSUPPORT__ #include "JLang/JType.hh" #include "JLang/JTypeList.hh" #include "JROOT/JTreeParameters.hh" /** * \file * * ROOT TTree parameter settings.\n * \author mdejong */ using JLANG::JType; using JROOT::JTreeParameters; /** * Auxiliary classes and methods for orientation calibration based on compasses. */ namespace JCOMPASS { struct JOrientation; struct JEvt; /** * \param type data type * \return TTree parameters */ inline JTreeParameters getTreeParameters(const JType& type) { return JTreeParameters("ORIENTATION", "orientation", "", 2, 65536, 2); } /** * \param type data type * \return TTree parameters */ inline JTreeParameters getTreeParameters(const JType& type) { return JTreeParameters("COMPASS", "compass", "", 2, 65536, 2); } } /** * Type list of compass data types for I/O. */ typedef JLANG::JTYPELIST::typelist JCompassTypes_t; #endif