1 #ifndef _M_JITTERBYCOINCIDENCE_HH_
2 #define _M_JITTERBYCOINCIDENCE_HH_
56 #include "QDetChannelCollectionHandle.hh"
57 #include "QDetChannelCollection.hh"
68 void Init(Diana::QEvent& ev);
71 void Do(Diana::QEvent& ev);
97 std::map<int,std::map<int,std::vector<double> > >
fDeltaT;
115 void SaveJitter(
int ch,
double jitter,
double jitter_error);
Calculates time jitter between couples of channels using coincident events.
Diana::QEventLabel fEnergyLabel
double FindJitter(int ch, int o_ch)
FindJitter function.
double FindJitterRMS(int ch, int o_ch)
FindJitterRMS function.
double fJitterSum
Stores sum of jitters between floors as the floors are being processed.
double fJitterErrorSum
Stores sum of jitters errors (in quadrature) between floors as the floors are being processed.
std::map< int, std::map< int, std::vector< double > > > fDeltaT
Map of vectors containing deltaT between couples of channels in coincident events.
std::map< int, std::map< int, double > > fJitter
Map of Jitter between couples of channels, calculated from deltaT above.
std::string fJitterByDelaySource
int fRefCh
Reference Channel.
void Init(Diana::QEvent &ev)
Init method.
void Do(Diana::QEvent &ev)
Do method
void SaveJitter(int ch, double jitter, double jitter_error)
SaveJitter function.
int FindChanWithPosInTowerFloor(int pos, int tower, int floor)
FindPos function.
std::string fCoincidenceDataOwner
std::set< int > fGoodChannels
Stores the channels with thermistor ranking >=1 as the floors are being processed.
std::string fOutput
Jitter output (file or DB, for the moment only file works)
std::map< int, std::map< int, double > > fJitterRMS
Map of JitterRMS/N between couples of channels, calculated from deltaT above.
int ProcessFloor(int pos, int tower, int floor)
ProcessFloor function.