6 #ifndef CHANINFO_BADCHANLIST_H 7 #define CHANINFO_BADCHANLIST_H 17 #include "NovaDAQConventions/DAQConventions.h" 18 #include "DAQChannelMap/DAQChannelMap.h" 29 namespace nova{
namespace dbi{
class Table;}}
51 int Apply(std::vector< const rawdata::RawDigit*>&);
54 bool IsLowEfficiency(
int plane,
int cell);
59 int NBadInSubRun(
int i);
63 bool IsBadUncached(
int plane,
int cell);
69 bool InDroppedDCM(
int plane,
int cell);
71 void SetRandomBadChannels();
73 void LoadCosmicEff(
int newrun,
int newsubrun);
76 template<
class T>
void CountDCMHits(
const std::vector<T>& digitcol);
115 std::vector<std::unordered_set<geo::OfflineChan>>
fBadChans;
135 int fDCMHits[12][14];
int fPedestalThresholdHigh
std::vector< std::string > fKBCList
std::string fValidityTagNearDet
std::string fBadChanCSVFile
const size_t FD_NUM_CELLS
std::unordered_set< geo::OfflineChan > fRandomBCMap
random bad channel map
#define DECLARE_ART_SERVICE(svc, scope)
bool fAbortIfNoneFound
Option to throw an exception if no channel rate state rows are returned from dB.
std::string fValidityTagFarDet
std::vector< std::unordered_set< int > > fDropOuts
[subrun][tchan]
float fRandomBadChannelFraction
If >0, ignore DB and set this fraction bad at random.
std::vector< geo::OfflineChan > fKnownBadChannels
std::bitset< FD_NUM_PLANES *FD_NUM_CELLS > fIsBadCache
bool fEventCheck
do we check each event for dropped DCMs?
bool fNewCosmicEffTable
Use new-style table?
std::unordered_set< geo::OfflineChan > fLowEfficiency
set of low eff channels
std::string fRawDigitLabel
what is the name of the raw digits ART object
time_t fMaxVldTime
Maximum time used in database request.
const size_t FD_NUM_PLANES
Hold drift constants from current run.
std::string fCellHitLabel
int fMCRunNumber
Run number for the MC.
int fPedestalThresholdLow
std::string fFEBDropoutTag
time_t fMinVldTime
Minimum time used in database request.
Interface to the run-by-run list of bad channels.
int fMCSubrunNumber
Subrun number for the MC.
int fApplyBadChan
Option to activate the bad channels.
std::unique_ptr< CLHEP::RandFlat > fFlatRand
std::vector< std::unordered_set< geo::OfflineChan > > fBadChans
Vector index is the subrun number, set contains all the bad channels.
Simple object representing a (plane, cell) pair.