JAPAn
Just Another Parity Analyzer
Loading...
Searching...
No Matches
QwFakeHelicity.h
Go to the documentation of this file.
1/*!
2 * \file QwFakeHelicity.h
3 * \brief Fake helicity generator using pregenerated random seeds
4 * \author B.Waidyawansa
5 * \date 2010-03-06
6 */
7/**
8 The QwFakeHelicity class uses a pregenerated random seed to generate
9 the fake helicity signal that then can be used to perform helicity
10 related calculations.
11*/
12
13#pragma once
14
15#include "QwHelicity.h"
16
17/**
18 * \class QwFakeHelicity
19 * \ingroup QwAnalysis_BL
20 * \brief Helicity source that generates a reproducible sequence from seeds
21 *
22 * Used for testing and simulations when real helicity decoding is not
23 * available. Inherits the helicity interface and overrides event handling.
24 */
26 public:
27 QwFakeHelicity(TString region_tmp):VQwSubsystem(region_tmp),QwHelicity(region_tmp),fMinPatternPhase(1)
28
29 {
30 // using the constructor of the base class
31 };
32
33 ~QwFakeHelicity() override { };
34
35 void ClearEventData() override;
36 Bool_t IsGoodHelicity() override;
37 void ProcessEvent() override;
38
39 Bool_t CheckForBurpFail(const VQwSubsystem *subsys) override{
40 return kFALSE;
41 };
42
43 protected:
45
46 Bool_t CollectRandBits() override;
47 UInt_t GetRandbit(UInt_t& ranseed) override;
48
49};
Helicity state management and pattern recognition.
VQwSubsystem(const TString &name)
Constructor with name.
~QwFakeHelicity() override
Bool_t IsGoodHelicity() override
UInt_t GetRandbit(UInt_t &ranseed) override
Bool_t CollectRandBits() override
QwFakeHelicity(TString region_tmp)
void ClearEventData() override
Bool_t CheckForBurpFail(const VQwSubsystem *subsys) override
Report the number of events failed due to HW and event cut failures.
void ProcessEvent() override
QwHelicity()
Private default constructor (not implemented, will throw linker error on use)