![]() |
Diana Software
|
Calculates time jitter between couples of channels using coincident events. More...
Public Member Functions | |
| void | Init (Diana::QEvent &ev) |
| Init method. More... | |
| void | Do (Diana::QEvent &ev) |
| Do method More... | |
| void | Done () |
| Done method. More... | |
Private Member Functions | |
| void | SaveJitter (int ch, double jitter, double jitter_error) |
| SaveJitter function. More... | |
| double | FindJitter (int ch, int o_ch) |
| FindJitter function. More... | |
| double | FindJitterRMS (int ch, int o_ch) |
| FindJitterRMS function. More... | |
| int | FindChanWithPosInTowerFloor (int pos, int tower, int floor) |
| FindPos function. More... | |
| int | ProcessFloor (int pos, int tower, int floor) |
| ProcessFloor function. More... | |
Private Attributes | |
| std::string | fOutput |
| Jitter output (file or DB, for the moment only file works) More... | |
| std::string | fCoincidenceDataOwner |
| std::string | fJitterByDelaySource |
| int | fDataset |
| Dataset. More... | |
| int | fRun |
| int | fTower |
| int | fRefCh |
| Reference Channel. More... | |
| bool | fRefCh_IsSet |
| bool | fLastFloor |
| Diana::QEventLabel | fEnergyLabel |
| std::map< int, std::map< int, std::vector< double > > > | fDeltaT |
| Map of vectors containing deltaT between couples of channels in coincident events. More... | |
| std::map< int, std::map< int, double > > | fJitter |
| Map of Jitter between couples of channels, calculated from deltaT above. More... | |
| std::map< int, std::map< int, double > > | fJitterRMS |
| Map of JitterRMS/N between couples of channels, calculated from deltaT above. More... | |
| std::set< int > | fGoodChannels |
| Stores the channels with thermistor ranking >=1 as the floors are being processed. More... | |
| double | fJitterSum |
| Stores sum of jitters between floors as the floors are being processed. More... | |
| double | fJitterErrorSum |
| Stores sum of jitters errors (in quadrature) between floors as the floors are being processed. More... | |
Calculates time jitter between couples of channels using coincident events.
Calculates time jitter between couples of channels, using multiplicity two events. The jitter of each channel is calculated with respect to a reference channel, which is either read by cfg or assumed to be the channel occupying position number 1 * on the first floor (if there are more that one floor) for each tower (if there are more towers). Prior to the module, the user should use an EnergyFilter to select the range of total energy for the coincident events, for example if one wants to use the 2615 peak, the filter should look like:
filter EnergyFilter verbosity = info enable = true Logic = CASE EnergyRangesInput = EnergyRangesOutput = EnergyLabel = Coincidence@TotalEnergy EnergyMin = 2600 EnergyMax = 2630 ExtraLabel = TotalEnergy endmod
module JitterByCoincidence verbosity = info enable = true CoincidenceDataOwner = Coincidence ReferenceChannel = 1 Output = jitter.txt endmod
Definition at line 63 of file MJitterByCoincidence.hh.
| void MJitterByCoincidence::Do | ( | Diana::QEvent & | ev | ) |
Do method
Definition at line 55 of file MJitterByCoincidence.cc.
References abs(), cd(), channel, QEvent::Get(), QPulseInfo::GetChannelId(), and QHeader::GetRun().
| void MJitterByCoincidence::Done | ( | ) |
|
private |
|
private |
FindJitter function.
Definition at line 236 of file MJitterByCoincidence.cc.
|
private |
FindJitterRMS function.
Definition at line 255 of file MJitterByCoincidence.cc.
| void MJitterByCoincidence::Init | ( | Diana::QEvent & | ev | ) |
Init method.
Definition at line 24 of file MJitterByCoincidence.cc.
References Q_INT_DEFAULT, Q_STRING_DEFAULT, QEvent::Require(), and QEvent::RequireByLabel().
|
private |
|
private |
SaveJitter function.
Definition at line 299 of file MJitterByCoincidence.cc.
References QJitter::Clear(), QJitter::fJitter, QJitter::fJitterError, QJitter::fRefChannel, QJitterHandle::SetCalibLabel(), and QJitterHandle::SetCalibVersion().
|
private |
Definition at line 80 of file MJitterByCoincidence.hh.
|
private |
Dataset.
Definition at line 84 of file MJitterByCoincidence.hh.
|
private |
Map of vectors containing deltaT between couples of channels in coincident events.
Definition at line 97 of file MJitterByCoincidence.hh.
|
private |
Definition at line 94 of file MJitterByCoincidence.hh.
|
private |
Stores the channels with thermistor ranking >=1 as the floors are being processed.
Definition at line 106 of file MJitterByCoincidence.hh.
|
private |
Map of Jitter between couples of channels, calculated from deltaT above.
Definition at line 100 of file MJitterByCoincidence.hh.
|
private |
Definition at line 81 of file MJitterByCoincidence.hh.
|
private |
Stores sum of jitters errors (in quadrature) between floors as the floors are being processed.
Definition at line 112 of file MJitterByCoincidence.hh.
|
private |
Map of JitterRMS/N between couples of channels, calculated from deltaT above.
Definition at line 103 of file MJitterByCoincidence.hh.
|
private |
Stores sum of jitters between floors as the floors are being processed.
Definition at line 109 of file MJitterByCoincidence.hh.
|
private |
Definition at line 92 of file MJitterByCoincidence.hh.
|
private |
Jitter output (file or DB, for the moment only file works)
Definition at line 79 of file MJitterByCoincidence.hh.
|
private |
Reference Channel.
Definition at line 89 of file MJitterByCoincidence.hh.
|
private |
Definition at line 91 of file MJitterByCoincidence.hh.
|
private |
Definition at line 85 of file MJitterByCoincidence.hh.
|
private |
Definition at line 86 of file MJitterByCoincidence.hh.