30 #if !defined(ULong64_t)
31 #if defined(R__WIN32) && !defined(__CINT__)
149 void BlindValue(Double_t& value,
const Double_t& yield)
const {
186 diff.
Blind(
this, yield);
253 Int_t
UseMD5(
const TString &barestring);
Int_t UsePseudorandom(const TString &barestring)
void ProcessOptions(QwOptions &options)
Update the status with new external information.
void FillErrDB(QwParityDB *db, TString datatype)
void UnBlind(QwSubsystemArrayParity &diff)
Unblind the asymmetry of an array of subsystems.
Double_t fBlindingOffset_Base
The term to be added to detector asymmetries.
Double_t fBlindingFactor
The term to be added to detector asymmetries, before polarity correction.
void InitBlinders(const UInt_t seed_id)
Vector of test values, after unblinding.
Bool_t fTargetPositionForced
Int_t UseStringManip(const TString &barestring)
Returns an integer from a string using MD5.
void Blind(const QwBlinder *blinder)
Blind the asymmetry of this subsystem.
const Bool_t & IsBlinderOkay() const
EQwBlinderStatus fTargetBlindability_firstread
Indicates the first value recieved of the blindability of the target.
void BlindValue(Double_t &value) const
Asymmetry blinding.
void BlindValue(Double_t &value, const Double_t &yield) const
Difference blinding.
static const TString kDefaultSeed
Seed string (seeds.seed)
Class for blinding data, adapted from G0 blinder class.
void UnBlindValue(Double_t &value, const Double_t &yield) const
Difference unblinding.
static void DefineOptions(QwOptions &options)
UInt_t fSeedID
Maximum blinding factor (in % from identity)
std::vector< double > fTestValues
Checksum in ASCII hex.
void WriteChecksum(QwParityDB *db)
void InitTestValues(const int n)
Initializes fBlindingFactor from fSeed.
static const Double_t kMaximumBlindingFactor
Maximum blinding asymmetry (in ppm)
EQwWienMode
Double Wien configuration.
static const UInt_t kErrorFlag_BlinderFail
Error flag value.
void WriteFinalValuesToDB(QwParityDB *db)
EQwBlinderStatus CheckBlindability()
std::vector< UChar_t > fDigest
Default seed.
std::string fChecksum
Checksum in raw hex.
EQwBlindingStrategy
Available blinding strategies.
Virtual base class for the parity subsystems.
void SetTargetBlindability(EQwBlinderStatus status)
void ModifyThisErrorCode(UInt_t &errorcode) const
EQwWienMode fWienMode_firstread
Double_t fBlindingOffset
Blinding strategy.
void Blind(QwSubsystemArrayParity &diff)
Blind the asymmetry of an array of subsystems.
void Update(QwParityDB *db)
Update the status with new external information.
void SetIHWPPolarity(Int_t ihwppolarity)
unsigned long long ULong64_t
Int_t fIHWPPolarity_firstread
EQwBlinderStatus fTargetBlindability
void FillDB(QwParityDB *db, TString datatype)
Write to the database.
Int_t UseMD5(const TString &barestring)
Recomputes fBlindTestValue to check for memory errors.
QwBlinder(const QwBlinder &__attribute__((unused)) blinder)
Private copy constructor.
static const Double_t kMaximumBlindingAsymmetry
The factor to be mutliplied to detector asymmetries.
virtual ~QwBlinder()
Default destructor.
void UnBlind(QwSubsystemArrayParity &diff, const QwSubsystemArrayParity &yield)
Unblind the difference of an array of subsystems.
QwBlinder(const EQwBlindingStrategy blinding_strategy=kAdditive)
Default constructor with optional database.
Int_t ReadSeed(QwParityDB *db, const UInt_t seed_id)
Reads the seed with specified id from the database object.
std::vector< double > fBlindTestValues
Vector of test values, original.
void UnBlind(const QwBlinder *blinder)
Unblind the asymmetry of this subsystem.
static const TString fStatusName[4]
void Blind(QwSubsystemArrayParity &diff, const QwSubsystemArrayParity &yield)
Blind the difference of an array of subsystems.
void UnBlindValue(Double_t &value) const
Asymmetry unblinding.
const QwBlinder & operator=(const QwBlinder &__attribute__((unused)) blinder)
Private assignment operator.
void WriteTestValues(QwParityDB *db)
Writes fSeedID and fBFChecksum to DB for this analysis ID.
Double_t fBeamCurrentThreshold
void SetWienState(EQwWienMode wienmode)
EQwBlinderStatus
Status of the blinding process or intermediate steps of the process.
const EQwBlindingStrategy fBlindingStrategy
std::vector< Int_t > fPatternCounters
Counts the number of events in each failure mode.
std::vector< double > fUnBlindTestValues
Vector of test values, after blinding.
std::vector< UChar_t > GenerateDigest(const TString &input) const
Writes fTestNumber and fBlindTestValue to DB for this analysis ID.
TString fSeed
ID of seed used (seeds.seed_id)