![]() |
Diana Software
|
Interface for vectors in Diana analysis. More...
Public Member Functions | |
| QVector () | |
| default constructor More... | |
| QVector (const UInt_t size) | |
| constructor with its size More... | |
| QVector (const QVector &orig) | |
| copy constructor More... | |
| virtual | ~QVector () |
| destructor More... | |
| UInt_t | Size () const |
| size of QVector More... | |
| void | Initialize (const double val=0) |
| initialize elements (default to 0) More... | |
| double & | operator[] (const UInt_t i) |
| retrieve an element More... | |
| double & | operator() (const UInt_t i) |
| const double & | operator[] (const UInt_t i) const |
| retrieve an element More... | |
| const double & | operator() (const UInt_t i) const |
| const QVector & | operator= (const QVector &orig) |
| copy the content from another QVector More... | |
| const QVector & | operator= (const QVectorI &orig) |
| copy the content from a QVectorI More... | |
| const QVector & | operator= (const std::vector< double > &orig) |
| copy the content from a QVectorI More... | |
| QVector | operator- () const |
| revert sign to all components More... | |
| QVector | Mult (const QVector &other) const |
| multiplication element by element More... | |
| QVector | Div (const QVector &other) const |
| multiplication element by element More... | |
| const QVector & | operator*= (const double t) |
| multiplication by scalar More... | |
| const QVector & | operator/= (const double v) |
| divide by scalar More... | |
| const QVector & | operator+= (const double v) |
| sum scalar to all elements More... | |
| const QVector & | operator-= (const double v) |
| subtract scalar to all elements More... | |
| const QVector & | operator+= (const QVector &v) |
| add a QVector More... | |
| const QVector & | operator-= (const QVector &v) |
| subtract a QVector More... | |
| const QVector & | operator*= (const QVector &v) |
| subtract a QVector More... | |
| const QVector & | operator/= (const QVector &v) |
| subtract a QVector More... | |
| double | operator* (const QVector &other) const |
| scalar product More... | |
| QVector | operator+ (const QVector &other) const |
| sum vector More... | |
| QVector | operator- (const QVector &other) const |
| subtract vector More... | |
| QVector | operator+ (double t) const |
| add scalar More... | |
| QVector | operator- (double t) const |
| subtract scalar More... | |
| QVector | operator* (double t) const |
| multiply by scalar More... | |
| QVector | operator/ (double t) const |
| divide by scalar More... | |
| QMatrix | T () const |
| transpose More... | |
| QMatrix | Reshape (UInt_t n, UInt_t m) |
| reshape the vector into a matrix More... | |
| const QMatrix | Reshape (UInt_t n, UInt_t m) const |
| reshape the vector into a matrix More... | |
| const QVector & | Rebin (const int rebin, bool sum=false) |
| Rebin the vector. More... | |
| const QVector & | Shift (const int nstep) |
| Cyclic shift of vector. More... | |
| const QVector & | Reverse () |
| time reversal of the vector More... | |
| const QVector & | ShiftReal (const double fstep) |
| Cyclic shift of vector by a real number, first shift by the integer part of fstep then linear interpolation between samples is performed. More... | |
| const QVector & | Differentiate () |
| make vector derivative More... | |
| QVector | Derivative2P (const double delta=1.) const |
| compute derivative with 2 point interpolation, uses Differentiate() More... | |
| QVector | Derivative2PF (const double delta=1.) const |
| compute derivative with forward 2 point interpolation More... | |
| QVector | Derivative3P (const double delta=1.) const |
| compute derivative with 3 point interpolation, symmetric More... | |
| QVector | Derivative3PB (const double delta=1.) const |
| compute derivative with 3 point interpolation, backward mode More... | |
| QVector | Derivative3PF (const double delta=1.) const |
| compute derivative with 3 point interpolation, forward mode More... | |
| QVector | Derivative5P (const double delta=1.) const |
| compute derivative with 5 point interpolation, symmetric More... | |
| QVector | Derivative5PB (const double delta=1.) const |
| compute derivative with 5 point interpolation, backward mode More... | |
| QVector | DerivativeEulero (const double delta=1.) const |
| compute derivative with Eulero interpolation, backward mode More... | |
| QVector | Abs () const |
| Return a vector of the absolute values. More... | |
| const QVector & | Sort (const bool asc=true) |
| sort this vector More... | |
| const QVector & | Integrate (const double constTerm=0) |
| Integrate vector. More... | |
| void | Resize (const UInt_t newsize) |
| resize a QVector More... | |
| void | Append (const double val) |
| append More... | |
| double | Norma () const |
| norma More... | |
| double | Sum (UInt_t nelem, UInt_t first=0) const |
| sum elements More... | |
| double | Sum () const |
| sum elements More... | |
| double | GetMean (const UInt_t nelem, const UInt_t first=0) const |
| Get Mean. More... | |
| double | GetMean () const |
| double | GetRMS (const UInt_t nelem, const UInt_t first=0) const |
| Get RMS. More... | |
| double | GetRMS () const |
| Get RMS. More... | |
| double | GetMedian () const |
| Get median. More... | |
| double | GetMedianAbsoluteDeviation () const |
| Get median absolute deviation. More... | |
| double | GetMax () const |
| get maximum element More... | |
| double | GetMin () const |
| get minimum element More... | |
| int | GetMaxIndex (const UInt_t nelem, const UInt_t first) const |
| get maximum element position between first and first + nelem More... | |
| int | GetMinIndex (const UInt_t nelem, const UInt_t first) const |
| get minimum element position between first and first + nelem More... | |
| UInt_t | GetMaxIndex () const |
| get maximum element index More... | |
| UInt_t | GetMinIndex () const |
| get minimum element index More... | |
| double * | GetArray () const |
| get an array of doubles, owned by the caller! More... | |
| std::vector< double > | GetArrayVector () const |
| get a pointer to the content More... | |
| const double * | GetConstArray () const |
| void | SetArray (const double *orig, const UInt_t size) |
| get a constant pointer to the content More... | |
| virtual void | Clear () |
| clear the vector More... | |
| std::string | sqlString () const |
| virtual void | Dump (std::ostream &o) const |
| Dump object to stream. More... | |
| void | Draw (Option_t *option="") |
| Draw root. More... | |
| TGraph * | GetGraph (double samplingFrequency=1., double scale=1.) const |
| Get a root TGraph (owned by the caller) More... | |
| QVector | GetSubVector (UInt_t size, UInt_t start=0, UInt_t stride=1) |
| const QVector | GetSubVector (UInt_t size, UInt_t start=0, UInt_t stride=1) const |
Public Member Functions inherited from QObject | |
| QObject () | |
| default constructor More... | |
| virtual | ~QObject () |
| destructor More... | |
| QObject & | operator= (const QObject &rhs) |
| operator= More... | |
| void | Validate () |
| make object valid More... | |
| void | InValidate () |
| make object non valid More... | |
| bool | IsValid () const |
| check wheter object is valid More... | |
| void | SetWrite (bool write=true) |
| write or not this object More... | |
| bool | GetWrite () const |
| check wheter write or not this object More... | |
| bool | IsRequired () const |
| check wheter this object is required by some module More... | |
| void | SetIsRequired (bool required=true) |
| set that this object is required More... | |
| bool | IsJustAdded () const |
| check wheter this object has been just added by some module More... | |
| void | SetIsJustAdded (bool added=true) |
| set that this object has been just added More... | |
| void | Reset () |
| set object to non valid and calls Clear() More... | |
| virtual bool | Fill (QObject *evData) const =0 |
| calls operator= of inheriting classes. Validity flag and bits are not copied. This function is automatically declared/implemented in derived classes by QObjectDef/QObjectImp. If evData type mismatches returns false, true otherwise. More... | |
| void | FullyFill (QObject *evData) const |
| calls Fill(QObject*) if this QObject IsValid(). Copies Validity flag and bits More... | |
| virtual QObject * | Duplicate () const =0 |
| create object of same type, this function is automatically declared/implemented in derived classes by QObjectDef/QObjectImp More... | |
| virtual void | Print () const |
| print content on screen More... | |
| virtual QError | WriteOnStream (std::ostream &o) const |
| print content to stream (intended for storage in text files) More... | |
| virtual QError | ReadFromStream (std::istream &o) |
| fill content from stream (intended for storage in text files) More... | |
| void | CopyBits (QObject *obj) const |
| copy validity and temporary bits to another QObject More... | |
Protected Member Functions | |
| QVector (const QVector &orig, const bool dataOwner) | |
| copy constructor for QVector(Const)View More... | |
| QVector (double *vec, const UInt_t size, const UInt_t stride) | |
| constructor not owner More... | |
Protected Attributes | |
| const bool | fDataOwner |
| if this vector onws its data More... | |
| UInt_t | fSize |
| size of the array More... | |
| UInt_t | fAllocSize |
| UInt_t | fStride |
| data stride More... | |
| Double_t * | fData |
| array More... | |
| gsl_vector * | fMathVec |
| temporary gsl_vector to use the gsl library More... | |
Private Member Functions | |
| void | SetMathVector () const |
| QObjectDef (QVector, 4) | |
Static Private Member Functions | |
| static double * | ArrayAlloc (const UInt_t size) |
| static void | ArrayCopy (const double *orig, const UInt_t origStride, double *dest, const UInt_t destStride, const UInt_t size) |
| static void | ArrayFree (double *array) |
Friends | |
| class | QVectorView |
| class | QVectorConstView |
| class | QVectorC |
| class | QMatrix |
| class | QMatrixC |
| class | QMatrixCArray |
| class | QRealComplexFFTW3 |
| class | QFFTWRealComplexPlan |
Additional Inherited Members | |
Public Types inherited from QObject | |
| enum | { kIsValid = BIT(15) , kWrite = BIT(0) , kIsRequired = BIT(1) , kIsJustAdded = BIT(2) } |
| TObject bits. More... | |
Static Public Member Functions inherited from QObject | |
| static QObject * | New (const char *object) |
Interface for vectors in Diana analysis.
This class is intended for use as mathematical vectors, not as container vector (like std::vector). Every class written within the DIANA framework should use this class instead of C arrays or std::vector<double>
Definition at line 30 of file QVector.hh.
| QVector::QVector | ( | ) |
default constructor
Definition at line 84 of file QVector.cc.
References fMathVec.
Referenced by GetSubVector().
|
explicit |
constructor with its size
| size | start size of QVector |
Definition at line 95 of file QVector.cc.
| QVector::QVector | ( | const QVector & | orig | ) |
copy constructor
| orig | original QVector |
Definition at line 109 of file QVector.cc.
References ArrayCopy(), fData, fMathVec, fStride, Resize(), and Size().
|
virtual |
destructor
Definition at line 156 of file QVector.cc.
References ArrayFree(), fAllocSize, fData, fDataOwner, fMathVec, and fSize.
|
protected |
copy constructor for QVector(Const)View
Definition at line 123 of file QVector.cc.
References ArrayCopy(), fAllocSize, fData, fMathVec, fSize, fStride, Resize(), and Size().
|
protected |
| QVector QVector::Abs | ( | ) | const |
Return a vector of the absolute values.
Definition at line 427 of file QVector.cc.
| void QVector::Append | ( | const double | val | ) |
append
add one more element at the end of the vector
| val |
Definition at line 597 of file QVector.cc.
References ArrayAlloc(), ArrayCopy(), ArrayFree(), DianaThrow, fAllocSize, fData, fDataOwner, fMathVec, fSize, fStride, QERR_SIZE_NOT_MATCH, and Size().
Referenced by QTriggerOptimumFilter::BuildOptimumFilter().
|
staticprivate |
Definition at line 32 of file QVector.cc.
References a, DianaThrow, and QERR_UNDERFLOW.
Referenced by Append(), QVectorC::Append(), GetArray(), QVectorC::QVectorC(), Resize(), QVectorC::Resize(), QMatrixC::Resize(), QRealComplexFFTW3::Resize(), QMatrixCArray::Resize(), and QMatrix::Resize().
|
staticprivate |
Definition at line 60 of file QVector.cc.
Referenced by Append(), GetArray(), operator=(), QMatrix::QMatrix(), QMatrixC::QMatrixC(), QVector(), and SetArray().
|
staticprivate |
Definition at line 72 of file QVector.cc.
Referenced by Append(), QVectorC::Append(), QMatrixC::Clear(), QMatrixCArray::Clear(), QRealComplexFFTW3::ClearCache(), Resize(), QVectorC::Resize(), QMatrixC::Resize(), QMatrixCArray::Resize(), QMatrix::Resize(), QMatrix::~QMatrix(), ~QVector(), and QVectorC::~QVectorC().
|
inlinevirtual |
clear the vector
Implements QObject.
Definition at line 406 of file QVector.hh.
References Resize().
Referenced by QAverageVector::Clear(), and QFitter::Fit().
| QVector QVector::Derivative2P | ( | const double | delta = 1. | ) | const |
compute derivative with 2 point interpolation, uses Differentiate()
Definition at line 451 of file QVector.cc.
References Differentiate().
| QVector QVector::Derivative2PF | ( | const double | delta = 1. | ) | const |
compute derivative with forward 2 point interpolation
Definition at line 459 of file QVector.cc.
References Size().
| QVector QVector::Derivative3P | ( | const double | delta = 1. | ) | const |
compute derivative with 3 point interpolation, symmetric
Definition at line 469 of file QVector.cc.
References Size().
| QVector QVector::Derivative3PB | ( | const double | delta = 1. | ) | const |
compute derivative with 3 point interpolation, backward mode
Definition at line 481 of file QVector.cc.
References Size().
| QVector QVector::Derivative3PF | ( | const double | delta = 1. | ) | const |
compute derivative with 3 point interpolation, forward mode
Definition at line 493 of file QVector.cc.
References Size().
| QVector QVector::Derivative5P | ( | const double | delta = 1. | ) | const |
compute derivative with 5 point interpolation, symmetric
Definition at line 508 of file QVector.cc.
References Size().
| QVector QVector::Derivative5PB | ( | const double | delta = 1. | ) | const |
compute derivative with 5 point interpolation, backward mode
Definition at line 524 of file QVector.cc.
References Size().
| QVector QVector::DerivativeEulero | ( | const double | delta = 1. | ) | const |
compute derivative with Eulero interpolation, backward mode
Definition at line 540 of file QVector.cc.
References Size().
| const QVector & QVector::Differentiate | ( | ) |
make vector derivative
Definition at line 442 of file QVector.cc.
References Size().
Referenced by Derivative2P().
multiplication element by element
v[i]=v1[i]/v2[i]
| other |
Definition at line 258 of file QVector.cc.
References b, fMathVec, and SetMathVector().
|
virtual |
|
virtual |
Dump object to stream.
Reimplemented from QObject.
Definition at line 772 of file QVector.cc.
References Size().
| double * QVector::GetArray | ( | ) | const |
get an array of doubles, owned by the caller!
Definition at line 696 of file QVector.cc.
References a, ArrayAlloc(), ArrayCopy(), fData, fSize, and fStride.
|
inline |
get a pointer to the content
Warning! if the current vector is resized you are not granted that this pointer will point to the QVector array.
Definition at line 389 of file QVector.hh.
|
inline |
Definition at line 390 of file QVector.hh.
References fData.
| TGraph * QVector::GetGraph | ( | double | samplingFrequency = 1., |
| double | scale = 1. |
||
| ) | const |
Get a root TGraph (owned by the caller)
Definition at line 761 of file QVector.cc.
References Size().
|
inline |
get maximum element
Definition at line 355 of file QVector.hh.
References fMathVec, and SetMathVector().
Referenced by QGPulse::GetPulseFromChain().
|
inline |
get maximum element index
Definition at line 373 of file QVector.hh.
References fMathVec, and SetMathVector().
| int QVector::GetMaxIndex | ( | const UInt_t | nelem, |
| const UInt_t | first | ||
| ) | const |
get maximum element position between first and first + nelem
Definition at line 680 of file QVector.cc.
References fMathVec, and SetMathVector().
|
inline |
|
inline |
Get Mean.
| nelem | number of elements |
| first | first element |
Definition at line 326 of file QVector.hh.
References Sum().
Referenced by QTriggerBULLDAQ::TriggerStream().
| double QVector::GetMedian | ( | ) | const |
Get median.
Definition at line 641 of file QVector.cc.
References fMathVec, SetMathVector(), and Size().
Referenced by GetMedianAbsoluteDeviation().
| double QVector::GetMedianAbsoluteDeviation | ( | ) | const |
Get median absolute deviation.
Definition at line 666 of file QVector.cc.
References GetMedian(), and Size().
|
inline |
get minimum element
Definition at line 360 of file QVector.hh.
References fMathVec, and SetMathVector().
|
inline |
get minimum element index
Definition at line 378 of file QVector.hh.
References fMathVec, and SetMathVector().
| int QVector::GetMinIndex | ( | const UInt_t | nelem, |
| const UInt_t | first | ||
| ) | const |
get minimum element position between first and first + nelem
Definition at line 688 of file QVector.cc.
References fMathVec, and SetMathVector().
|
inline |
| double QVector::GetRMS | ( | const UInt_t | nelem, |
| const UInt_t | first = 0 |
||
| ) | const |
Get RMS.
| nelem | number of elements |
| first | first element |
Definition at line 632 of file QVector.cc.
References fMathVec, SetMathVector(), and Sum().
Referenced by QTriggerBULLDAQ::TriggerStream().
| QVector QVector::GetSubVector | ( | UInt_t | size, |
| UInt_t | start = 0, |
||
| UInt_t | stride = 1 |
||
| ) |
Definition at line 701 of file QVector.cc.
References DianaThrow, fData, fStride, QERR_SIZE_NOT_MATCH, QVector(), and Size().
Referenced by QTriggerBULLDAQ::TriggerStream().
| const QVector QVector::GetSubVector | ( | UInt_t | size, |
| UInt_t | start = 0, |
||
| UInt_t | stride = 1 |
||
| ) | const |
Definition at line 709 of file QVector.cc.
References DianaThrow, fData, fStride, QERR_SIZE_NOT_MATCH, QVector(), and Size().
| void QVector::Initialize | ( | const double | val = 0 | ) |
initialize elements (default to 0)
| val |
Definition at line 218 of file QVector.cc.
References fData, fSize, and fStride.
Referenced by QFitter::Fit(), and QTriggerOptimumFilter::TriggerStream().
| const QVector & QVector::Integrate | ( | const double | constTerm = 0 | ) |
Integrate vector.
| constTerm | integral constant to be added |
Definition at line 553 of file QVector.cc.
References Size().
multiplication element by element
v[i]=v1[i]*v2[i]
| other |
Definition at line 250 of file QVector.cc.
References b, fMathVec, and SetMathVector().
| double QVector::Norma | ( | ) | const |
|
inline |
Definition at line 66 of file QVector.hh.
References operator[]().
|
inline |
Definition at line 76 of file QVector.hh.
References operator[]().
| double QVector::operator* | ( | const QVector & | other | ) | const |
scalar product
| other | right element |
Definition at line 324 of file QVector.cc.
References fMathVec, and SetMathVector().
| QVector QVector::operator* | ( | double | t | ) | const |
multiply by scalar
| t | right element |
Definition at line 346 of file QVector.cc.
| const QVector & QVector::operator*= | ( | const double | t | ) |
multiplication by scalar
| t |
Definition at line 272 of file QVector.cc.
References fMathVec, and SetMathVector().
Referenced by operator/=().
subtract a QVector
| v |
Definition at line 310 of file QVector.cc.
References fMathVec, and SetMathVector().
sum vector
| other | right element |
Definition at line 360 of file QVector.cc.
| QVector QVector::operator+ | ( | double | t | ) | const |
add scalar
| t | right element |
Definition at line 333 of file QVector.cc.
| const QVector & QVector::operator+= | ( | const double | v | ) |
sum scalar to all elements
| t |
Definition at line 280 of file QVector.cc.
References fMathVec, and SetMathVector().
add a QVector
| v |
Definition at line 294 of file QVector.cc.
References fMathVec, and SetMathVector().
| QVector QVector::operator- | ( | ) | const |
revert sign to all components
Definition at line 244 of file QVector.cc.
subtract vector
| other | right element |
Definition at line 367 of file QVector.cc.
| QVector QVector::operator- | ( | double | t | ) | const |
subtract scalar
| t | right element |
Definition at line 340 of file QVector.cc.
| const QVector & QVector::operator-= | ( | const double | v | ) |
subtract scalar to all elements
| t |
Definition at line 287 of file QVector.cc.
References fMathVec, and SetMathVector().
subtract a QVector
| v |
Definition at line 302 of file QVector.cc.
References fMathVec, and SetMathVector().
| QVector QVector::operator/ | ( | double | t | ) | const |
divide by scalar
| t | right element |
Definition at line 353 of file QVector.cc.
| const QVector & QVector::operator/= | ( | const double | v | ) |
divide by scalar
| t |
Definition at line 267 of file QVector.cc.
References operator*=().
subtract a QVector
| v |
Definition at line 317 of file QVector.cc.
References fMathVec, and SetMathVector().
copy the content from another QVector
| orig | original QVector |
Definition at line 188 of file QVector.cc.
References ArrayCopy(), fData, fSize, fStride, and Resize().
Referenced by QAverageVector::operator=(), and QAverageVector::ReadFromStream().
copy the content from a QVectorI
Definition at line 194 of file QVector.cc.
References fData, fSize, fStride, Resize(), and QVectorI::Size().
| const QVector & QVector::operator= | ( | const std::vector< double > & | orig | ) |
| double & QVector::operator[] | ( | const UInt_t | i | ) |
retrieve an element
| i | ith element |
Definition at line 223 of file QVector.cc.
References DianaThrow, fData, fSize, fStride, and QERR_OUT_OF_RANGE.
Referenced by operator()(), and Reverse().
| const double & QVector::operator[] | ( | const UInt_t | i | ) | const |
retrieve an element
version for objects that cannot modify the QVector
| i | ith element |
Definition at line 233 of file QVector.cc.
References DianaThrow, fData, fSize, fStride, and QERR_OUT_OF_RANGE.
|
private |
| const QVector & QVector::Rebin | ( | const int | rebin, |
| bool | sum = false |
||
| ) |
Rebin the vector.
| rebin | Combine rebin bins into one |
| sum | Either sum the bins together (if sum is true), otherwise average them |
Definition at line 383 of file QVector.cc.
| QMatrix QVector::Reshape | ( | UInt_t | n, |
| UInt_t | m | ||
| ) |
reshape the vector into a matrix
IMPORANT NOTE: These algorithms do not work if the vector has a non-unity stride!
Definition at line 568 of file QVector.cc.
References fData, fStride, QERR_SIZE_NOT_MATCH, and Size().
| const QMatrix QVector::Reshape | ( | UInt_t | n, |
| UInt_t | m | ||
| ) | const |
reshape the vector into a matrix
IMPORANT NOTE: These algorithms do not work if the vector has a non-unity stride!
Definition at line 582 of file QVector.cc.
References fData, fStride, QERR_SIZE_NOT_MATCH, and Size().
| void QVector::Resize | ( | const UInt_t | newsize | ) |
resize a QVector
| newsize |
Definition at line 170 of file QVector.cc.
References ArrayAlloc(), ArrayFree(), DianaThrow, fAllocSize, fData, fDataOwner, fMathVec, fSize, fStride, and QERR_SIZE_NOT_MATCH.
Referenced by QMatrix::CholeskySolveX(), Clear(), QFitter::Fit(), QFFT::GetWindow(), QMatrixC::HermitianEigenSystem(), operator=(), QVector(), Rebin(), SetArray(), and QTriggerOptimumFilter::TriggerStream().
| const QVector & QVector::Reverse | ( | ) |
time reversal of the vector
Definition at line 374 of file QVector.cc.
References operator[](), and Size().
| void QVector::SetArray | ( | const double * | orig, |
| const UInt_t | size | ||
| ) |
get a constant pointer to the content
copy the content of an array into the vector
| orig | original array |
| size | number of elements in the array |
Definition at line 719 of file QVector.cc.
References ArrayCopy(), fData, fStride, and Resize().
|
private |
Definition at line 207 of file QVector.cc.
References fData, fMathVec, fSize, and fStride.
Referenced by QMatrix::CholeskySolveX(), Div(), QVectorC::Div(), QVectorC::DivIn(), QMatrix::GetCol(), GetMax(), GetMaxIndex(), GetMedian(), GetMin(), GetMinIndex(), GetRMS(), QMatrix::GetRow(), QMatrixC::HermitianEigenSystem(), QMatrixC::HermitianEigenValues(), Mult(), QVectorC::Mult(), QVectorC::MultIn(), operator*(), operator*=(), operator+=(), QVectorC::operator+=(), operator-=(), operator/=(), QMatrixC::SetCol(), QMatrix::SetCol(), QMatrixC::SetRow(), QMatrix::SetRow(), and Sort().
| const QVector & QVector::Shift | ( | const int | nstep | ) |
Cyclic shift of vector.
| nstep | if > 0 shift right, if < 0 shift left |
Definition at line 395 of file QVector.cc.
Referenced by QTriggerOptimumFilter::BuildOptimumFilter(), ShiftReal(), QTriggerOptimumFilter::TriggerStream(), and QFFT::ZeroPad().
| const QVector & QVector::ShiftReal | ( | const double | fstep | ) |
Cyclic shift of vector by a real number, first shift by the integer part of fstep then linear interpolation between samples is performed.
| fstep | if > 0 shift right, if < 0 shift left |
Definition at line 413 of file QVector.cc.
|
inline |
size of QVector
Definition at line 54 of file QVector.hh.
References fSize.
Referenced by Abs(), Append(), QVectorC::Append(), QMatrix::CholeskySolveX(), QFFT::CutSides(), Derivative2PF(), Derivative3P(), Derivative3PB(), Derivative3PF(), Derivative5P(), Derivative5PB(), DerivativeEulero(), Differentiate(), QVectorC::Div(), MSorter::Do(), Dump(), QTriggerOptimumFilter::Filter(), QFitter::Fit(), GetArrayVector(), GetGraph(), GetMedian(), GetMedianAbsoluteDeviation(), QGPulse::GetPulseFromChain(), GetSubVector(), QFFT::GetWindow(), MSorter::Init(), Integrate(), QVectorC::Mult(), QVectorC::MultIn(), operator<<(), QVectorI::operator=(), QMatrix::QMatrix(), QMatrixC::QMatrixC(), QVector(), QVectorC::QVectorC(), QVectorConstView::QVectorConstView(), QVectorView::QVectorView(), Rebin(), Reshape(), Reverse(), QMatrixC::SetCol(), QMatrix::SetCol(), QVectorC::SetIm(), QVectorC::SetRe(), QMatrixC::SetRow(), QMatrix::SetRow(), Shift(), ShiftReal(), sqlString(), T(), QTriggerBULLDAQ::TriggerStream(), and QFFT::ZeroPad().
| const QVector & QVector::Sort | ( | const bool | asc = true | ) |
sort this vector
| asc | if true ascending if false descending |
Definition at line 434 of file QVector.cc.
References fMathVec, and SetMathVector().
Referenced by QMatrixC::HermitianEigenValues().
| std::string QVector::sqlString | ( | ) | const |
@ brief return string needed to dump vector into sql DB
Definition at line 726 of file QVector.cc.
References Size().
|
inline |
| double QVector::Sum | ( | UInt_t | nelem, |
| UInt_t | first = 0 |
||
| ) | const |
sum elements
Definition at line 624 of file QVector.cc.
Referenced by QTriggerOptimumFilter::BuildOptimumFilter(), and QTriggerBULLDAQ::TriggerStream().
| QMatrix QVector::T | ( | ) | const |
transpose
a transposed vector is a matrix with a single row
Definition at line 561 of file QVector.cc.
References QMatrix::SetRow(), and Size().
|
friend |
Definition at line 462 of file QVector.hh.
|
friend |
Definition at line 458 of file QVector.hh.
|
friend |
Definition at line 459 of file QVector.hh.
|
friend |
Definition at line 460 of file QVector.hh.
|
friend |
Definition at line 461 of file QVector.hh.
|
friend |
Definition at line 457 of file QVector.hh.
|
friend |
Definition at line 456 of file QVector.hh.
|
friend |
Definition at line 455 of file QVector.hh.
|
protected |
Definition at line 438 of file QVector.hh.
Referenced by Append(), QVector(), Resize(), and ~QVector().
|
protected |
array
Definition at line 444 of file QVector.hh.
Referenced by Append(), GetArray(), GetArrayVector(), GetConstArray(), GetSubVector(), Initialize(), operator=(), operator[](), QMatrix::QMatrix(), QMatrixC::QMatrixC(), QVector(), QVectorConstView::QVectorConstView(), QVectorView::QVectorView(), Reshape(), Resize(), SetArray(), SetMathVector(), and ~QVector().
|
protected |
if this vector onws its data
Definition at line 433 of file QVector.hh.
Referenced by Append(), Resize(), and ~QVector().
|
mutableprotected |
temporary gsl_vector to use the gsl library
Definition at line 447 of file QVector.hh.
Referenced by Append(), QMatrix::CholeskySolveX(), Div(), QVectorC::Div(), QVectorC::DivIn(), QMatrix::GetCol(), GetMax(), GetMaxIndex(), GetMedian(), GetMin(), GetMinIndex(), GetRMS(), QMatrix::GetRow(), QMatrixC::HermitianEigenSystem(), QMatrixC::HermitianEigenValues(), Mult(), QVectorC::Mult(), QVectorC::MultIn(), operator*(), operator*=(), operator+=(), QVectorC::operator+=(), operator-=(), operator/=(), QVector(), Resize(), QMatrixC::SetCol(), QMatrix::SetCol(), SetMathVector(), QMatrixC::SetRow(), QMatrix::SetRow(), Sort(), and ~QVector().
|
protected |
size of the array
Definition at line 436 of file QVector.hh.
Referenced by Append(), QVectorC::Div(), QVectorC::DivIn(), Draw(), GetArray(), GetMean(), GetRMS(), Initialize(), QVectorC::operator+=(), operator=(), operator[](), QVector(), QVectorC::QVectorC(), QVectorConstView::QVectorConstView(), QVectorView::QVectorView(), Resize(), SetMathVector(), Size(), Sum(), and ~QVector().
|
protected |
data stride
Definition at line 441 of file QVector.hh.
Referenced by Append(), GetArray(), GetSubVector(), Initialize(), operator=(), operator[](), QMatrix::QMatrix(), QMatrixC::QMatrixC(), QVector(), QVectorConstView::QVectorConstView(), QVectorView::QVectorView(), Reshape(), Resize(), SetArray(), and SetMathVector().