List of all members | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
TestStationTriggerAlgorithm Class Reference
Inheritance diagram for TestStationTriggerAlgorithm:
Inheritance graph
[legend]

Public Member Functions

void setUp () override
 
void tearDown () override
 
void TestManyT1ThresholdOnTimeDistributionI ()
 
void TestManyTOTOnTimeDistributionI ()
 
void TestOneT1ThresholdOnTimeDistributionI ()
 
void TestOneT2ThresholdOnTimeDistributionI ()
 
void TestOneTOTdOnTimeDistributionI ()
 
void TestOneTOTdOnTimeDistributionIWithBaseline ()
 
void TestOneTOTOnTimeDistributionI ()
 
 TestStationTriggerAlgorithm ()
 
void TestT1ThresholdAndTOTOnTimeDistributionI ()
 

Private Member Functions

template<class Trace >
void Check (const double vem, const double baseline, const int first, const int last, const Trace &t1, const Trace &t2, const Trace &t3, const vector< StationTriggerInfo > &shouldGet, const string &comment="") const
 
 CPPUNIT_TEST (TestOneT1ThresholdOnTimeDistributionI)
 
 CPPUNIT_TEST (TestOneT2ThresholdOnTimeDistributionI)
 
 CPPUNIT_TEST (TestManyT1ThresholdOnTimeDistributionI)
 
 CPPUNIT_TEST_SUITE (TestStationTriggerAlgorithm)
 
 CPPUNIT_TEST_SUITE_END ()
 

Static Private Member Functions

static void Match (const vector< StationTriggerInfo > &infos1, const vector< StationTriggerInfo > &infos2)
 
template<class Trace >
static pair< bool, int > SimpleToT (const double totTh, const double baseline, const int occupancy, const int window, const int multiplicity, const int first, const int last, const vector< const Trace * > &traces)
 

Private Attributes

const int fLatchBin = 246
 
const double fT1Threshold = 1.7
 
const double fT2Threshold = 3.4
 
const double fTOTdDecayInBins = 67 / fUBSampling
 
const double fTOTdThreshold = 0.2
 
const double fTOTThreshold = 0.2
 
const int fTraceLength = 3*1024/4
 
const double fUBSampling = 25*ns
 

Static Private Attributes

static bool fgShowLegend = true
 

Detailed Description

Definition at line 44 of file testStationTriggerAlgorithm.cc.

Constructor & Destructor Documentation

TestStationTriggerAlgorithm::TestStationTriggerAlgorithm ( )
inline

Definition at line 70 of file testStationTriggerAlgorithm.cc.

Member Function Documentation

template<class Trace >
void TestStationTriggerAlgorithm::Check ( const double  vem,
const double  baseline,
const int  first,
const int  last,
const Trace t1,
const Trace t2,
const Trace t3,
const vector< StationTriggerInfo > &  shouldGet,
const string &  comment = "" 
) const
inlineprivate
TestStationTriggerAlgorithm::CPPUNIT_TEST ( TestOneT1ThresholdOnTimeDistributionI  )
private
TestStationTriggerAlgorithm::CPPUNIT_TEST ( TestOneT2ThresholdOnTimeDistributionI  )
private
TestStationTriggerAlgorithm::CPPUNIT_TEST ( TestManyT1ThresholdOnTimeDistributionI  )
private
TestStationTriggerAlgorithm::CPPUNIT_TEST_SUITE ( TestStationTriggerAlgorithm  )
private
TestStationTriggerAlgorithm::CPPUNIT_TEST_SUITE_END ( )
private
static void TestStationTriggerAlgorithm::Match ( const vector< StationTriggerInfo > &  infos1,
const vector< StationTriggerInfo > &  infos2 
)
inlinestaticprivate
void TestStationTriggerAlgorithm::setUp ( )
inlineoverride

Definition at line 93 of file testStationTriggerAlgorithm.cc.

template<class Trace >
static pair<bool, int> TestStationTriggerAlgorithm::SimpleToT ( const double  totTh,
const double  baseline,
const int  occupancy,
const int  window,
const int  multiplicity,
const int  first,
const int  last,
const vector< const Trace * > &  traces 
)
inlinestaticprivate

Definition at line 476 of file testStationTriggerAlgorithm.cc.

References utl::m, max, and utl::s.

void TestStationTriggerAlgorithm::tearDown ( )
inlineoverride

Definition at line 95 of file testStationTriggerAlgorithm.cc.

void TestStationTriggerAlgorithm::TestManyT1ThresholdOnTimeDistributionI ( )
inline

Definition at line 132 of file testStationTriggerAlgorithm.cc.

References evt::Check().

void TestStationTriggerAlgorithm::TestManyTOTOnTimeDistributionI ( )
inline

Definition at line 228 of file testStationTriggerAlgorithm.cc.

References utl::abs(), and evt::Check().

void TestStationTriggerAlgorithm::TestOneT1ThresholdOnTimeDistributionI ( )
inline

Definition at line 98 of file testStationTriggerAlgorithm.cc.

References evt::Check().

void TestStationTriggerAlgorithm::TestOneT2ThresholdOnTimeDistributionI ( )
inline

Definition at line 115 of file testStationTriggerAlgorithm.cc.

References evt::Check().

void TestStationTriggerAlgorithm::TestOneTOTdOnTimeDistributionI ( )
inline

Definition at line 267 of file testStationTriggerAlgorithm.cc.

References utl::abs(), and evt::Check().

void TestStationTriggerAlgorithm::TestOneTOTdOnTimeDistributionIWithBaseline ( )
inline

Definition at line 326 of file testStationTriggerAlgorithm.cc.

References utl::abs(), and evt::Check().

void TestStationTriggerAlgorithm::TestOneTOTOnTimeDistributionI ( )
inline

Definition at line 193 of file testStationTriggerAlgorithm.cc.

References utl::abs(), and evt::Check().

void TestStationTriggerAlgorithm::TestT1ThresholdAndTOTOnTimeDistributionI ( )
inline

Definition at line 156 of file testStationTriggerAlgorithm.cc.

References utl::abs(), and evt::Check().

Member Data Documentation

bool TestStationTriggerAlgorithm::fgShowLegend = true
staticprivate

Definition at line 67 of file testStationTriggerAlgorithm.cc.

const int TestStationTriggerAlgorithm::fLatchBin = 246
private

Definition at line 65 of file testStationTriggerAlgorithm.cc.

const double TestStationTriggerAlgorithm::fT1Threshold = 1.7
private

Definition at line 60 of file testStationTriggerAlgorithm.cc.

const double TestStationTriggerAlgorithm::fT2Threshold = 3.4
private

Definition at line 63 of file testStationTriggerAlgorithm.cc.

const double TestStationTriggerAlgorithm::fTOTdDecayInBins = 67 / fUBSampling
private

Definition at line 64 of file testStationTriggerAlgorithm.cc.

const double TestStationTriggerAlgorithm::fTOTdThreshold = 0.2
private

Definition at line 62 of file testStationTriggerAlgorithm.cc.

const double TestStationTriggerAlgorithm::fTOTThreshold = 0.2
private

Definition at line 61 of file testStationTriggerAlgorithm.cc.

const int TestStationTriggerAlgorithm::fTraceLength = 3*1024/4
private

Definition at line 66 of file testStationTriggerAlgorithm.cc.

const double TestStationTriggerAlgorithm::fUBSampling = 25*ns
private

Definition at line 59 of file testStationTriggerAlgorithm.cc.


The documentation for this class was generated from the following file:

, generated on Tue Sep 26 2023.