/************************************************************** * *****************CONFIGURATION ZONE**************************** * **************************************************************/ #include #include #include #include #include #include #include #include #include class Utility { public: /* static const char *scriptRepository = "/home/pamela_yoda/scriptdef/"; //static const char *libYoda = "/opt/yoda/lib/libyoda.so"; static const char *LogTemplate = "/home/pamela_yoda/scriptdef/FilesUtility/LogTemplate.xsl"; static const char *VarDumpTemplate = "/home/pamela_yoda/scriptdef/FilesUtility/VarDumpTemplate.xsl"; static const char *ArrDumpTemplate = "/home/pamela_yoda/scriptdef/FilesUtility/ArrDumpTemplate.xsl"; static const char *RunHeaderTemplate = "/home/pamela_yoda/scriptdef/FilesUtility/RunHeaderTemplate.xsl"; static const char *PhysEndRunTemplate = "/home/pamela_yoda/scriptdef/FilesUtility/PhysEndRunTemplate.xsl"; static const char *McmdTemplate = "/home/pamela_yoda/scriptdef/FilesUtility/McmdTemplate.xsl"; */ static void digForFiles(TList& out, TSystemDirectory *tsd, std::string defin); static void makeAllFriend(TTree& out, TList* input); static void makeAllChained(TChain& out, TList* input); static TFile* getFile(TString base, TString packetType, TString subType); static Int_t getLastNotZeroBin(TH1 *histo); static Int_t getFirstNotZeroBin(TH1 *histo); static void endian_swap(UShort_t& x); static void endian_swap(UInt_t& x); /* inline void endian_swap(ULong64_t& x){ x = (x>>56) | ((x<<40) & 0x00FF000000000000) | ((x<<24) & 0x0000FF0000000000) | ((x<<8) & 0x000000FF00000000) | ((x>>8) & 0x00000000FF000000) | ((x>>24) & 0x0000000000FF0000) | ((x>>40) & 0x000000000000FF00) | (x<<56); } */ };