Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-11-19 23:20:31

0001 //  .
0002 // ..: P. Chang, philip@physics.ucsd.edu
0003 
0004 #ifndef printutil_cc
0005 #define printutil_cc
0006 
0007 // C/C++
0008 #include <algorithm>
0009 #include <fstream>
0010 #include <iostream>
0011 #include <map>
0012 #include <string>
0013 #include <unordered_map>
0014 #include <vector>
0015 #include <stdarg.h>
0016 #include <functional>
0017 #include <cmath>
0018 
0019 // ROOT
0020 #include "TBenchmark.h"
0021 #include "TBits.h"
0022 #include "TChain.h"
0023 #include "TFile.h"
0024 #include "TTree.h"
0025 #include "TBranch.h"
0026 #include "TLeaf.h"
0027 #include "TH1.h"
0028 #include "TH1D.h"
0029 #include "TH2D.h"
0030 #include "TChainElement.h"
0031 #include "TTreeCache.h"
0032 #include "TTreePerfStats.h"
0033 #include "TStopwatch.h"
0034 #include "TSystem.h"
0035 #include "TString.h"
0036 #include "TLorentzVector.h"
0037 #include "Math/LorentzVector.h"
0038 #include "Math/GenVector/PtEtaPhiM4D.h"
0039 
0040 #ifdef LorentzVectorPtEtaPhiM4D
0041 typedef ROOT::Math::LorentzVector<ROOT::Math::PtEtaPhiM4D<float> > LV;
0042 #else
0043 typedef ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<float> > LV;
0044 #endif
0045 
0046 namespace RooUtil {
0047 
0048   ///////////////////////////////////////////////////////////////////////////////////////////////
0049   // Printing functions
0050   ///////////////////////////////////////////////////////////////////////////////////////////////
0051   // No namespace given in order to minimize typing
0052   // (e.g. RooUtil::print v. RooUtil::NAMESPACE::print)
0053   void clearline(int numchar = 100);
0054   void print(TString msg = "", const char* fname = "", int flush_before = 0, int flush_after = 0);
0055   void error(TString msg, const char* fname = "", int is_error = 1);
0056   void warning(TString msg, const char* fname = "");
0057   void announce(TString msg = "", int quiet = 0);
0058   void start(int quiet = 0, int sleep_time = 0);
0059   void end(int quiet = 0);
0060 
0061   std::string getstr(const LV& lv);
0062 }  // namespace RooUtil
0063 
0064 #endif