NCUtility.h File Reference

#include <vector>
#include "TString.h"

Go to the source code of this file.

Namespaces

namespace  NC
namespace  NC::Utility
 

Collection of useful functions.


Functions

template<class T >
const T NC::Utility::SQR (const T a)
TH1 * NC::Utility::CloneFast (const TH1 *h)
 Utility function. Clone TH[1,2,3][F,D] faster than TObject::Clone.
void NC::Utility::AddFast (TH1 *a, const TH1 *b, double c=1)
 Utility function a+=b*c. Errors not preserved.
void NC::Utility::MultiplyFast (TH1 *a, const TH1 *b, double c=1)
 Utility function a*=b*c. Errors not preserved.
void NC::Utility::DivideFast (TH1 *a, const TH1 *b, double c=1)
 Utility function a/=(b*c). Errors not preserved.
int NC::Utility::GetArraySize (const TH1 *h)
 Find the number of elements in TH1::fArray.
std::vector< TString > NC::Utility::ParseStringList (const char *strList)
 Decode a string representing a list of strings.
std::vector< int > NC::Utility::ParseNumberList (const char *numList)
 Decode a string representing a list of integers.
void NC::Utility::ReportProgress (double est_frac, TStopwatch &sw)
 Prints progress and estimated time remaining.

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1