#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 24 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 17 of file EcalTBReadout.cc.
References edm::hlt::Exception, spr::find(), newFWLiteAna::found, i, EBDetId::ic(), EBDetId::ieta(), EBDetId::iphi(), LogDebug, NCRYMATRIX, findQualityFiles::size, theDetIds, theTargetCrystal_, theTTlist_, and EcalTrigTowerConstituentsMap::towerOf().
Referenced by performReadout().
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 172 of file EcalTBReadout.cc.
References ecalTBInfoLabel_, findTTlist(), and readOut().
Referenced by EcalTBDigiProducer::finalizeEvent().
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 195 of file EcalTBReadout.cc.
References ecalTBInfoLabel_, findTTlist(), and readOut().
void EcalTBReadout::readOut | ( | const EBDigiCollection & | input, |
EBDigiCollection & | output, | ||
const EcalTrigTowerConstituentsMap & | etmap | ||
) |
read only the digis from the selected TT
Definition at line 109 of file EcalTBReadout.cc.
References edm::DataFrameContainer::back(), edm::DataFrame::begin(), filterCSVwithJSON::copy, gather_cfg::cout, edm::DataFrame::end(), spr::find(), EcalDataFrame::frame(), EBDataFrame::id(), edm::DataFrameContainer::push_back(), edm::DataFrameContainer::size(), theTTlist_, and EcalTrigTowerConstituentsMap::towerOf().
Referenced by performReadout().
void EcalTBReadout::readOut | ( | const EEDigiCollection & | input, |
EEDigiCollection & | output, | ||
const EcalTrigTowerConstituentsMap & | etmap | ||
) |
read only the digis from the selected TT
Definition at line 146 of file EcalTBReadout.cc.
References edm::DataFrameContainer::back(), edm::DataFrame::begin(), filterCSVwithJSON::copy, edm::DataFrame::end(), spr::find(), EcalDataFrame::frame(), EEDataFrame::id(), edm::DataFrameContainer::push_back(), edm::DataFrameContainer::size(), theTTlist_, and EcalTrigTowerConstituentsMap::towerOf().
|
inline |
tell the readout which cells exist
Definition at line 27 of file EcalTBReadout.h.
References theDetIds.
Referenced by EcalTBDigiProducer::initializeEvent().
|
private |
Definition at line 65 of file EcalTBReadout.h.
Referenced by performReadout().
|
staticprivate |
Definition at line 61 of file EcalTBReadout.h.
Referenced by findTTlist().
|
private |
Definition at line 63 of file EcalTBReadout.h.
Referenced by findTTlist(), and setDetIds().
|
private |
Definition at line 57 of file EcalTBReadout.h.
Referenced by EcalTBReadout(), and findTTlist().
|
private |
Definition at line 59 of file EcalTBReadout.h.
Referenced by EcalTBReadout(), findTTlist(), and readOut().