9 #ifndef __PARTIAL_COVARIANCE_H__
10 #define __PARTIAL_COVARIANCE_H__
484 double calcTofValue(
const double tofPos,
const size_t binlow ,
485 const double bin_size,
const result_t& TofHisto);
613 double calcTofValue(
const double tofPos,
const size_t binlow ,
614 const double bin_size,
const result_t& TofHisto);
788 const float intensity ,
789 const float intensityAveOld,
798 #endif // __PARTIAL_COVARIANCE_H__
double calcToftoMtC(double Timeoflight)
convert Time of Flight to mass to charge ratio
check if there is some light in the chamber based upon the pulse energy
size_t bintb1
tb1 converted to bin
double tb1
The lower limit for calculating baseline.
Event to store all LCLS Data.
convert time of flight to charge to mass ratio
size_t bintb2
tb2 converted to bin
void ToftoMtC(const result_t &hist, result_t &MtC, double offset)
create m to q histogram from ToF histogram
std::vector< value_t > storage_t
the storage of this container
double tb2
The upper limit for calculating baseline.
double e0
retardation voltage
virtual void loadSettings(size_t)
load the settings of the pp
virtual void loadSettings(size_t)
load the settings of the pp
void calcCovariance(const result_t &waveTrace, const result_t &waveTraceAve, const float intensity, const float intensityAveOld, result_t &correction, float n)
calculate covariance
std::pair< float, float > _userTofRange
the user requested Tof-axis limits
file contains declaration of the CASSEvent
size_t binTofLow
lower limit converted to bin
shared_pointer _pHist
pp containing input histogram
shared_pointer _pHist
pp containing input histogram
double e0
retardation voltage
converts a Electron Time of Flight trace to Energy
double offset
the calculated level of baseline
size_t bintb1
tb1 converted to bin
size_t binTofLow
lower limit converted to bin
double calcEtoTof(double energy)
retrieve the time that corresponses to a given energy
shared_pointer _ave1D
pp containing input histogram 1D it should be averaged _hist1D
shared_pointer _ave0D
pp containing input histogram 0D it should be averaged _hist0D
double t0
corrects the time of flight
double calcEtoTof(double energy)
retrieve the time that corresponses to a given energy
std::pair< float, float > _userTofRange
the user requested Tof-axis limits
double MtC1
mass to charge ratio of t1
double alpha
Coefficient to convert to energy.
virtual void process(const CASSEvent &, result_t &)
process event
virtual void process(const CASSEvent &, result_t &)
process event
double MtC0
mass to charge ratio of t0
double tb2
The upper limit for calculating baseline.
std::pair< float, float > _userTofRange
the user requested Tof-axis limits
double ediff
difference from expected energy
shared_pointer _ave
pp containing input histogram
calculate intensity correction
virtual void loadSettings(size_t)
load the settings
size_t bintb2
tb2 converted to bin
size_t bintb2
tb2 converted to bin
size_t bintb1
tb1 converted to bin
virtual void loadSettings(size_t)
load the settings of the pp
virtual void process(const CASSEvent &, result_t &)
process event
size_t binTofUp
Upper limit converted to bin.
double t0
corrects the time of flight
void ToftoEnergy(const result_t &TofHisto, result_t &Energy, double offset)
make the histgram in energy scale.
double tb1
The lower limit for calculating baseline.
shared_pointer _pHist
pp containing input histogram
calc the pulse duration from the bld
size_t bintb2
tb2 converted to bin
shared_pointer _pHist
pp containing input histogram
double tb1
The lower limit for calculating baseline.
virtual void loadSettings(size_t)
load the settings
pp400(const name_t &)
constructor
base class for processors.
size_t bint0
t0 converted to bin
double calcTofValue(const double tofPos, const size_t binlow, const double bin_size, const result_t &TofHisto)
retrieve the linear interpolation value
double calcEtoTof(double energy)
retrieve the time that corresponses to a given energy
size_t NbrBins
number of bins in converted histgram
double tb2
The upper limit for calculating baseline.
size_t bintb1
tb1 converted to bin
size_t binTofLow
lower limit converted to bin
double alpha
Coefficient to convert to energy.
double tb1
The lower limit for calculating baseline.
size_t NbrBins
number of bins in converted histgram
double t0
corrects the time of flight
size_t binTofUp
Upper limit converted to bin.
void ToftoEnergy(const result_t &TofHisto, result_t &Energy, double offset)
make the histogram in energy scale.
virtual void process(const CASSEvent &, result_t &)
calc the pulse duration from the bld
double calcEtoTof(double energy)
retrieve the time that corresponses to a given energy
virtual void loadSettings(size_t)
load the settings of the pp
pp412(const name_t &)
constructor
size_t NbrBins
number of bins in converted histgram
double ediff
corrects from photon energy value
shared_pointer _constHist
pp containing input OD histogram
Tof to Energy correct from 0D histogram.
double alpha
Coefficient to convert to energy.
auxiliary data[Processor]
pp408(const name_t &)
constructor
file contains processors baseclass declaration
double e0
retardation voltage
double t1
another time of flight of ion that we choosed
size_t binTofUp
Upper limit converted to bin.
set up the common mode correction
Tof to Energy linear interpolation.
double tb2
The upper limit for calculating baseline.
size_t NbrBins
number of bins in converted histgram
double tb2
The upper limit for calculating baseline.
shared_pointer _pHist
pp containing histogram to work on
void ToftoEnergy(const result_t &TofHisto, result_t &Energy, double offset)
make the histgram in energy scale.
virtual void process(const CASSEvent &, result_t &)
process event
size_t bint0
t0 converted to bin
double e0
retardation voltage
double calcTofValue(const double tofPos, const size_t binlow, const double bin_size, const result_t &TofHisto)
retrieve the linear interpolation value
size_t bint0
t0 converted to bin
size_t binTofLow
lower limit converted to bin
void calcCovariance(const result_t &data, const result_t::storage_t &averageOld, const result_t &averageNew, result_t &variance, float n)
calculate the covariance map
size_t bint0
t0 converted to bin
an accumulating processor
double t0
corrects the time of flight
pp407(const name_t &)
constructor
virtual void process(const CASSEvent &, result_t &)
process event
double calcMtCtoTof(double MasstoCharge)
calculate the tof from the mass to charge ratio
std::pair< float, float > _userTofRange
the user requested Tof-axis limits
virtual void loadSettings(size_t)
load the settings of the pp
virtual void loadSettings(size_t)
load the settings from cass.ini
size_t bintb2
tb2 converted to bin
size_t binTofUp
Upper limit converted to bin.
pp405(const name_t &)
constructor
size_t bintb1
tb1 converted to bin
virtual void process(const CASSEvent &, result_t &)
process event
std::string name_t
define the name type
size_t NbrBins
number of bins in converted histgram
std::pair< float, float > _userTofRange
the user requested Tof-axis limits
std::tr1::shared_ptr< Processor > shared_pointer
a shared pointer of this
Tof to Energy linear interpolation and correct from 0d histogram.
void ToftoEnergy(const result_t &TofHisto, result_t &Energy, double offset)
make the histogram in energy scale.
shared_pointer _hist1D
pp containing input histogram 1D
shared_pointer _pHist
pp containing input histogram
virtual void process(const CASSEvent &, result_t &)
process event
pp406(const name_t &)
constructor
size_t binTofLow
lower limit converted to bin
shared_pointer _constHist
pp containing input OD histogram
pp404(const name_t &)
constructor
size_t binTofUp
Upper limit converted to bin.
pp410(const name_t &)
constructor
double alpha
Coefficient to convert to energy.
double t0
a time of flight of ion that we choosed
double tb1
The lower limit for calculating baseline.
shared_pointer _hist0D
pp containing input histogram 0D