Main trigger algorithms. More...
Go to the source code of this file.
Macros | |
#define | FREE(_x_) { free(_x_); _x_ = nullptr; } |
Functions | |
void | HugeShower (struct t2 *input, int nt2, int msec) |
Function called when more than MAXSTATINONEBIN are in 5 consecutive bins of the time histogram. More... | |
void | XbAlgoFindCluster (int minstat, struct t2 *input, int nt2, unsigned short *nbt2inbin, struct t2 *listt2inbin[110000][30], int(*T3func)(), const char *algo) |
Function called to find clusters. More... | |
void | XbAlgoFree (t2list in) |
frees the malloced part of the list of t2 More... | |
void | XbAlgoT2Init () |
initialisation of XbAlgoT2 algorithm, building fake station and resetting histograms More... | |
vector< t2list > | XbAlgoT2Process (struct t2 *input, int nt2) |
Main function, processing T2 and returning clusters of T2. More... | |
t3 | XbAlgoT3Build (struct t2list in) |
builds t3 from a list of t2 More... | |
int | XbAlgoT3FullArray () |
Full Array current trigger: 2C1 & 3C2 & 4C4. More... | |
int | XbAlgoT3ToT () |
ToT current trigger: 2C1 & 3C2. More... | |
Variables | |
static int | binnumber = 110000 |
static int | binsize |
static struct t2 | carmenmiranda [1024] |
t2 from one of the doublets to be used in the doublet special trigger More... | |
static struct t2 * | compteurt2 [110000][30] |
histogram of these t2 per time bin, poiting to the precise t2 More... | |
static struct t2 * | compteurtot [110000][30] |
static int | cour [5] |
static int | delay = 0 |
static int | delaycm = 0 |
static int | delaydn = 0 |
static int | delaymr = 0 |
static struct t2 | extrat2 [1024] |
t2 at the end of the second that will be used in both seconds More... | |
static struct t2 | extrat2old [1024] |
static struct t2 | fake |
the fake trigger, not in cluster with any trigger, to be used when one removes a trigger from a cluster More... | |
static int | nbt2cluster |
number of t2 cluster More... | |
static unsigned short | ncompteurt2 [110000] |
number of t2 per time bin More... | |
static unsigned short | ncompteurtot [110000] |
static int | nextra = 0 |
int | observer = 0 |
static int | oldbinnumber = 110000 |
vector< t2list > | out |
output of the algorithm: a list of clusters More... | |
static struct t2list | t2cluster [1000] |
t2 clusters More... | |
Main trigger algorithms.
Definition in file XbAlgo.cc.
#define FREE | ( | _x_ | ) | { free(_x_); _x_ = nullptr; } |
Definition at line 12 of file XbAlgo.cc.
Referenced by XbAlgoFree(), and XbAlgoT2Process().
void HugeShower | ( | struct t2 * | input, |
int | nt2, | ||
int | msec | ||
) |
Function called when more than MAXSTATINONEBIN are in 5 consecutive bins of the time histogram.
Definition at line 55 of file XbAlgo.cc.
References t2list::algo, utl::m, nbt2cluster, t2list::nelem, t2list::point, t2cluster, and t2::time.
Referenced by XbAlgoFindCluster().
void XbAlgoFindCluster | ( | int | minstat, |
struct t2 * | input, | ||
int | nt2, | ||
unsigned short * | nbt2inbin, | ||
struct t2 * | listt2inbin[110000][30], | ||
int(*)() | T3func, | ||
const char * | algo | ||
) |
Function called to find clusters.
Definition at line 77 of file XbAlgo.cc.
References utl::abs(), t2list::algo, binnumber, binsize, cour, dtime, fake, HugeShower(), t2::ID, utl::m, nbt2cluster, neighbour, t2list::nelem, nstat, t2list::point, ROW, t2cluster, and t2::time.
Referenced by XbAlgoT2Process().
void XbAlgoFree | ( | t2list | in | ) |
frees the malloced part of the list of t2
Definition at line 429 of file XbAlgo.cc.
References FREE, and t2list::point.
void XbAlgoT2Init | ( | ) |
initialisation of XbAlgoT2 algorithm, building fake station and resetting histograms
Definition at line 37 of file XbAlgo.cc.
References FAKE, fake, t2::ID, MAXBINNUMBER, ncompteurt2, ncompteurtot, and t2::time.
Referenced by CentralTriggerSimulatorXb::CentralTriggerSimulator::Run().
Main function, processing T2 and returning clusters of T2.
Definition at line 153 of file XbAlgo.cc.
References utl::abs(), t2list::algo, binnumber, binsize, CARMEN, carmen_miranda, carmenmiranda, debug, delay, delaycm, delaydn, delaymr, DIA, dtime, t2::energy, extrat2, extrat2old, fake, FREE, t2::ID, InternalLog, utl::m, MAXOVERLAP, MAXSTATINONEBIN, MIRANDA, MOULIN, nbt2cluster, ncompteurt2, ncompteurtot, t2list::nelem, newt2config, nextra, NOCHE, observer, oldbinnumber, out, t2list::point, ROUGE, utl::s, second_, t2cluster, t2::time, TOTVALUE, trivial_algo, verbose, XbAlgoFindCluster(), XbAlgoT3FullArray(), and XbAlgoT3ToT().
Referenced by CentralTriggerSimulatorXb::CentralTriggerSimulator::Run().
Definition at line 434 of file XbAlgo.cc.
References t2list::algo, t3::algo, array, distcrown, t2::ID, Station::Id, t3stat::ID, t2list::nelem, nstat, t3stat::offset, t2list::point, t3::point, t3::refSecond, t3::refuSecond, ROW, second_, t2::time, and t3stat::window.
Referenced by CentralTriggerSimulatorXb::CentralTriggerSimulator::Run().
int XbAlgoT3FullArray | ( | ) |
Full Array current trigger: 2C1 & 3C2 & 4C4.
Definition at line 45 of file XbAlgo.cc.
References cour.
Referenced by XbAlgoT2Process().
int XbAlgoT3ToT | ( | ) |
ToT current trigger: 2C1 & 3C2.
Definition at line 50 of file XbAlgo.cc.
References cour.
Referenced by XbAlgoT2Process().
|
static |
Definition at line 25 of file XbAlgo.cc.
Referenced by ThresholdCalculatorKG::ThresholdCalculator::Finish(), kResolutionMatrixZenith_J(), XbAlgoFindCluster(), and XbAlgoT2Process().
|
static |
Definition at line 25 of file XbAlgo.cc.
Referenced by FdTriggerSimulatorOG::FdTriggerSimulator::MakeMirrorEvent(), TestOfflineUtils_ROOT_io::testMultiTrace(), TestOfflineUtils_ROOT_io::testTraceD(), TestOfflineUtils_ROOT_io::testTraceI(), XbAlgoFindCluster(), and XbAlgoT2Process().
|
static |
t2 from one of the doublets to be used in the doublet special trigger
Definition at line 17 of file XbAlgo.cc.
Referenced by XbAlgoT2Process().
|
static |
|
static |
Definition at line 26 of file XbAlgo.cc.
Referenced by XbAlgoFindCluster(), XbAlgoT3FullArray(), and XbAlgoT3ToT().
|
static |
Definition at line 20 of file XbAlgo.cc.
Referenced by SdEventSelectorOG::SdEventSelector::BottomUpSelection(), RdBeamTimeOptimizer::RdWaveModel::delay(), MdMuonCounterAG::MdMuonCounter::Init(), MdGeometryFitterAG::PlaneShowerFront::operator()(), MdGeometryFitterAG::SphericalShowerFront::operator()(), MdOptoElectronicSimulatorAG::MdOptoElectronicSimulator::OptoElectronics(), MdOptoElectronicSimulatorAG::MdOptoElectronicSimulator::PlotIntegrator(), G4StationSimulatorOG::G4UMDScintStripAction::ProcessHits(), G4TankSimulatorASCII::G4ASCIIAction::ProcessHits(), RdStationNoiseAnalyser::Run(), MdCounterSimulatorAG::MdCounterSimulator::RunFromMEventScintillatorSimulated(), MdCounterSimulatorAG::MdCounterSimulator::SimulatePulses(), and XbAlgoT2Process().
|
static |
Definition at line 20 of file XbAlgo.cc.
Referenced by XbAlgoT2Process().
|
static |
Definition at line 20 of file XbAlgo.cc.
Referenced by XbAlgoT2Process().
|
static |
Definition at line 20 of file XbAlgo.cc.
Referenced by XbAlgoT2Process().
|
static |
t2 at the end of the second that will be used in both seconds
Definition at line 15 of file XbAlgo.cc.
Referenced by XbAlgoT2Process().
|
static |
Definition at line 15 of file XbAlgo.cc.
Referenced by XbAlgoT2Process().
|
static |
the fake trigger, not in cluster with any trigger, to be used when one removes a trigger from a cluster
Definition at line 19 of file XbAlgo.cc.
Referenced by XbAlgoFindCluster(), XbAlgoT2Init(), and XbAlgoT2Process().
|
static |
number of t2 cluster
Definition at line 28 of file XbAlgo.cc.
Referenced by HugeShower(), XbAlgoFindCluster(), and XbAlgoT2Process().
|
static |
number of t2 per time bin
Definition at line 22 of file XbAlgo.cc.
Referenced by XbAlgoT2Init(), and XbAlgoT2Process().
|
static |
Definition at line 22 of file XbAlgo.cc.
Referenced by XbAlgoT2Init(), and XbAlgoT2Process().
|
static |
Definition at line 20 of file XbAlgo.cc.
Referenced by XbAlgoT2Process().
int observer = 0 |
Definition at line 34 of file XbAlgo.cc.
Referenced by XbAlgoT2Process().
|
static |
Definition at line 25 of file XbAlgo.cc.
Referenced by XbAlgoT2Process().
vector< t2list > out |
output of the algorithm: a list of clusters
Definition at line 32 of file XbAlgo.cc.
Referenced by RdStationAssociator::RdStationAssociator::AddVirtualStations(), fftwpp::fftw::CheckAlign(), RdREASSimPreparator::RdREASSimPreparator::CorsikaInpFileWriter(), fftwpp::crfft1d::crfft1d(), fftwpp::crfft2d::crfft2d(), fftwpp::crfft3d::crfft3d(), RdEVASimPreparator::RdEVASimPreparator::EVAFileWriter(), fftwpp::fftw::fft(), fftwpp::fftw::fft0(), fftwpp::mrcfft1d::fft0Normalized(), fftwpp::mcrfft1d::fft0Normalized(), fftwpp::fft1d::fft1d(), fftwpp::fft2d::fft2d(), fftwpp::fft3d::fft3d(), fftwpp::fftw::fftNormalized(), fftwpp::mrcfft1d::fftNormalized(), fftwpp::mcrfft1d::fftNormalized(), rdet::RChannelSQLManager::FillComponentMap(), RdVirtualStationNoiseImporter::RdVirtualStationNoiseImporter::Finish(), RdChannelNoiseImporter_AERA::RdChannelNoiseImporter_AERA::Finish(), RdGalacticDatasetMaker::RdGalacticDatasetMaker::Finish(), rdet::RChannelSQLManager::GetChannelListFromBuffer(), rdet::RChannelSQLManager::GetComponentFromBuffer(), RdEventMerger::RdEventMerger::Init(), RdGalacticDatasetMaker::RdGalacticDatasetMaker::Init(), rdet::RSimulationStationListManager::Init(), GroundPropagatorAG::GroundPropagator::Init(), EdepSimulatorAG::EdepSimulator::Init(), RdMonitoring::RdMonitoring::Init(), main(), fftwpp::mrcfft1d::Normalize(), fftwpp::mcrfft1d::Normalize(), utl::zfstream_sink::open(), utl::zofstream::open(), utl::NumericalErrorPropagator::operator()(), testErrorPropagation::TestFunctor::operator()(), RecDataWriterNG::RecDataWriter::PrepareAsciiFile(), fftwpp::rcfft1d::rcfft1d(), fftwpp::rcfft2d::rcfft2d(), fftwpp::rcfft3d::rcfft3d(), fftwpp::realsize(), RdREASSimPreparatorNG::RdREASSimPreparatorNG::RecordFile(), RdStationDebugWriter::RdStationDebugWriter::Run(), RdStationAssociator::RdStationAssociator::Run(), RdChannelNoiseASCIIImporter::RdChannelNoiseASCIIImporter::Run(), RdGalacticDatasetMaker::RdGalacticDatasetMaker::Run(), MdModuleRejectorAG::MdModuleRejector::Run(), RdGlobalFit::RdGlobalFit::Run(), RdLDFFitter::RdLDFFitter::SaveContours(), fftwpp::fftw::Setout(), fftwpp::fftw::Setup(), SplineInterpolatorTest::test1dmulti(), SplineInterpolatorTest::test2dmulti(), SplineInterpolatorTest::test3dmulti(), CentralConfigTest::testAlteredFingerprint(), CentralConfigTest::testCheckOff(), fftwpp::Transpose::Transpose(), fftwpp::Transpose::transpose(), RdBeamTimeOptimizer::RdBeamTimeOptimizer::WriteASCIISpectrum(), fwk::CentralConfig::WriteConfig(), UnivFitterKG::Fitter::writeMinScan(), RdBeamFormer::RdBeamFormer::WritePeak(), RdBeamFormer::RdBeamFormer::WriteTrace(), RdBeamTimeOptimizer::RdBeamTimeOptimizer::WriteTrace3D(), RdBeamTimeOptimizer::writeValue3D(), and XbAlgoT2Process().
|
static |
t2 clusters
Definition at line 30 of file XbAlgo.cc.
Referenced by HugeShower(), XbAlgoFindCluster(), and XbAlgoT2Process().