5#include "GaudiKernel/MsgStream.h"
6#include "GaudiKernel/IToolSvc.h"
58 ISvcLocator* pSvcLocator)
97 declareProperty(
"TriggerLines",
m_TriggerLines={
"L1_J5",
"L1_J10",
"L1_J12",
"L1_J30",
"L1_TAU5",
"L1_TAU8",
"L1_J5_EMPTY",
"L1_J10_EMPTY",
"L1_J12_EMPTY",
"L1_J30_EMPTY",
"L1_TAU5_EMPTY",
"L1_TAU8_EMPTY",
"L1_J5_FIRSTEMPTY",
"L1_J10_FIRSTEMPTY",
"L1_J12_FIRSTEMPTY",
"L1_J30_FIRSTEMPTY",
"L1_TAU5_FIRSTEMPTY",
"L1_TAU8_FIRSTEMPTY"});
136 m_tree =
new TTree(
"HECNoise",
"HECNoise" );
177 std::string treeName =
"/HEC/HECNoise" ;
183 return StatusCode::SUCCESS;
188 return StatusCode::SUCCESS;
221 return StatusCode::FAILURE;
229 return StatusCode::FAILURE;
245 msg(MSG::WARNING) <<
"Neither LArDigitContainer nor LArDigitContainer_Thinned nor FREE present, not filling anything "<<
endmsg;
246 return StatusCode::SUCCESS;
253 for ( ; itDig!=itDig_e;++itDig) {
261 short samp0= pLArDigit->
samples()[0];
262 for(
unsigned i=0; i<(pLArDigit->
samples()).size(); ++i){
263 short samp=pLArDigit->
samples()[i];
265 if(samp-samp0 > sigmax) {
269 if( samp-samp0 < sigmin) {
286 Identifier oid = cabling->cnvToIdentifier(hid);
302 const CaloCell *rcell = cc->findCell(ihash);
303 if(rcell->
ID() != oid) {
304 msg(MSG::WARNING) <<
"Cell iHash does not match ..."<<
endmsg;
311 for(
unsigned l=0; l<lraw->size(); ++l) {
312 if((*lraw)[l].identify() == hid) {
313 m_nt_e = (*lraw)[l].energy();
314 m_nt_t = (*lraw)[l].time()*1e-3;
331 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition of CaloDetDescrManager.
Calo Subsystem specific Detector Elements + Dummy element for testing.
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
#define CHECK(...)
Evaluate an expression and check for errors.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
const ServiceHandle< StoreGateSvc > & detStore() const
Container class for CaloCell.
Data object for each calorimeter readout cell.
float time() const
get time (data member)
virtual double e() const override final
get energy (data member) (synonym to method energy()
uint16_t quality() const
get quality (data member)
Identifier ID() const
get ID (from cached data member) non-virtual and inline for fast access
This class groups all DetDescr information related to a CaloCell.
float eta() const
cell eta
float phi() const
cell phi
const CaloDetDescrElement * get_element(const Identifier &cellId) const
get element by its identifier
This class provides the client interface for accessing the detector description information common to...
DataModel_detail::const_iterator< DataVector > const_iterator
This is a "hash" representation of an Identifier.
value_type get_compact() const
Get the compact id.
Container class for LArDigit.
Liquid Argon digit base class.
CaloGain::CaloGain gain() const
const HWIdentifier & hardwareID() const
const std::vector< short > & samples() const
const HWIdentifier & channelID() const
virtual StatusCode initialize() override
SG::ReadCondHandleKey< ILArPedestal > m_pedKey
PublicToolHandle< Trig::TrigDecisionTool > m_trigDec
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
const LArOnlineID * m_LArOnlineIDHelper
ServiceHandle< ITHistSvc > m_thistSvc
virtual StatusCode execute() override
virtual StatusCode finalize() override
std::vector< std::string > m_TriggerLines
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
const CaloCell_ID * m_calocell_id
LArHECNoise(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Container for LArRawChannel (IDC using LArRawChannelCollection)
uint32_t lumiBlock() const
The current event's luminosity block number.
uint32_t bcid() const
The bunch crossing ID of the event.
float averageInteractionsPerCrossing() const
Average interactions per crossing for all BCIDs - for out-of-time pile-up.
float actualInteractionsPerCrossing() const
Average interactions per crossing for the current BCID - for in-time pile-up.
uint32_t timeStamp() const
POSIX time in seconds from 1970. January 1st.
uint32_t runNumber() const
The current event's run number.
uint32_t timeStampNSOffset() const
Nanosecond time offset wrt. the time stamp.
uint64_t eventNumber() const
The current event's event number.
bool contains(const std::string &s, const std::string ®x)
does a string contain the substring
EventInfo_v1 EventInfo
Definition of the latest event info version.