7 std::ostream&
operator<<(std::ostream& out,
const TLorentzVector& v){
9 for(
int i=0; i<3; i++) out << v[i] <<
", ";
27 if(f >= 0)
return ((
int)(f+0.5));
31 return - ((int)(f+0.5));
35 unsigned int pos = b.find(a);
36 return pos < b.size();
42 std::vector<int> v(2);
47 std::vector<int> v(3);
48 v[0]=a; v[1]=b; v[2]=c;
52 std::vector<int> v(4);
53 v[0]=a; v[1]=b; v[2]=c; v[3]=d;
57 std::vector<int> v(5);
58 v[0]=a; v[1]=b; v[2]=c; v[3]=d; v[4]=e;
63 if(v.size() <=1)
return 1;
65 std::vector<int> checkMultiples(v.size(), 0);
67 for(
unsigned int i=0; i<v.size(); i++){
68 if(v[i] < 0 || v[i] >= (
int) v.size())
return 0;
69 if(++(checkMultiples[i]) > 1)
return 0;
71 for(
unsigned int i=0; i<v.size()-1; i++){
72 for(
unsigned int j=i+1; j < v.size(); j++){
73 if(v[i] > v[j]) p*= -1;
int LeviCita(int a, int b)
bool A_is_in_B(const std::string &a, const std::string &b)
std::ostream & operator<<(std::ostream &out, const TLorentzVector &v)
std::string anythingToString(const T &anything)
std::string stringtime(double dt)