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
27 public:
28 QwFakeHelicity(TString region_tmp):VQwSubsystem(region_tmp),QwHelicityBase(region_tmp),fMinPatternPhase(1)
29
30 {
31 // using the constructor of the base class
32 };
33
34 ~QwFakeHelicity() override { };
35
36 /// Inherit assignment operator on base class
37 using QwHelicityBase::operator=;
38
39 void ClearEventData() override;
40 Bool_t IsGoodHelicity() override;
41 void ProcessEvent() override;
42
43 Bool_t CheckForBurpFail(const VQwSubsystem *subsys) override{
44 return kFALSE;
45 };
46
47 protected:
49
50 Bool_t CollectRandBits() override;
51 UInt_t GetRandbit(UInt_t& ranseed) override;
52
53};
54
55// Register this subsystem with the factory
#define REGISTER_SUBSYSTEM_FACTORY(A)
Definition QwFactory.h:270
Helicity state management and pattern recognition.
VQwSubsystem(const TString &name)
Constructor with name.
Helicity source that generates a reproducible sequence from seeds.
~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
QwHelicityBase()
Private default constructor (not implemented, will throw linker error on use)