#include <emcBadModulesv1.h>
Inherits emcBadModules.
Inheritance diagram for emcBadModulesv1:
The QA "online" information comes from calib.emc.QAs database (typically filled by onlcal, while the QA "physics" information comes from calib.emc.RejectList (typically filled after we started the first analysis on the data, i.e. we always exclude some more towers offline than online).
Definition at line 32 of file emcBadModulesv1.h.
Public Member Functions | |
emcBadModulesv1 (const emcBadModulesv1 &) | |
Copy ctor. | |
emcBadModulesv1 & | operator= (const emcBadModulesv1 &) |
emcBadModulesv1 * | clone (void) const |
virtual | ~emcBadModulesv1 () |
Dtor. | |
void | identify (std::ostream &os=std::cout) const |
int | isValid () const |
void | Reset () |
Reset ==> all is perfect. | |
std::ostream & | Print (int towerid=-1, std::ostream &out=std::cout) |
Print one tower info (or all if towerid=-1). | |
unsigned int | size (void) const |
Number of towers. | |
Constructors | |
In each ctor, the init flag has the following meaning :
| |
emcBadModulesv1 () | |
Default ctor : everything is perfect. | |
emcBadModulesv1 (const char *directory, emcBadModules::EInformationOrigin origin=emcBadModules::kAll, bool init=true, const char *sectors="emcal") | |
Ctor from files. | |
emcBadModulesv1 (const PHTimeStamp &ts, emcBadModules::EInformationOrigin origin=emcBadModules::kAll, const emcDataStorageMap &source=emcDataStorageMap(emcManageable::kDB_Pg), bool init=true, const char *sectors="emcal") | |
Ctor with potentially different sources for QAs and RejectList. | |
Retrieve dead/warn neighbour information. | |
The 'Fast' methods do not do any check, i.e. no bound checking nor check whereas information is available/uptodate or not | |
unsigned int | Deadmap (int towerID) |
Get deadneighbours information for the tower referenced by towerID. | |
unsigned int | DeadmapFast (int towerID) const |
unsigned int | Warnmap (int towerID) |
Get warnneighbours information for the tower referenced by towerID. | |
unsigned int | WarnmapFast (int towerID) const |
Access to underlying separate information (Q&A from online, | |
Q&A from physics). The 'Fast' methods do not do any check, i.e. no bound checking nor check whereas information is available/uptodate or not. | |
unsigned int | Error (emcBadModules::EInformationOrigin source, int towerID) |
unsigned int | ErrorFast (emcBadModules::EInformationOrigin source, int towerID) const |
unsigned int | Warning (emcBadModules::EInformationOrigin source, int towerID) |
unsigned int | WarningFast (emcBadModules::EInformationOrigin source, int towerID) const |
Private Types | |
typedef std::map< EInformationOrigin, std::vector< unsigned int > >::const_iterator | RawMapIterator |
Private Member Functions | |
void | Allocate (void) |
std::string | CollectPhysicsQA (void) |
Collect Q&A obtained from physics. | |
std::string | CollectOnlineQA (void) |
Collect Q&A obtained from online (all FEMs). | |
std::string | CollectOnlineQA (size_t ifem) |
Collect Q&A obtained from online (one FEMs). | |
void | Collect (size_t ifem) |
void | ComputeMaps (size_t ifem) |
From all Q&A (online and physics), compute the dead and warn neighbour maps for a given fem. | |
void | ComputeMaps (const char *sectors="emcal") |
Compute dead and warn maps for all FEMs. | |
void | GetListOfNeighbourFEMs (size_t ifem, std::vector< size_t > &fems) |
Return in vector fems the ids of FEMs that are neighbours of ifem. | |
bool | IsValid (int towerID) const |
Returns true if towerID can be used as an index for our internal storage elements (fErrorRaw, . | |
void | update (int towerID) |
Insure that we get all the information collected (either from files or from DB) in order to get sensible return values from Error* or Warning* methods. | |
std::ostream & | PrintOne (int towerid, std::ostream &out=std::cout) |
Print info about one tower. | |
void | copyTo (emcBadModulesv1 &) const |
Used by copy ctor and assignment operator. | |
Private Attributes | |
emcDataStorageMap | fDataSource |
emcBadModules::EInformationOrigin | fOrigin |
std::string | fDirectory |
PHTimeStamp | fTimeStamp |
bool | fIsRejectListAlreadyRead |
std::vector< unsigned int > | fErrorMap |
std::vector< unsigned int > | fWarnMap |
std::vector< bool > | fCollectedFEMs |
std::vector< bool > | fComputedFEMs |
std::map< EInformationOrigin, std::vector< unsigned int > > | fErrorRaw |
std::map< EInformationOrigin, std::vector< unsigned int > > | fWarnRaw |
Static Private Attributes | |
static const unsigned int | fMASK_Ampl_Physics = 0x0000F |
static const unsigned int | fMASK_Ampl_Online = 0x40000 |
static const unsigned int | fMASK_Ampl_OnlineWarn = 0x00000 |
static const unsigned int | fMASK_TOF_Physics = 0x000F0 |
static const unsigned int | fMASK_TOF_Online = 0x00000 |
static const unsigned int | fMASK_TOF_OnlineWarn = 0x00000 |
|
Definition at line 187 of file emcBadModulesv1.h. |
|
Default ctor : everything is perfect.
Referenced by clone(). |
|
Ctor from files.
Definition at line 41 of file emcBadModulesv1.C. References Allocate(), and ComputeMaps(). |
|
Ctor with potentially different sources for QAs and RejectList. By default, both are read from Pg Definition at line 59 of file emcBadModulesv1.C. References Allocate(), and ComputeMaps(). |
|
Copy ctor.
Definition at line 78 of file emcBadModulesv1.C. References copyTo(). |
|
Dtor.
Definition at line 112 of file emcBadModulesv1.C. |
|
Definition at line 119 of file emcBadModulesv1.C. References fCollectedFEMs, fComputedFEMs, fErrorMap, fErrorRaw, fWarnMap, fWarnRaw, emcBadModules::kOnline, emcBadModules::kPhysics, NCHANNELS, NFEMS, and size(). Referenced by emcBadModulesv1(), and Reset(). |
|
Implements emcBadModules. Definition at line 73 of file emcBadModulesv1.h. References emcBadModulesv1(). |
|
Definition at line 136 of file emcBadModulesv1.C. References CollectOnlineQA(), CollectPhysicsQA(), fCollectedFEMs, fOrigin, emcBadModules::kAll, emcBadModules::kOnline, and emcBadModules::kPhysics. Referenced by ComputeMaps(). |
|
Collect Q&A obtained from online (one FEMs).
Definition at line 212 of file emcBadModulesv1.C. References fDataSource, emcManageable::kNone, and emcDataStorageMap::storage(). |
|
Collect Q&A obtained from online (all FEMs).
Definition at line 197 of file emcBadModulesv1.C. References NFEMS. Referenced by Collect(). |
|
Collect Q&A obtained from physics.
Definition at line 153 of file emcBadModulesv1.C. References fDataSource, fIsRejectListAlreadyRead, emcManageable::kNone, and emcDataStorageMap::storage(). Referenced by Collect(). |
|
Compute dead and warn maps for all FEMs.
Definition at line 254 of file emcBadModulesv1.C. References ComputeMaps(), fDataSource, fDirectory, fTimeStamp, emcFEMList::hasFEM(), emcManageable::kNone, NFEMS, and emcDataStorageMap::storage(). |
|
From all Q&A (online and physics), compute the dead and warn neighbour maps for a given fem.
Definition at line 278 of file emcBadModulesv1.C. References Collect(), fCollectedFEMs, fComputedFEMs, and GetListOfNeighbourFEMs(). Referenced by ComputeMaps(), emcBadModulesv1(), and update(). |
|
Used by copy ctor and assignment operator.
Definition at line 97 of file emcBadModulesv1.C. References fCollectedFEMs, fComputedFEMs, fDataSource, fDirectory, fErrorMap, fErrorRaw, fOrigin, fTimeStamp, fWarnMap, and fWarnRaw. Referenced by emcBadModulesv1(), and operator=(). |
|
Get deadneighbours information for the tower referenced by towerID.
Implements emcBadModules. Definition at line 478 of file emcBadModulesv1.C. References DeadmapFast(), IsValid(), and update(). |
|
Implements emcBadModules. Definition at line 487 of file emcBadModulesv1.C. References fErrorMap. Referenced by Deadmap(). |
|
Implements emcBadModules. Definition at line 450 of file emcBadModulesv1.C. References ErrorFast(), IsValid(), and update(). |
|
Implements emcBadModules. Definition at line 461 of file emcBadModulesv1.C. References fErrorRaw. Referenced by Error(). |
|
Return in vector fems the ids of FEMs that are neighbours of ifem.
Referenced by ComputeMaps(). |
|
Definition at line 536 of file emcBadModulesv1.C. |
|
Returns true if towerID can be used as an index for our internal storage elements (fErrorRaw, . ..). Definition at line 550 of file emcBadModulesv1.C. References fErrorMap. |
|
Definition at line 543 of file emcBadModulesv1.C. |
|
Definition at line 86 of file emcBadModulesv1.C. References copyTo(). |
|
Print one tower info (or all if towerid=-1).
Implements emcBadModules. |
|
Print info about one tower.
|
|
Reset ==> all is perfect.
Definition at line 633 of file emcBadModulesv1.C. References Allocate(), emcDataStorageMap::clear(), fDataSource, fDirectory, fIsRejectListAlreadyRead, fOrigin, fTimeStamp, and emcBadModules::kNone. |
|
Number of towers.
Implements emcBadModules. Definition at line 124 of file emcBadModulesv1.h. References fErrorMap. Referenced by Allocate(). |
|
Insure that we get all the information collected (either from files or from DB) in order to get sensible return values from Error* or Warning* methods.
Definition at line 652 of file emcBadModulesv1.C. References ComputeMaps(), fCollectedFEMs, fComputedFEMs, and EmcIndexer::PXPXSM144CH(). |
|
Implements emcBadModules. Definition at line 667 of file emcBadModulesv1.C. References IsValid(), update(), and WarningFast(). |
|
Implements emcBadModules. Definition at line 677 of file emcBadModulesv1.C. References fWarnRaw. Referenced by Warning(). |
|
Get warnneighbours information for the tower referenced by towerID.
Implements emcBadModules. Definition at line 694 of file emcBadModulesv1.C. References IsValid(), update(), and WarnmapFast(). |
|
Implements emcBadModules. Definition at line 703 of file emcBadModulesv1.C. References fWarnMap. Referenced by Warnmap(). |
|
Definition at line 179 of file emcBadModulesv1.h. Referenced by Allocate(), Collect(), ComputeMaps(), copyTo(), and update(). |
|
Definition at line 180 of file emcBadModulesv1.h. Referenced by Allocate(), ComputeMaps(), copyTo(), and update(). |
|
Definition at line 170 of file emcBadModulesv1.h. Referenced by CollectOnlineQA(), CollectPhysicsQA(), ComputeMaps(), copyTo(), and Reset(). |
|
Definition at line 172 of file emcBadModulesv1.h. Referenced by ComputeMaps(), copyTo(), and Reset(). |
|
Definition at line 176 of file emcBadModulesv1.h. Referenced by Allocate(), copyTo(), DeadmapFast(), IsValid(), and size(). |
|
Definition at line 182 of file emcBadModulesv1.h. Referenced by Allocate(), copyTo(), and ErrorFast(). |
|
Definition at line 174 of file emcBadModulesv1.h. Referenced by CollectPhysicsQA(), and Reset(). |
|
Definition at line 190 of file emcBadModulesv1.h. |
|
Definition at line 191 of file emcBadModulesv1.h. |
|
Definition at line 189 of file emcBadModulesv1.h. |
|
Definition at line 194 of file emcBadModulesv1.h. |
|
Definition at line 195 of file emcBadModulesv1.h. |
|
Definition at line 193 of file emcBadModulesv1.h. |
|
Definition at line 171 of file emcBadModulesv1.h. |
|
Definition at line 173 of file emcBadModulesv1.h. Referenced by ComputeMaps(), copyTo(), and Reset(). |
|
Definition at line 177 of file emcBadModulesv1.h. Referenced by Allocate(), copyTo(), and WarnmapFast(). |
|
Definition at line 183 of file emcBadModulesv1.h. Referenced by Allocate(), copyTo(), and WarningFast(). |