emcBadModules Class Reference
[InterfacesTower calibration]

#include <emcBadModules.h>

Inherited by emcBadModulesv1.

Inheritance diagram for emcBadModules:

Inheritance graph
[legend]
List of all members.

Detailed Description

(ABC) Information center about Q&A of EMCAL towers.

Q&A information might come from online only or from online and physics.

Of prime importance here is the concept of dead and warnmaps. dead=something is surely wrong, warn=something is strange

Both are 20 bits words, and are a characteristic of a single tower, but give information of the status of the neighbouring towers.

Some bits are related to energy information, while the others are for timing information. By using a proper bit mask, one can test for specific things. Typically you may want to insure that deadmap=warnmap=0 (everything is as perfect as possible), or make a less stringent test, e.g. deadmap & 0X1CE70 to test that amplitude is correct in a 3x3 region around that tower.

Note that those flags are also available in the emcClusterContent class, where they represent the information of the central tower of the cluster.

  // For amplitude bits are:
  // ---------------------
  // |   | 18| 19| 20|   |
  // ---------------------
  // | 13| 14| 15| 16| 17|
  // ---------------------  ^ y
  // | 8 | 9 | 10| 11| 12|  |
  // ---------------------  |
  // | 3 | 4 | 5 | 6 | 7 |  |
  // ---------------------  ------> z(x)
  // |   | 0 | 1 | 2 |   |
  // ---------------------
  // as viewed from the back of the central tower (which has bit 10 set
  // to 1 if it's itself a bad module); corner towers are excluded
  //
  // For ToF bits are :
  // -------------
  // | 27| 28| 29|  ^ y
  // -------------  |
  // | 24| 25| 26|  |
  // -------------  |
  // | 21| 22| 23|  ------> z(x)
  // -------------
  // as viewed from the back of the central tower (which has bit 25 set
  // to 1 if it's itself a bad module)
  //

Definition at line 64 of file emcBadModules.h.

Public Types

enum  EInformationOrigin { kNone = -1, kOnline, kPhysics, kAll }

Public Member Functions

virtual ~emcBadModules ()
 Dtor.
virtual emcBadModulesclone (void) const =0
virtual std::ostream & Print (int towerid=-1, std::ostream &out=std::cout)=0
 Print one tower info (or all if towerid=-1).
virtual unsigned int size (void) const =0
 Number of towers.
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

virtual unsigned int Deadmap (int towerID)=0
 Get deadneighbours information for the tower referenced by towerID.
virtual unsigned int DeadmapFast (int towerID) const =0
virtual unsigned int Warnmap (int towerID)=0
 Get warnneighbours information for the tower referenced by towerID.
virtual unsigned int WarnmapFast (int towerID) const =0
Access to underlying separate information.
(Q&A from online or 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.

virtual unsigned int Error (emcBadModules::EInformationOrigin source, int towerID)=0
virtual unsigned int ErrorFast (emcBadModules::EInformationOrigin source, int towerID) const =0
virtual unsigned int Warning (emcBadModules::EInformationOrigin source, int towerID)=0
virtual unsigned int WarningFast (emcBadModules::EInformationOrigin source, int towerID) const =0


Member Enumeration Documentation

enum emcBadModules::EInformationOrigin
 

Enumerator:
kNone 
kOnline  Online QA (typically by onlcal).
kPhysics  Offline QA (typically by first analysis on that dataset).
kAll  Both online and offline QA.

Definition at line 69 of file emcBadModules.h.


Constructor & Destructor Documentation

virtual emcBadModules::~emcBadModules  )  [virtual]
 

Dtor.


Member Function Documentation

virtual emcBadModules* emcBadModules::clone void   )  const [pure virtual]
 

Implemented in emcBadModulesv1.

virtual unsigned int emcBadModules::Deadmap int  towerID  )  [pure virtual]
 

Get deadneighbours information for the tower referenced by towerID.

Implemented in emcBadModulesv1.

Referenced by mEmcApplyQAToSimu::event().

virtual unsigned int emcBadModules::DeadmapFast int  towerID  )  const [pure virtual]
 

Implemented in emcBadModulesv1.

Referenced by emcRawDataProcessorv3::toADCandTDC(), and emcRawDataProcessorv2::toADCandTDC().

virtual unsigned int emcBadModules::Error emcBadModules::EInformationOrigin  source,
int  towerID
[pure virtual]
 

Implemented in emcBadModulesv1.

virtual unsigned int emcBadModules::ErrorFast emcBadModules::EInformationOrigin  source,
int  towerID
const [pure virtual]
 

Implemented in emcBadModulesv1.

virtual std::ostream& emcBadModules::Print int  towerid = -1,
std::ostream &  out = std::cout
[pure virtual]
 

Print one tower info (or all if towerid=-1).

Implemented in emcBadModulesv1.

Referenced by operator<<().

virtual unsigned int emcBadModules::size void   )  const [pure virtual]
 

Number of towers.

Implemented in emcBadModulesv1.

virtual unsigned int emcBadModules::Warning emcBadModules::EInformationOrigin  source,
int  towerID
[pure virtual]
 

Implemented in emcBadModulesv1.

virtual unsigned int emcBadModules::WarningFast emcBadModules::EInformationOrigin  source,
int  towerID
const [pure virtual]
 

Implemented in emcBadModulesv1.

virtual unsigned int emcBadModules::Warnmap int  towerID  )  [pure virtual]
 

Get warnneighbours information for the tower referenced by towerID.

Implemented in emcBadModulesv1.

virtual unsigned int emcBadModules::WarnmapFast int  towerID  )  const [pure virtual]
 

Implemented in emcBadModulesv1.


The documentation for this class was generated from the following file: