11#ifndef LArSamples_LArCellsEmptyMonitoring_H
12#define LArSamples_LArCellsEmptyMonitoring_H
32 void Run(
const TString& inputfile);
33 void Run(
const char* inputfile){ TString
str(inputfile);
Run(
str); }
34 void TestRun(
const TString& inputfile);
37 void GetLimits_EqLB(
const char* inputfile,
int& lbmin,
int& lbmax,
int& emin,
int& emax,
int& qmin,
int& qmax,
int& runNumber,
const std::vector<
int, std::allocator<int> >& BadLBList);
38 std::vector<int, std::allocator<int> > ReadBadLBList(
const TString& LBfile);
39 std::vector<int, std::allocator<int> > GetBadLBList(
const char* inputfile,
int lbmin,
int lbmax,
double nsigma,
int nlb,
const std::vector<
int, std::allocator<int> >& DQLBList);
40 bool CheckBadLBList(
int lumiBlock,
const std::vector<
int, std::allocator<int> >& BadLBList);
41 void GetMeanCellHits(
const char* inputfile,
int nlb,
int lbmin,
int lbmax,
int nsigma,
const std::vector<
int, std::allocator<int> >& BadLBList,
double& MeanHits,
double& rmsHits,
int& nlb_corr);
42 bool CheckEventSelectionCriteria(
int lumiBlock,
int nsigma,
double energy, Float_t noise,
int lbmin,
int lbmax);
43 int CheckCellSelectionCriteria(
int EventCount,
int nsigmaHits,
double MeanHits,
double rmsHits,
int nEvents_E_gt_ecut,
double EventEnergySum,
int nBadLBs,
int nlb)
const;
44 bool CheckForPresamplerCells(
int index);
45 bool CheckPartition(
int index)
const;
49 void ReadDefectLBList(
bool ReadList,
const TString& LBfile);
65 void SetEnergyCountThresholds(
double ecut = 1.,
int counts1 = 250,
double enecell1 = 1.5,
int counts2 = 25,
double enecell2 = 30){
74 void SetPartition(
bool setpart,
const std::string& partname );
75 std::string GetCryostat(
int calo);
78 void ScanOnlids(
const TString& inputfile);
79 void DoEtaPhiMonitoring(
const char* inputfile,
const char* optionplot,
const char* optionsave);
80 void TriggerEfficiency(
const char* inputfile,
float fractionInPS=0.8);
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
double m_Mean_checkBadLBs
void SetNoiseNsigma(double nsig=10.)
void SetSaveRootTree(bool flag=false)
void SetCaloMask(bool calo=false)
bool m_SelectRecurringBadCells
LArCellsEmptyMonitoring()
int m_LowerCountThreshold
void SetSaveTextFile(bool flag=false)
LArCellsEmptyMonitoring(const LArCellsEmptyMonitoring &)=delete
std::unique_ptr< LArIdTranslatorHelper > m_LarIdTranslator
void TestRun(const char *inputfile)
void SetAlgo(int algoindex=2)
void Run(const TString &inputfile)
double m_LowerCellEnergyThreshold
void Run(const char *inputfile)
void SetBadLBRemovalOption(bool removeLB=true)
void SetSelectRecurringBadCells(bool flag=false)
int m_UpperCountThreshold
void SetNsigmaHitsFromMean(double nsigmahits=10.)
void SetPresamplerMask(bool PS=false)
void SetLumiblockRange(bool inputRange=false, int input_lbmin=0, int input_lbmax=0)
void SetQthreshold(int qvalue=4000)
std::string m_PartitionName
void SetEnergyCountThresholds(double ecut=1., int counts1=250, double enecell1=1.5, int counts2=25, double enecell2=30)
double m_UpperCellEnergyThreshold
void SetSaveRootFile(bool flag=false)