|
void | setFlaggingThresholds (const float hitsPerLB, const unsigned upperCountThr, const double lowerEThr, const unsigned lowerCountThr, const double upperEThr) |
|
void | setListingThresholds (const unsigned minNSeen, const unsigned minAboveSigNoise) |
|
void | readDefectLBList (const char *LBfile) |
|
bool | checkBadLBList (const unsigned lumiBlock) const |
|
std::vector< LCE_CellList::thrCounter_t > | buildList (const char *inputfile, const float nSigma, const float Ethr, const float QThr, unsigned &nLBsSeen) const |
|
void | writeList (const char *filename, const std::vector< LCE_CellList::thrCounter_t > &celllist) const |
|
void | addFlags (std::vector< LCE_CellList::thrCounter_t > &celllist, const unsigned nLBsSeen) const |
|
bool | applySelection (const LCE_CellList::thrCounter_t &counter) const |
|
std::string | partitionName (const short caloId, const short slot) const |
|
void | printThresholds () const |
|
Definition at line 37 of file LCE_CellList.cxx.
◆ addFlags()
◆ applySelection()
◆ buildList()
Definition at line 165 of file LCE_CellList.cxx.
167 std::vector<thrCounter_t> retvec;
169 std::set<unsigned> nLBsSeenSet;
172 const unsigned nchannels = tuple->
nChannels();
174 retvec.reserve(nchannels);
182 thrCounter_t
cnt(cellInfo->
onlid());
189 for (
int iEvent=0;iEvent<
nEvents;++iEvent) {
192 if(!Evdata)
continue;
205 if (!
cnt.bc_status)
cnt.bc_status=
data->status();
211 if (
cnt.nSeen>0) retvec.emplace_back(
cnt);
214 nLBsSeen=nLBsSeenSet.size();
215 std::cout <<
"Evaluated a total of " << nLBsSeen <<
"LBs" << std::endl;
◆ checkBadLBList()
bool LCE_CellList::checkBadLBList |
( |
const unsigned |
lumiBlock | ) |
const |
|
inline |
◆ partitionName()
std::string LCE_CellList::partitionName |
( |
const short |
caloId, |
|
|
const short |
slot |
|
) |
| const |
◆ printThresholds()
void LCE_CellList::printThresholds |
( |
| ) |
const |
Definition at line 122 of file LCE_CellList.cxx.
123 printf (
"Listing Thresholds:\n");
124 printf (
"\tMin number of appearences in LCE ntuple: %u\n",
m_minNSeen);
126 printf (
"Flagging Thresholds:\n");
◆ readDefectLBList()
void LCE_CellList::readDefectLBList |
( |
const char * |
LBfile | ) |
|
Definition at line 136 of file LCE_CellList.cxx.
139 printf(
"Appending to already-existing list of bad lumi-blocks of size %zu\n",
m_badLBs.size());
142 std::ifstream
infile(LBfile);
148 printf(
"No bad LBs found in file %s\n" ,(
const char*)LBfile);
159 printf(
"Number of bad lumi-blocks: %d\n",(
int)
m_badLBs.size());
◆ setFlaggingThresholds()
void LCE_CellList::setFlaggingThresholds |
( |
const float |
hitsPerLB, |
|
|
const unsigned |
upperCountThr, |
|
|
const double |
lowerEThr, |
|
|
const unsigned |
lowerCountThr, |
|
|
const double |
upperEThr |
|
) |
| |
◆ setListingThresholds()
void LCE_CellList::setListingThresholds |
( |
const unsigned |
minNSeen, |
|
|
const unsigned |
minAboveSigNoise |
|
) |
| |
◆ writeList()
Definition at line 239 of file LCE_CellList.cxx.
240 FILE* pFile = fopen (textfilename ,
"w");
242 fprintf(pFile,
"onlid // partition // FT // Slot // channel // nAboveSigNoise // nAboveAbsE // MeanE [GeV] // fracQ4k // nLBs // Algoflag\n");
244 for (
const auto&
cnt : cellList) {
247 if (
cnt.EventEnergyCut) {
249 if (
cnt.MeanCellHitCut)
flag=2;
254 fprintf(pFile,
"0x%8.8x \t %7s \t %i \t %i \t %i \t %i \t %i \t %.3f \t %.3f \t %u \t %u",
257 cnt.Esum/(1000.0*
cnt.nSeen), (
float)
cnt.nAboveQ/
cnt.nSeen,
258 (
unsigned)
cnt.LBs.size(),
flag );
◆ m_badLBs
std::set<unsigned> LCE_CellList::m_badLBs |
|
private |
◆ m_hitCountPerLBThreshold
float LCE_CellList::m_hitCountPerLBThreshold =0.01 |
|
private |
◆ m_LowerCellEnergyThreshold
double LCE_CellList::m_LowerCellEnergyThreshold =1000.0 |
|
private |
◆ m_LowerCountThreshold
unsigned LCE_CellList::m_LowerCountThreshold =20 |
|
private |
◆ m_minAboveSigNoise
unsigned LCE_CellList::m_minAboveSigNoise =1 |
|
private |
◆ m_minNSeen
unsigned LCE_CellList::m_minNSeen =10 |
|
private |
◆ m_UpperCellEnergyThreshold
double LCE_CellList::m_UpperCellEnergyThreshold =50000.0 |
|
private |
◆ m_UpperCountThreshold
unsigned LCE_CellList::m_UpperCountThreshold =50 |
|
private |
The documentation for this class was generated from the following file: