#include <global_simpleAngular.h>
Public Member Functions | |
bool | checkParameters () |
subclass must check the supplied parameters ParE_, ParS_ More... | |
void | checkTermination () |
for algorithms with incr_==0 the algorithm must check whether to terminate More... | |
global_simpleAngular_2 (AlgoPos *, std::string label) | |
DDRotationMatrix | rotation () |
subclass must calculate a rotation matrix More... | |
void | stream (std::ostream &) const |
DDTranslation | translation () |
subclass must calculate a translation std::vector More... | |
~global_simpleAngular_2 () | |
Public Member Functions inherited from AlgoImpl | |
AlgoImpl (AlgoPos *, std::string label) | |
subclass must provide a similar constructor and call this one More... | |
Additional Inherited Members | |
Protected Member Functions inherited from AlgoImpl | |
virtual int | copyno () const |
copy-number calculation More... | |
void | terminate () |
stop the current iteration of the algorithm (for incr_==0 types of algorithms) More... | |
virtual | ~AlgoImpl () |
Static Protected Member Functions inherited from AlgoImpl | |
static std::string | d2s (double x) |
ahh, converts a double into a std::string ... yet another one of this kind! More... | |
Protected Attributes inherited from AlgoImpl | |
const int & | count_ |
const int & | curr_ |
const int & | end_ |
std::string & | err_ |
const int & | incr_ |
std::string | label_ |
parE_type & | ParE_ |
parS_type & | ParS_ |
const int & | start_ |
bool & | terminate_ |
Definition at line 99 of file global_simpleAngular.h.
global_simpleAngular_2::global_simpleAngular_2 | ( | AlgoPos * | a, |
std::string | label | ||
) |
Definition at line 314 of file global_simpleAngular.cc.
global_simpleAngular_2::~global_simpleAngular_2 | ( | ) |
Definition at line 318 of file global_simpleAngular.cc.
|
virtual |
subclass must check the supplied parameters ParE_, ParS_
whether they are correct and should select this paricular algorithm.
If the parameters are correct by should not select this particular algorithm, checkParamters must return false otherwise true.
The std::string err_ is to be used to be extended with error information in case any errors have been detected. Error information must be attached to err_ because of the possibility of already contained error information.
In case of errors: If an DDException is thrown by the algorithm implementation, further processing of any other implementations of the algorithm will be stopped. If no exception is thrown, checkParamters must return false. It's preferable not to throw an exception in case of errors. The algorithm implementation will throw if all checkParamters() of all registered algorithm implementations have returned false.
Implements AlgoImpl.
Definition at line 321 of file global_simpleAngular.cc.
References delta, AlgoImpl::err_, AlgoImpl::ParE_, query::result, and findQualityFiles::size.
|
virtual |
for algorithms with incr_==0 the algorithm must check whether to terminate
Overload this function in case the algorithm is a 'incr_==0' type. In this case provide some code which checks using perhaps the value of count_ and/or supplied algorithm parameters to check whether terminate() has to be called or not. If terminate() is called, the current iteration of the algorithm is not taken into account!
The default implementation will immidiately terminate the algorithm in case incr_==0.
In case of incr_!=0: checkTermination() is not called at all; the algorithm will terminate automatically when the specified range [start_, end_, incr_] has been covered or terminate() has been called from within translation() or rotation().
Reimplemented from AlgoImpl.
Definition at line 454 of file global_simpleAngular.cc.
References AlgoImpl::count_, AlgoImpl::ParE_, and AlgoImpl::terminate().
|
virtual |
subclass must calculate a rotation matrix
depending on the current position curr_ in the range [start_,end_,incr_] and the user supplied parameters ParE_, ParS_
Implements AlgoImpl.
Definition at line 376 of file global_simpleAngular.cc.
References angle(), AlgoImpl::count_, gather_cfg::cout, delta, i, j, AlCaRecoCosmics_cfg::name, AlgoImpl::ParE_, AlgoImpl::ParS_, submit::rm, DDRotation::rotation(), and findQualityFiles::size.
void global_simpleAngular_2::stream | ( | std::ostream & | os | ) | const |
Definition at line 463 of file global_simpleAngular.cc.
|
virtual |
subclass must calculate a translation std::vector
depending on the current position curr_ in the range [start_,end_,incr_] and the user supplied parameters ParE_, ParS_
Implements AlgoImpl.
Definition at line 359 of file global_simpleAngular.cc.
References funct::cos(), AlgoImpl::count_, delta, evf::evtn::offset(), AlgoImpl::ParE_, CosmicsPD_Skims::radius, and funct::sin().