11 #ifndef LArSamples_LArCellsEmptyMonitoring_H
12 #define LArSamples_LArCellsEmptyMonitoring_H
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);
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);
55 void SetAlgo(
int algoindex = 2){ m_Algo = algoindex; }
58 m_SetLumiblockRange = inputRange;
59 m_input_lbmin = input_lbmin;
60 m_input_lbmax = input_lbmax;
65 void SetEnergyCountThresholds(
double ecut = 1.,
int counts1 = 250,
double enecell1 = 1.5,
int counts2 = 25,
double enecell2 = 30){
67 m_UpperCountThreshold = counts1;
68 m_LowerCountThreshold = counts2;
69 m_LowerCellEnergyThreshold = enecell1;
70 m_UpperCellEnergyThreshold = enecell2;
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);
105 bool m_MaskPresampler =
false;
106 bool m_MaskCalo =
false;
109 int m_PartitionIndex = 0;
111 double m_Mean_checkBadLBs = 0.0;
112 double m_RMS_checkBadLBs = 0.0;
113 bool m_ReadDefectLBList =
false;