#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, EBDigiCollection &input, EBDigiCollection &output) |
master function to be called once per event More... | |
void | performReadout (edm::Event &event, const EcalTrigTowerConstituentsMap &theTTmap, EEDigiCollection &input, EEDigiCollection &output) |
master function to be called once per event More... | |
void | readOut (EBDigiCollection &input, EBDigiCollection &output, const EcalTrigTowerConstituentsMap &etmap) |
read only the digis from the selected TT More... | |
void | readOut (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 20 of file EcalTBReadout.h.
EcalTBReadout::EcalTBReadout | ( | const std::string | theEcalTBInfoLabel | ) |
|
inline |
Definition at line 28 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 16 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, | ||
EBDigiCollection & | input, | ||
EBDigiCollection & | output | ||
) |
master function to be called once per event
Definition at line 165 of file EcalTBReadout.cc.
References ecalTBInfoLabel_, findTTlist(), and readOut().
Referenced by EcalTBDigiProducer::produce().
void EcalTBReadout::performReadout | ( | edm::Event & | event, |
const EcalTrigTowerConstituentsMap & | theTTmap, | ||
EEDigiCollection & | input, | ||
EEDigiCollection & | output | ||
) |
master function to be called once per event
Definition at line 186 of file EcalTBReadout.cc.
References ecalTBInfoLabel_, findTTlist(), and readOut().
void EcalTBReadout::readOut | ( | EBDigiCollection & | input, |
EBDigiCollection & | output, | ||
const EcalTrigTowerConstituentsMap & | etmap | ||
) |
read only the digis from the selected TT
Definition at line 107 of file EcalTBReadout.cc.
References edm::DataFrameContainer::back(), edm::DataFrame::begin(), filterCSVwithJSON::copy, 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 | ( | EEDigiCollection & | input, |
EEDigiCollection & | output, | ||
const EcalTrigTowerConstituentsMap & | etmap | ||
) |
read only the digis from the selected TT
Definition at line 140 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 31 of file EcalTBReadout.h.
References theDetIds.
Referenced by EcalTBDigiProducer::produce().
|
private |
Definition at line 58 of file EcalTBReadout.h.
Referenced by performReadout().
|
staticprivate |
Definition at line 54 of file EcalTBReadout.h.
Referenced by findTTlist().
|
private |
Definition at line 56 of file EcalTBReadout.h.
Referenced by findTTlist(), and setDetIds().
|
private |
Definition at line 50 of file EcalTBReadout.h.
Referenced by EcalTBReadout(), and findTTlist().
|
private |
Definition at line 52 of file EcalTBReadout.h.
Referenced by EcalTBReadout(), findTTlist(), and readOut().