RooParticle
Particle scattering simulator with ROOT
Loading...
Searching...
No Matches
preEvent.cpp
Go to the documentation of this file.
1#include "TROOT.h"
2// #include "preEvent.hpp"
3// #include "path.hpp"
4// #include "event.hpp"
5
6// preEvent::preEvent(Float_t eps_):event(){
7// Seteps(eps_);
8// }
9
10// preEvent::preEvent(event ev_, Float_t eps_):event(ev_){
11// Seteps(eps_);
12// }
13
14// Bool_t preEvent::DeriveInspect(particle * pT, particle * pP,
15// Bool_t verbose){
16// Int_t i=0;
17// while(kTRUE){
18// if(calCor(pT, pP,kTRUE)<eps){
19// break;
20// }
21// DeriveDT(1);
22// if(verbose && i%1000 == 0){
23// cout<<"i: "<<i<<" | "<< calCor(pT, pP, kFALSE) <<", "<< calCor(pT, pP, kTRUE) <<endl;
24// // pT->GetX().Print();
25// pP->GetX().Print();
26// pP->GetV().Print();
27
28// }
29// i++;
30// }
31// return kTRUE; // derivation runs fully
32// // return kFALSE; // derivation doesn't run fully
33// }
34
35// Float_t preEvent::calCor(particle* pT, particle* pP, Bool_t deg){
36// TVectorD dX = (pP->GetX())-(pT->GetX());
37// TVectorD dV = (pP->GetV())-(pT->GetV());
38// Double_t cc = (dX*dV)/(TMath::Sqrt(dX.Norm2Sqr() * dV.Norm2Sqr()));
39// if(deg){
40// return TMath::ACos(cc) * TMath::RadToDeg();
41// }
42// return cc;
43// }