Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:17:24

0001 // $Id: $
0002 
0003 /*!
0004  * \file QAHistManagerDef.h
0005  * \brief
0006  * \author Jin Huang <jhuang@bnl.gov>
0007  * \version $Revision:   $
0008  * \date $Date: $
0009  */
0010 
0011 #ifndef QAHISTMANAGERDEF_H_
0012 #define QAHISTMANAGERDEF_H_
0013 
0014 #include <string>
0015 #include <vector>
0016 class Fun4AllHistoManager;
0017 class TAxis;
0018 
0019 namespace QAHistManagerDef
0020 {
0021   //! Get a pointer to the default hist manager for QA modules
0022   Fun4AllHistoManager*
0023   getHistoManager();
0024 
0025   //! Save hist to root files. It will overwrite the old file if exist
0026   void saveQARootFile(const std::string& file_name);
0027 
0028   //! default name for QA histogram manager
0029   static const std::string HistoManagerName = "QA_HISTOS";
0030 
0031   //! utility function to convert TAxis to log scale binning (usually for x axis)
0032   void useLogBins(TAxis* axis);
0033 
0034   std::vector<std::string> tokenize(const std::string& str, const char* delimiter);
0035 }  // namespace QAHistManagerDef
0036 
0037 #endif /* QAHISTMANAGERDEF_H_ */