7 #include "TLorentzVector.h" 13 #include "TMatrixTSym.h" 19 template <
typename Key,
typename Val>
21 ,
const std::map< Key, Val > &
m 25 typename std::map< Key , Val >::const_iterator it =
m.find(k);
35 template <
typename Key,
typename Val>
37 ,
const std::map< Key, Val > &
m 41 return keyFinder<Key, Val>(k,
m, dummy, successFlag);
46 TMatrixTSym<T>
ms(
m.GetNcols());
47 for(
int i=0; i <
ms.GetNcols(); i++){
48 for(
int j=i; j <
ms.GetNcols(); j++){
49 ms(i,j) =
ms(j,i) =
m(i,j);
57 std::stringstream strm(str);
63 std::stringstream strm;
72 std::stringstream strm;
73 for(
unsigned int i=0; i<anyV.size(); i++){
85 bool A_is_in_B(
const std::string& a,
const std::string& b);
90 int LeviCita(
int a,
int b,
int c,
int d);
91 int LeviCita(
int a,
int b,
int c,
int d,
int e);
92 int LeviCita(
const std::vector<int>& v);
96 std::ostream&
operator<<(std::ostream& os,
const TLorentzVector& v);
99 std::ostream&
operator<<(std::ostream& os,
const std::vector<T>& v){
101 for(
unsigned int i=0; i<v.size(); i++){
103 if(i + 1 < v.size()) os <<
", ";
void stringToAnything(const std::string &str, T &anything)
std::ostream & operator<<(std::ostream &os, const TLorentzVector &v)
int LeviCita(int a, int b)
TMatrixTSym< T > makeTMatrixTSym(const TMatrixT< T > &m)
bool A_is_in_B(const std::string &a, const std::string &b)
const Val & keyFinder(const Key &k, const std::map< Key, Val > &m, const Val &dummy, bool &successFlag)
std::string anyVectorToString(const std::vector< T > &anyV)
std::string anythingToString(const T &anything)
std::string stringtime(double dt)