PPM-DU analysis  2.3
conversion and analysis of the PPM-DU data
 All Classes Files Functions Variables Pages
Functions
/home/alex/Work/Research/Km3NeT/PPM-DU/ppm-du-v2.3/triggeringDOM.cc File Reference
#include "triggeringDOM.h"
#include <algorithm>
#include <iostream>

Go to the source code of this file.

Functions

void FillSignals (const signals sig, std::vector< signals > &vSig)
 Merging of the signals of all the pmts of the dom. More...
 
void SortSignals (std::vector< signals > &vSig)
 
bool AreNeighbours (const int id1, const int id2)
 Check if 2 pmts are close enough (neighbours) More...
 
bool DoT2Pmts (const std::vector< signals > &vSig, std::vector< triggeredSignals > &vTrig)
 
bool DoT2Pmts (const std::vector< signals > &vSig, std::vector< triggeredSignals > &vTrig, const int coincWindow)
 
bool DoT2Pmts (const std::vector< signals > &vSig, std::vector< triggeredSignals > &vTrig, const int coincWindow, const int refId)
 
bool DoSlidingT (const std::vector< signals > &vSig, std::vector< triggeredSignals > &vTrig)
 
bool DoTmultiPmts (const std::vector< signals > &vSig, std::vector< triggeredSignals > &vTrig, const int coincWindow)
 
bool SelectingMultiplicity (std::vector< triggeredSignals > &vTrigInit, std::vector< triggeredSignals > &vTrigFinal, const int multiplicity)
 remove all dom events with a multiplicity lower than the chosen one More...
 

Function Documentation

bool AreNeighbours ( const int  id1,
const int  id2 
)

Check if 2 pmts are close enough (neighbours)

Definition at line 85 of file triggeringDOM.cc.

bool DoSlidingT ( const std::vector< signals > &  vSig,
std::vector< triggeredSignals > &  vTrig 
)

If the stop of the first signal is larger than the start of the following we have a trigger. The process is continued for the next signal for which the stop of second signal is compared to the start of the third, and so on until the end of the dom...

Definition at line 179 of file triggeringDOM.cc.

bool DoT2Pmts ( const std::vector< signals > &  vSig,
std::vector< triggeredSignals > &  vTrig 
)

we look at the coincidence between 2 pmts. If no coincWindow is given, the coincidence occurs if the stop of the first signal is larger than the start of the following. If the coincWindow is set, coincidence occurs if we have 2 starts within the window. It works for all Pmts. If the refID is set, then only the coincidence involving the Pmt with the refID is can occur

Definition at line 94 of file triggeringDOM.cc.

bool DoT2Pmts ( const std::vector< signals > &  vSig,
std::vector< triggeredSignals > &  vTrig,
const int  coincWindow 
)

Definition at line 112 of file triggeringDOM.cc.

bool DoT2Pmts ( const std::vector< signals > &  vSig,
std::vector< triggeredSignals > &  vTrig,
const int  coincWindow,
const int  refId 
)

Definition at line 154 of file triggeringDOM.cc.

bool DoTmultiPmts ( const std::vector< signals > &  vSig,
std::vector< triggeredSignals > &  vTrig,
const int  coincWindow 
)

we look at the coincidence between all pmts. If no coincWindow is given, the coincidence occurs if the stop of the first signal is larger than the start of the following. If the coincWindow is set, coincidence occurs if we have 2 starts within the window.

Definition at line 209 of file triggeringDOM.cc.

void FillSignals ( const signals  sig,
std::vector< signals > &  vSig 
)

Merging of the signals of all the pmts of the dom.

Definition at line 7 of file triggeringDOM.cc.

bool SelectingMultiplicity ( std::vector< triggeredSignals > &  vTrigInit,
std::vector< triggeredSignals > &  vTrigFinal,
const int  multiplicity 
)

remove all dom events with a multiplicity lower than the chosen one

Definition at line 253 of file triggeringDOM.cc.

void SortSignals ( std::vector< signals > &  vSig)

Sorting of the signals of all the pmts of the dom according to the start time.

Definition at line 13 of file triggeringDOM.cc.