Macros | Functions | Variables
XbAlgo.cc File Reference

Main trigger algorithms. More...

#include "XbAlgo.h"
#include "XbArray.h"
#include <cstdlib>
#include <cstring>

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< t2listXbAlgoT2Process (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 t2compteurt2 [110000][30]
 histogram of these t2 per time bin, poiting to the precise t2 More...
 
static struct t2compteurtot [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< t2listout
 output of the algorithm: a list of clusters More...
 
static struct t2list t2cluster [1000]
 t2 clusters More...
 

Detailed Description

Main trigger algorithms.

Definition in file XbAlgo.cc.

Macro Definition Documentation

#define FREE (   _x_)    { free(_x_); _x_ = nullptr; }

Definition at line 12 of file XbAlgo.cc.

Referenced by XbAlgoFree(), and XbAlgoT2Process().

Function Documentation

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().

vector< t2list > XbAlgoT2Process ( struct t2 input,
int  nt2 
)
t3 XbAlgoT3Build ( struct t2list  in)
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().

Variable Documentation

int binnumber = 110000
static
int binsize
static
struct t2 carmenmiranda[1024]
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().

struct t2* compteurt2[110000][30]
static

histogram of these t2 per time bin, poiting to the precise t2

Definition at line 24 of file XbAlgo.cc.

struct t2 * compteurtot[110000][30]
static

Definition at line 24 of file XbAlgo.cc.

int cour[5]
static

Definition at line 26 of file XbAlgo.cc.

Referenced by XbAlgoFindCluster(), XbAlgoT3FullArray(), and XbAlgoT3ToT().

int delay = 0
static
int delaycm = 0
static

Definition at line 20 of file XbAlgo.cc.

Referenced by XbAlgoT2Process().

int delaydn = 0
static

Definition at line 20 of file XbAlgo.cc.

Referenced by XbAlgoT2Process().

int delaymr = 0
static

Definition at line 20 of file XbAlgo.cc.

Referenced by XbAlgoT2Process().

struct t2 extrat2[1024]
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().

struct t2 extrat2old[1024]
static

Definition at line 15 of file XbAlgo.cc.

Referenced by XbAlgoT2Process().

struct t2 fake
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().

int nbt2cluster
static

number of t2 cluster

Definition at line 28 of file XbAlgo.cc.

Referenced by HugeShower(), XbAlgoFindCluster(), and XbAlgoT2Process().

unsigned short ncompteurt2[110000]
static

number of t2 per time bin

Definition at line 22 of file XbAlgo.cc.

Referenced by XbAlgoT2Init(), and XbAlgoT2Process().

unsigned short ncompteurtot[110000]
static

Definition at line 22 of file XbAlgo.cc.

Referenced by XbAlgoT2Init(), and XbAlgoT2Process().

int nextra = 0
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().

int oldbinnumber = 110000
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().

struct t2list t2cluster[1000]
static

t2 clusters

Definition at line 30 of file XbAlgo.cc.

Referenced by HugeShower(), XbAlgoFindCluster(), and XbAlgoT2Process().


, generated on Tue Sep 26 2023.