Pluto v6.3.0
Loading...
Searching...
No Matches
PHUrCollisionHeader.h
Go to the documentation of this file.
1#ifndef __PHUrCollisionHeader_h__
2#define __PHUrCollisionHeader_h__
3
4
5#include "TObject.h"
6
7#include <fstream>
8#include <iostream>
9#include <iomanip>
10
11using namespace std;
12
13class PHUrCollisionHeader : public TObject {
14
15public:
16 Int_t n_in; // 1 Int_t n ingoing particles
17 Int_t n_out; // 2 Int_t n outgoing particles
18 Int_t process_id; // 3 Int_t process id
19 Int_t n_collision; // 4 Int_t n collision
20 Double_t t_collision; // 5 Double_t collison time fm/c
21 Double_t E_total_CM; // 6 Double total CM energy GeV
22 Double_t sig_total; // 7 Double_t total cross section mbarn
23 Double_t sig_partial; // 8 Double_t partial cross section of exit channel mbarn
24 Double_t baryon_density; // 9 Double_t baryon density at collision point
25
26 using TObject::Read;
27 Bool_t Read(ifstream& in) {
28 if(in.eof()) return kFALSE;
29 if(!in.good()) return kFALSE;
30 in >> n_in >> n_out >> process_id >> n_collision >> t_collision >>
32 if(n_in!=-2 && !in.eof() && !in.good()) return kFALSE;
33 return kTRUE;
34 }
35
36 using TObject::Print;
37 void Print(Option_t *) {
38 cout<< setw(5) << dec << n_in << " "
39 << setw(6) << n_out << " "
40 << setw(4) << process_id << " "
41 << setw(4) << n_collision << " "
42 << setw(15) << scientific << t_collision << " "
43 << setw(15) << E_total_CM << " "
44 << setw(15) << sig_total << " "
45 << setw(15) << sig_partial << " "
46 << setw(15) << baryon_density
47 << dec << endl;
48 }
49
50 using TObject::Clear;
51 void Clear(Option_t *) {
52 n_in = -2;
53 n_out = -1;
54 process_id = -1;
55 n_collision = -1;
56 t_collision = -1;
57 E_total_CM = -1;
58 sig_total = -1;
59 sig_partial = -1;
60 baryon_density = -1;
61 }
64 Bool_t IsScattering() { return (n_in==2 && n_out==2 ) ; }
65 Bool_t IsDecay() { return (n_in==1 && n_out==2 ) ; }
66 Bool_t IsAnnihilation() { return (n_in==2 && n_out==1 ) ; }
67 Bool_t IsPauliBlockedCollision() { return (n_in==2 && n_out==0 ) ; }
68 Bool_t IsPauliBlockedDecay() { return (n_in==1 && n_out==0 ) ; }
69 Bool_t IsStringDecay5() { return (n_in==2 && n_out==5 ) ; }
70
71 ClassDef(PHUrCollisionHeader,0)
72
73};
74
75
76#endif
Bool_t Read(ifstream &in)