|
ATLAS Offline Software
|
Go to the documentation of this file.
26 if (
sc!=StatusCode::SUCCESS) {
33 if (
sc!=StatusCode::SUCCESS) {
100 if (
sc.isFailure()) {
106 if (
sc.isFailure()) {
111 if (
sc.isFailure()) {
126 return StatusCode::SUCCESS;
135 const EventContext& ctx = Gaudi::Hive::currentContext();
138 unsigned long long thisevent;
139 unsigned long thisbcid = 0;
142 thisevent =
evt->eventNumber();
144 thisbcid =
evt->bcid();
152 return StatusCode::SUCCESS;
155 etcontainer = &*hdlSc;
165 return StatusCode::SUCCESS;
168 recocontainer = &*hdlReco;
172 if(! (etcontainer || recocontainer)) {
175 return StatusCode::SUCCESS;
184 return StatusCode::SUCCESS;
187 rawcontainer = &*hdlRaw;
191 unsigned cellCounter=0;
201 rawChannelMap.try_emplace( raw.channelID(), &raw );
213 return StatusCode::FAILURE;
216 cablingROD=*cablingHdlROD;
219 return StatusCode::FAILURE;
227 itercont = etcontainer;
229 secondcont = recocontainer;
230 auto cbiter=secondcont->
cbegin();
231 auto ceiter=secondcont->
cend();
232 for ( ; cbiter<ceiter; ++cbiter) {
233 rawSuperCellMap.try_emplace( (*cbiter)->hardwareID(), *cbiter );
237 if(recocontainer) itercont = recocontainer;
241 auto cbsciter=itercont->
cbegin();
242 auto cesciter=itercont->
cend();
243 for( ; cbsciter<cesciter; ++cbsciter ){
250 secondSC = rawSuperCellMap[iterSC->
hardwareID()];
256 for(
unsigned i=0;
i<truenet;++
i){
275 if(etcontainer && recocontainer) {
277 if(truenet > secondSC->
energies().size()) truenet=secondSC->
energies().size();
278 for(
unsigned i=0;
i<truenet;++
i){
301 ATH_MSG_DEBUG(
"LArSC2NtupleEB has finished, filled"<< cellCounter <<
" cells" );
302 return StatusCode::SUCCESS;
309 const std::vector<Identifier> cellIds =
m_scidtool->superCellToOfflineID(offId);
310 for(
unsigned i=0;
i<16; ++
i) {
315 for(
unsigned i=0;
i<cellIds.size(); ++
i ) {
317 if (hwcell.
is_valid() && (rawChanMap.count(hwcell) != 0) ) {
320 m_ROD_id[
cell][
i] = rawChanMap[hwcell]->hardwareID().get_identifier32().get_compact();
Liquid Argon SuperCell raw data.
SG::ReadHandleKey< LArRawSCContainer > m_reccontKey
NTuple::Item< unsigned long long > m_IEvent
SG::ReadHandleKey< xAOD::EventInfo > m_evtInfoKey
NTuple::Matrix< float > m_ROD_energy
NTuple::Matrix< bool > m_saturVec_Reco
Container class for LArRawSC.
const HWIdentifier & hardwareID() const
NTuple::Matrix< float > m_ROD_id
const_iterator cend() const noexcept
Return a const_iterator pointing past the end of the collection.
NTuple::Matrix< bool > m_passVec_ET
NTuple::Matrix< float > m_bcidVec_ET
const std::string & key() const
Return the StoreGate ID for the referenced object.
bool empty() const
Test if the key is blank.
bool is_valid() const
Check if id is in a valid state.
Gaudi::Property< bool > m_fillBCID
const std::vector< bool > & satur() const
const std::vector< int > & tauEnergies() const
Gaudi::Property< unsigned int > m_scNet
Gaudi::Property< unsigned int > m_recoNet
NTuple::Item< short > m_bcid
NTuple::Matrix< float > m_tauVec_Reco
SG::ReadHandleKey< LArRawSCContainer > m_sccontKey
Liquid Argon ROD output object base class.
::StatusCode StatusCode
StatusCode definition for legacy code.
ToolHandle< ICaloSuperCellIDTool > m_scidtool
NTuple::Matrix< float > m_energyVec_Reco
SG::ReadHandleKey< LArRawChannelContainer > m_rawcontKey
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
bool fillFromIdentifier(const HWIdentifier &id, int C)
HWIdentifier createSignalChannelID(const Identifier &id) const
create a HWIdentifier from an Identifier (not inline)
virtual bool isValid() override final
Can the handle be successfully dereferenced?
virtual StatusCode execute() override
const SG::ReadCondHandleKey< LArOnOffIdMapping > & cablingKey() const
virtual StatusCode initialize() override
NTuple::Matrix< float > m_energyVec_ET
NTuple::Matrix< float > m_bcidVec_Reco
NTuple::Matrix< bool > m_passVec_Reco
StatusCode initialize(bool used=true)
const std::vector< bool > & passTauSelection() const
const std::vector< unsigned short > & bcids() const
#define ATH_MSG_WARNING(x)
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKeyAdditional
void fillRODEnergy(HWIdentifier SCId, unsigned cell, rawChanMap_t &rawChanMap, const LArOnOffIdMapping *cabling, const LArOnOffIdMapping *cablingROD)
NTuple::Matrix< bool > m_saturVec_ET
NTuple::Matrix< float > m_ROD_time
const_iterator cbegin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
std::map< HWIdentifier, const LArRawChannel * > rawChanMap_t
std::map< HWIdentifier, const LArRawSC * > rawSCMap_t
Gaudi::Property< float > m_eCut
LArSC2NtupleEB(const std::string &name, ISvcLocator *pSvcLocator)
Container for LArRawChannel (IDC using LArRawChannelCollection)
Gaudi::Property< bool > m_isSC
const std::vector< int > & energies() const