ATLAS Offline Software
Loading...
Searching...
No Matches
DataTweaker.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
9
10#ifndef LArSamples_DataTweaker_H
11#define LArSamples_DataTweaker_H
12
13
16#include <map>
17
18namespace LArSamples {
19
20 class Data;
21 class EventData;
22 class ScaledErrorData;
23
25
26 public:
27
28 DataTweaker() = default;
29
30 bool set(const TString& tweaks);
31 bool findOption(TString& tweaks, const TString& option) const;
32
33 Data* tweak(const Data& data, int evtIndex = -1) const;
34 EventData* tweak(const EventData& eventData, int runIndex = -1) const;
35
36 void setNSamplesTrunctation(unsigned int n) { m_nSamplesTruncation = n; }
37 void addSample(unsigned int n) { m_samples[n] = true; }
38 void setRemoveNoiseCorrelations(bool remove = true) { m_removeNoiseCorrelations = remove; }
39 void setRefit(bool refit = true) { m_refit = refit; }
40 void setFitParams(Chi2Params params) { m_fitParams = params; }
41 void setAdjust(bool adjust = true) { m_adjust = adjust; }
42 void setRemoveRoIs(bool removeRoIs = true) { m_removeRoIs = removeRoIs; }
43
44 private:
45
46 unsigned int m_nSamplesTruncation{0};
47 bool m_removeNoiseCorrelations{false}, m_refit{false}, m_adjust{false}, m_removeRoIs{false};
48 std::map<unsigned int, bool> m_samples; //automatically ordered...
50 };
51}
52#endif
@ Data
Definition BaseObject.h:11
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
Define macros for attributes used to control the static checker.
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
void setRefit(bool refit=true)
Definition DataTweaker.h:39
void setNSamplesTrunctation(unsigned int n)
Definition DataTweaker.h:36
void setFitParams(Chi2Params params)
Definition DataTweaker.h:40
bool findOption(TString &tweaks, const TString &option) const
void addSample(unsigned int n)
Definition DataTweaker.h:37
Data * tweak(const Data &data, int evtIndex=-1) const
void setRemoveRoIs(bool removeRoIs=true)
Definition DataTweaker.h:42
void setRemoveNoiseCorrelations(bool remove=true)
Definition DataTweaker.h:38
unsigned int m_nSamplesTruncation
Definition DataTweaker.h:46
bool set(const TString &tweaks)
void setAdjust(bool adjust=true)
Definition DataTweaker.h:41
std::map< unsigned int, bool > m_samples
Definition DataTweaker.h:48
Liquid Argon class for standalone storage of cell shape information.
@ DefaultChi2
Definition Chi2Calc.h:24