MINT2
Namespaces | Enumerations | Functions
Utils.h File Reference
#include <iostream>
#include "TLorentzVector.h"
#include <sstream>
#include <string>
#include <map>
#include <vector>
#include "TMatrixT.h"
#include "TMatrixTSym.h"

Go to the source code of this file.

Namespaces

 MINT
 

Enumerations

enum  MINT::OWNERSHIP { MINT::CALLER_PASSES_OWNERSHIP, MINT::CALLER_KEEPS_OWNERSHIP }
 

Functions

template<typename Key , typename Val >
const Val & MINT::keyFinder (const Key &k, const std::map< Key, Val > &m, const Val &dummy, bool &successFlag)
 
template<typename Key , typename Val >
const Val & MINT::keyFinder (const Key &k, const std::map< Key, Val > &m, const Val &dummy)
 
template<typename T >
TMatrixTSym< T > MINT::makeTMatrixTSym (const TMatrixT< T > &m)
 
template<typename T >
void MINT::stringToAnything (const std::string &str, T &anything)
 
template<typename T >
std::string MINT::anythingToString (const T &anything)
 
template<typename T >
std::string MINT::anyVectorToString (const std::vector< T > &anyV)
 
std::string MINT::stringtime (double dt)
 
int MINT::nearestInt (double f)
 
bool MINT::A_is_in_B (const std::string &a, const std::string &b)
 
int MINT::LeviCita (int a, int b)
 
int MINT::LeviCita (int a, int b, int c)
 
int MINT::LeviCita (int a, int b, int c, int d)
 
int MINT::LeviCita (int a, int b, int c, int d, int e)
 
int MINT::LeviCita (const std::vector< int > &v)
 
std::ostream & operator<< (std::ostream &os, const TLorentzVector &v)
 
template<typename T >
std::ostream & operator<< (std::ostream &os, const std::vector< T > &v)
 

Function Documentation

◆ operator<<() [1/2]

std::ostream& operator<< ( std::ostream &  os,
const TLorentzVector &  v 
)

Definition at line 7 of file Utils.cpp.

7  {
8  out << "(";
9  for(int i=0; i<3; i++) out << v[i] << ", ";
10  out << v[3] << ")";
11  return out;
12 }

◆ operator<<() [2/2]

template<typename T >
std::ostream& operator<< ( std::ostream &  os,
const std::vector< T > &  v 
)

Definition at line 99 of file Utils.h.

99  {
100  os << "(";
101  for(unsigned int i=0; i<v.size(); i++){
102  os << v[i];
103  if(i + 1 < v.size()) os << ", ";
104  }
105  os << ")";
106  return os;
107 }