#ifndef __JDAQ__JSUPPORT__ #define __JDAQ__JSUPPORT__ #include "km3net-dataformat/definitions/root.hh" #include "km3net-dataformat/online/JDAQDataTypes.hh" #include "JLang/JType.hh" #include "JROOT/JTreeParameters.hh" /** * \file * * ROOT TTree parameter settings.\n * \author mdejong */ // %KM3NeT DAQ data structures namespace KM3NETDAQ { using JLANG::JType; using JROOT::JTreeParameters; // ----------------------------------------------------------------------------------------------------- // // Define TTree parameters for each data type. // // ----------------------------------------------------------------------------------------------------- /** * \param type data type * \return TTree parameters */ inline JTreeParameters getTreeParameters(const JType& type) { return JTreeParameters(TTREE_ONLINE_TIMESLICE, "", TBRANCH_ONLINE_TIMESLICE, COMPRESSION_LEVEL_ONLINE_TIMESLICE, BASKET_SIZE_ONLINE_TIMESLICE, SPLIT_LEVEL_ONLINE_TIMESLICE); } /** * \param type data type * \return TTree parameters */ inline JTreeParameters getTreeParameters(const JType& type) { return JTreeParameters(TTREE_ONLINE_TIMESLICEL0, "", TBRANCH_ONLINE_TIMESLICEL0, COMPRESSION_LEVEL_ONLINE_TIMESLICEL0, BASKET_SIZE_ONLINE_TIMESLICEL0, SPLIT_LEVEL_ONLINE_TIMESLICEL0); } /** * \param type data type * \return TTree parameters */ inline JTreeParameters getTreeParameters(const JType& type) { return JTreeParameters(TTREE_ONLINE_TIMESLICEL1, "", TBRANCH_ONLINE_TIMESLICEL1, COMPRESSION_LEVEL_ONLINE_TIMESLICEL1, BASKET_SIZE_ONLINE_TIMESLICEL1, SPLIT_LEVEL_ONLINE_TIMESLICEL1); } /** * \param type data type * \return TTree parameters */ inline JTreeParameters getTreeParameters(const JType& type) { return JTreeParameters(TTREE_ONLINE_TIMESLICEL2, "", TBRANCH_ONLINE_TIMESLICEL2, COMPRESSION_LEVEL_ONLINE_TIMESLICEL2, BASKET_SIZE_ONLINE_TIMESLICEL2, SPLIT_LEVEL_ONLINE_TIMESLICEL2); } /** * \param type data type * \return TTree parameters */ inline JTreeParameters getTreeParameters(const JType& type) { return JTreeParameters(TTREE_ONLINE_TIMESLICESN, "", TBRANCH_ONLINE_TIMESLICESN, COMPRESSION_LEVEL_ONLINE_TIMESLICESN, BASKET_SIZE_ONLINE_TIMESLICESN, SPLIT_LEVEL_ONLINE_TIMESLICESN); } /** * \param type data type * \return TTree parameters */ inline JTreeParameters getTreeParameters(const JType& type) { return JTreeParameters(TTREE_ONLINE_EVENT, "", TBRANCH_ONLINE_EVENT, COMPRESSION_LEVEL_ONLINE_EVENT, BASKET_SIZE_ONLINE_EVENT, SPLIT_LEVEL_ONLINE_EVENT); } /** * \param type data type * \return TTree parameters */ inline JTreeParameters getTreeParameters(const JType& type) { return JTreeParameters(TTREE_ONLINE_SUMMARYSLICE, "", TBRANCH_ONLINE_SUMMARYSLICE, COMPRESSION_LEVEL_ONLINE_SUMMARYSLICE, BASKET_SIZE_ONLINE_SUMMARYSLICE, SPLIT_LEVEL_ONLINE_SUMMARYSLICE); } } #endif