![]() |
eic-smear
1.0.3
A collection of ROOT classes for Monte Carlo events and a fast-smearing code simulating detector effects for the Electron-Ion Collider task force
|
#include <Acceptance.h>
Public Member Functions | |
virtual | ~Zone () |
Zone (double theta=0., double=TMath::Pi(), double phi=0., double=TMath::TwoPi(), double E=0., double=TMath::Infinity(), double p=0., double=TMath::Infinity(), double pt=0., double=TMath::Infinity(), double pz=-TMath::Infinity(), double=TMath::Infinity()) | |
virtual void | Add (const CustomCut &) |
virtual Bool_t | Contains (const erhic::VirtualParticle &) const |
Protected Attributes | |
double | thetaMin |
double | thetaMax |
double | phiMin |
double | phiMax |
double | EMin |
double | EMax |
double | PMin |
double | PMax |
double | pTMin |
double | pTMax |
double | pZMin |
double | pZMax |
std::vector < Smear::Acceptance::CustomCut > | CustomCuts |
A single contiguous region of acceptance.
Definition at line 62 of file Acceptance.h.
|
virtual |
Destructor
Definition at line 142 of file Acceptance.cxx.
Smear::Acceptance::Zone::Zone | ( | double | theta = 0. , |
double | thMax = TMath::Pi() , |
||
double | phi = 0. , |
||
double | phMax = TMath::TwoPi() , |
||
double | E = 0. , |
||
double | eMax = TMath::Infinity() , |
||
double | p = 0. , |
||
double | pMax = TMath::Infinity() , |
||
double | pt = 0. , |
||
double | ptmax = TMath::Infinity() , |
||
double | pz = -TMath::Infinity() , |
||
double | pzmax = TMath::Infinity() |
||
) |
Constructor. Define accepted ranges in theta, phi, E, p, pT and pz. Ranges in each variable are combined via boolean AND. By default accepts all particles.
Definition at line 145 of file Acceptance.cxx.
|
virtual |
Add a CustomCut to the list of acceptance tests.
Definition at line 165 of file Acceptance.cxx.
|
virtual |
Returns true if the particle lies in this zone, false if not.
Definition at line 169 of file Acceptance.cxx.