#include <EcalTBReadout.h>
Public Member Functions | |
EcalTBReadout (const std::string theEcalTBInfoLabel) | |
void | findTTlist (const int &crysId, const EcalTrigTowerConstituentsMap &etmap) |
search for the TT to be read More... | |
void | performReadout (edm::Event &event, const EcalTrigTowerConstituentsMap &theTTmap, const EBDigiCollection &input, EBDigiCollection &output) |
master function to be called once per event More... | |
void | performReadout (edm::Event &event, const EcalTrigTowerConstituentsMap &theTTmap, const EEDigiCollection &input, EEDigiCollection &output) |
master function to be called once per event More... | |
void | readOut (const EBDigiCollection &input, EBDigiCollection &output, const EcalTrigTowerConstituentsMap &etmap) |
read only the digis from the selected TT More... | |
void | readOut (const EEDigiCollection &input, EEDigiCollection &output, const EcalTrigTowerConstituentsMap &etmap) |
read only the digis from the selected TT More... | |
void | setDetIds (const std::vector< DetId > &detIds) |
tell the readout which cells exist More... | |
~EcalTBReadout () | |
Private Attributes | |
std::string | ecalTBInfoLabel_ |
const std::vector< DetId > * | theDetIds |
int | theTargetCrystal_ |
std::vector< EcalTrigTowerDetId > | theTTlist_ |
Static Private Attributes | |
static const int | NCRYMATRIX = 7 |
Definition at line 19 of file EcalTBReadout.h.
EcalTBReadout::EcalTBReadout | ( | const std::string | theEcalTBInfoLabel | ) |
|
inline |
Definition at line 22 of file EcalTBReadout.h.
void EcalTBReadout::findTTlist | ( | const int & | crysId, |
const EcalTrigTowerConstituentsMap & | etmap | ||
) |
search for the TT to be read
step 1: find the correspondence between the crystal identified in module and its DetId assuming only 1 SM present
step 2: find the crystals in the matrix and fill the TT list
loop on all the valid DetId and search for the good ones
Definition at line 14 of file EcalTBReadout.cc.
References Exception, spr::find(), runEdmFileComparison::found, mps_fire::i, EBDetId::ic(), EBDetId::ieta(), EBDetId::iphi(), LogDebug, NCRYMATRIX, findQualityFiles::size, theDetIds, theTargetCrystal_, theTTlist_, and EcalTrigTowerConstituentsMap::towerOf().
Referenced by performReadout(), and setDetIds().
void EcalTBReadout::performReadout | ( | edm::Event & | event, |
const EcalTrigTowerConstituentsMap & | theTTmap, | ||
const EBDigiCollection & | input, | ||
EBDigiCollection & | output | ||
) |
master function to be called once per event
Definition at line 150 of file EcalTBReadout.cc.
References ecalTBInfoLabel_, findTTlist(), PEcalTBInfo::nCrystal(), and readOut().
Referenced by EcalTBDigiProducer::finalizeEvent(), and setDetIds().
void EcalTBReadout::performReadout | ( | edm::Event & | event, |
const EcalTrigTowerConstituentsMap & | theTTmap, | ||
const EEDigiCollection & | input, | ||
EEDigiCollection & | output | ||
) |
master function to be called once per event
Definition at line 171 of file EcalTBReadout.cc.
References ecalTBInfoLabel_, findTTlist(), PEcalTBInfo::nCrystal(), and readOut().
void EcalTBReadout::readOut | ( | const EBDigiCollection & | input, |
EBDigiCollection & | output, | ||
const EcalTrigTowerConstituentsMap & | etmap | ||
) |
read only the digis from the selected TT
Definition at line 99 of file EcalTBReadout.cc.
References edm::DataFrameContainer::back(), edm::DataFrame::begin(), popcon2dropbox::copy(), gather_cfg::cout, edm::DataFrame::end(), spr::find(), EcalDataFrame::frame(), EBDataFrame::id(), EBDigiCollection::push_back(), edm::DataFrameContainer::size(), theTTlist_, and EcalTrigTowerConstituentsMap::towerOf().
Referenced by performReadout(), and setDetIds().
void EcalTBReadout::readOut | ( | const EEDigiCollection & | input, |
EEDigiCollection & | output, | ||
const EcalTrigTowerConstituentsMap & | etmap | ||
) |
read only the digis from the selected TT
Definition at line 132 of file EcalTBReadout.cc.
References edm::DataFrameContainer::back(), edm::DataFrame::begin(), popcon2dropbox::copy(), edm::DataFrame::end(), spr::find(), EcalDataFrame::frame(), EEDataFrame::id(), EEDigiCollection::push_back(), edm::DataFrameContainer::size(), theTTlist_, and EcalTrigTowerConstituentsMap::towerOf().
|
inline |
tell the readout which cells exist
Definition at line 25 of file EcalTBReadout.h.
References findTTlist(), input, convertSQLitetoXML_cfg::output, performReadout(), readOut(), and theDetIds.
Referenced by EcalTBDigiProducer::initializeEvent().
|
private |
Definition at line 57 of file EcalTBReadout.h.
Referenced by performReadout().
|
staticprivate |
Definition at line 53 of file EcalTBReadout.h.
Referenced by findTTlist().
|
private |
Definition at line 55 of file EcalTBReadout.h.
Referenced by findTTlist(), and setDetIds().
|
private |
Definition at line 49 of file EcalTBReadout.h.
Referenced by EcalTBReadout(), and findTTlist().
|
private |
Definition at line 51 of file EcalTBReadout.h.
Referenced by EcalTBReadout(), findTTlist(), and readOut().