ATLAS Offline Software
Loading...
Searching...
No Matches
LArDSPThresholdFillInline Class Reference

#include <LArDSPThresholdFillInline.h>

Inheritance diagram for LArDSPThresholdFillInline:

Public Member Functions

 LArDSPThresholdFillInline (const std::string &name, ISvcLocator *pSvcLocator)
virtual ~LArDSPThresholdFillInline ()
virtual StatusCode initialize () override
virtual StatusCode execute () override
virtual StatusCode stop () override
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Private Types

enum  mode_t { FIXED , GROUP , NOISE }
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

SG::ReadCondHandleKey< LArOnOffIdMappingm_cablingKey {this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping object"}
SG::ReadCondHandleKey< CaloDetDescrManagerm_caloMgrKey {this,"CaloDetDescrManager","CaloDetDescrManager","SG Key for CaloDetDescrManager in the Condition Store" }
const LArOnlineIDm_onlineID
std::string m_nameOfSet
std::string m_key
std::string m_mode
std::vector< std::string > m_cellGroupStr
float m_tqThrsh {}
float m_samplesThrsh {}
float m_maskedtqThrsh {}
float m_maskedsamplesThrsh {}
float m_sigmaNoiseSamples = 0.0F
float m_sigmaNoiseQt = 0.0F
bool m_usePileupNoiseSamples = false
bool m_usePileupNoiseQt = false
bool m_dump {}
bool m_maskBadChannels {}
std::string m_outFileName
std::string m_inFileName
bool m_fill {}
SG::ReadCondHandleKey< CaloNoisem_totalNoiseKey { this, "TotalNoiseKey", "totalNoise", "SG key for total noise" }
SG::ReadCondHandleKey< CaloNoisem_elecNoiseKey { this, "ElecNoiseKey", "electronicNoise", "SG key for electronic noise" }
LArBadChannelMask m_bcMask
 Handle to bad-channel mask.
SG::ReadCondHandleKey< LArBadChannelContm_bcContKey {this, "BadChanKey", "LArBadChannel", "SG key for LArBadChan object"}
Gaudi::Property< std::vector< std::string > > m_problemsToMask {this,"ProblemsToMask",{}, "Bad-Channel categories to mask"}
Gaudi::Property< float > m_scaleIW {this,"ScaleIW",0.,"if >0 scale EMEC IW, HEC thresholds with this factor"}
mode_t m_workmode {FIXED}
CaloCellGroupList m_thrPerCell
DataObjIDColl m_extendedExtraObjects
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default).
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default).
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Definition at line 20 of file LArDSPThresholdFillInline.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Member Enumeration Documentation

◆ mode_t

Constructor & Destructor Documentation

◆ LArDSPThresholdFillInline()

LArDSPThresholdFillInline::LArDSPThresholdFillInline ( const std::string & name,
ISvcLocator * pSvcLocator )

Definition at line 24 of file LArDSPThresholdFillInline.cxx.

24 :
25 AthAlgorithm(name,pSvcLocator),
26 m_onlineID(0),
28{
29
30 declareProperty("Fill",m_fill=true);
31 declareProperty("NameOfSet",m_nameOfSet);
32 declareProperty("Key",m_key="DSPThresholds");
33 declareProperty("mode",m_mode="fixed",
34 "Select how to set thresholds. Allowed values are 'fixed','group' and 'noise'");
35
36 //For mode 'fixed'
37 declareProperty("tQThreshold",m_tqThrsh=250);
38 declareProperty("samplesThreshold",m_samplesThrsh=1000);
39
40 //For mode 'group'
41 declareProperty("ThresholdsPerCellGroup",m_cellGroupStr);
42
43 //For mode 'Noise'
44 declareProperty("sigmaNoiseSamples",m_sigmaNoiseSamples);
45 declareProperty("sigmaNoiseQt",m_sigmaNoiseQt);
46 declareProperty("usePileupNoiseSamples",m_usePileupNoiseSamples);
47 declareProperty("usePileupNoiseQt",m_usePileupNoiseQt);
48
49 //For channel masking
50 declareProperty("MaskBadChannels",m_maskBadChannels=false);
51 declareProperty("MaskedtQThreshold",m_maskedtqThrsh=static_cast<float>(0x7fffffff));
52 declareProperty("MaskedsamplesThreshold",m_maskedsamplesThrsh=static_cast<float>(0x7fffffff));
53
54 declareProperty("Dump",m_dump=false);
55 declareProperty("OutFile",m_outFileName="out.txt");
56}
AthAlgorithm()
Default constructor:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
std::vector< std::string > m_cellGroupStr

◆ ~LArDSPThresholdFillInline()

LArDSPThresholdFillInline::~LArDSPThresholdFillInline ( )
virtual

Definition at line 58 of file LArDSPThresholdFillInline.cxx.

58{}

Member Function Documentation

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Algorithm > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ execute()

virtual StatusCode LArDSPThresholdFillInline::execute ( )
inlineoverridevirtual

Definition at line 25 of file LArDSPThresholdFillInline.h.

25{return StatusCode::SUCCESS;}

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ extraOutputDeps()

const DataObjIDColl & AthAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 50 of file AthAlgorithm.cxx.

51{
52 // If we didn't find any symlinks to add, just return the collection
53 // from the base class. Otherwise, return the extended collection.
54 if (!m_extendedExtraObjects.empty()) {
56 }
57 return Algorithm::extraOutputDeps();
58}
DataObjIDColl m_extendedExtraObjects

◆ initialize()

StatusCode LArDSPThresholdFillInline::initialize ( )
overridevirtual

Definition at line 61 of file LArDSPThresholdFillInline.cxx.

61 {
62
63 ATH_MSG_DEBUG ( "start initialize()" );
64
65 ATH_CHECK( detStore()->retrieve(m_onlineID,"LArOnlineID") );
66 ATH_CHECK( m_cablingKey.initialize() );
67 ATH_CHECK( m_caloMgrKey.initialize() );
68
70 ATH_CHECK(m_bcMask.buildBitMask(m_problemsToMask,msg()));
71
72
73 if (m_mode.compare("fixed")==0) {
75 ATH_MSG_INFO ( "Will used fixed values defined by jobO "
76 << name() <<".tQThreshold and "
77 << name() << ".samplesThreshold for DSP thresholds" );
78 }
79 else if (m_mode.compare("group")==0) {
81 ATH_MSG_INFO ( "Will used cell groups defined in jobO " << name() << ".CellGroup for DSP thresholds" );
82 const CaloCell_ID* caloCellID = nullptr;
83 ATH_CHECK( detStore()->retrieve(caloCellID,"CaloCell_ID") );
84
85 if (m_thrPerCell.setDefinition(dynamic_cast<const CaloCell_Base_ID*>(caloCellID),m_cellGroupStr,msg())==false)
86 return StatusCode::FAILURE;
87 m_thrPerCell.printDef();
88
89 if (m_thrPerCell.getDefaults().size()!=2) {
90 ATH_MSG_ERROR ( "Expected 2 values per cell group, got " << m_thrPerCell.getDefaults().size() );
91 return StatusCode::FAILURE;
92 }
93 }
94 else if (m_mode.compare("noise")==0) {
96
98 ATH_MSG_INFO ( "Will used ICaloCellTool::totalNoiseRMS times " << name() << ".sigmaNoiseSamples and" );
99 else
100 ATH_MSG_INFO ( "Will used ICaloCellTool::elecNoiseRMS times " << name() << ".sigmaNoiseSamples and" );
101
103 ATH_MSG_INFO ( "ICaloCellTool::totalNoiseRMS times " << name() << ".sigmaNoiseQt for DSP thresholds" );
104 else
105 ATH_MSG_INFO ( "ICaloCellTool::elecNoiseRMS times " << name() << ".sigmaNoiseQt for DSP thresholds" );
106
107 }
108
109 ATH_CHECK( m_totalNoiseKey.initialize (m_workmode == NOISE) );
110 ATH_CHECK( m_elecNoiseKey.initialize (m_workmode == NOISE) );
111
112 return StatusCode::SUCCESS;
113}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
#define ATH_MSG_INFO(x)
#define ATH_MSG_DEBUG(x)
const ServiceHandle< StoreGateSvc > & detStore() const
MsgStream & msg() const
SG::ReadCondHandleKey< CaloNoise > m_totalNoiseKey
SG::ReadCondHandleKey< CaloNoise > m_elecNoiseKey
LArBadChannelMask m_bcMask
Handle to bad-channel mask.
Gaudi::Property< std::vector< std::string > > m_problemsToMask
SG::ReadCondHandleKey< LArBadChannelCont > m_bcContKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Algorithm > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ msg()

MsgStream & AthCommonMsg< Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< Algorithm >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Algorithm > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ renounce()

std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > AthCommonDataStore< AthCommonMsg< Algorithm > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Algorithm > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ stop()

StatusCode LArDSPThresholdFillInline::stop ( )
overridevirtual

Definition at line 115 of file LArDSPThresholdFillInline.cxx.

115 {
116
117 ATH_MSG_DEBUG ( "start stop()" );
118 if( m_scaleIW > 0.) { ATH_MSG_INFO (" Scaling EMECIW by: "<<m_scaleIW);}
119
120 const EventContext& ctx = Gaudi::Hive::currentContext();
121
122 if (m_fill) {
123
124 ATH_MSG_INFO ( "Filling database" );
125
126 unsigned hashMax=m_onlineID->channelHashMax();
127
128 coral::AttributeListSpecification* spec = new coral::AttributeListSpecification();
129 spec->extend("tQThr", "blob");
130 spec->extend("samplesThr", "blob");
131 spec->extend("trigSumThr", "blob");
132 spec->extend("Name","string");
133
134 AthenaAttributeList* attr=new AthenaAttributeList(*spec);
135
136
137 (*attr)["Name"].setValue(m_nameOfSet);
138 coral::Blob& tQThrBlob = (*attr)["tQThr"].data<coral::Blob>();
139 coral::Blob& samplesThrBlob = (*attr)["samplesThr"].data<coral::Blob>();
140 coral::Blob& trigSumThrBlob = (*attr)["trigSumThr"].data<coral::Blob>();
141
142 tQThrBlob.resize(hashMax*sizeof(float));
143 samplesThrBlob.resize(hashMax*sizeof(float));
144 trigSumThrBlob.resize(hashMax*sizeof(float));
145
146 float* ptQThrBlob=static_cast<float*>(tQThrBlob.startingAddress());
147 float* psamplesBlob=static_cast<float*>(samplesThrBlob.startingAddress());
148 float* ptrigSumBlob=static_cast<float*>(trigSumThrBlob.startingAddress());
149
150 ATH_CHECK( detStore()->record(attr,m_key) );
151
152 SG::ReadCondHandle<CaloDetDescrManager> caloMgrHandle{m_caloMgrKey};
153 ATH_CHECK(caloMgrHandle.isValid());
154 const CaloDetDescrManager *theCaloDDM = *caloMgrHandle;
155 ATH_MSG_INFO ( "theCaloDDM retrieved" );
156
157 SG::ReadCondHandle<LArOnOffIdMapping> cablingHdl (m_cablingKey, ctx);
158 const LArOnOffIdMapping* cabling{*cablingHdl};
159 if(!cabling) {
160 ATH_MSG_ERROR("Do not have mapping object " << m_cablingKey.key());
161 return StatusCode::FAILURE;
162 }
163
164 const CaloNoise* totalNoise = nullptr;
165 const CaloNoise* elecNoise = nullptr;
166 if (m_workmode == NOISE) {
167 SG::ReadCondHandle<CaloNoise> totalNoiseH (m_totalNoiseKey, ctx);
168 totalNoise = totalNoiseH.cptr();
169 SG::ReadCondHandle<CaloNoise> elecNoiseH (m_elecNoiseKey, ctx);
170 elecNoise = elecNoiseH.cptr();
171 }
172
173 //retrieve BadChannel info:
174 const LArBadChannelCont* bcCont=nullptr;
175 if (m_maskBadChannels) {
176 SG::ReadCondHandle<LArBadChannelCont> bcContHdl{m_bcContKey,ctx};
177 bcCont=(*bcContHdl);
178 }
179
180
181 for (unsigned hs=0;hs<hashMax;++hs) {
182 const HWIdentifier chid=m_onlineID->channel_Id(hs);
183 const Identifier id=cabling->cnvToIdentifier(chid);
184 ATH_MSG_DEBUG ( "cell id: " << id << " " << cabling->isOnlineConnected(chid) );
185
186 if(!cabling->isOnlineConnected(chid)){
187 ATH_MSG_DEBUG ( "cell id: " << id << " not connected channel, skip " );
188 // Same (very high) thresholds for disconnected channels as masked channels
189 ptQThrBlob[hs]=m_maskedtqThrsh;
190 psamplesBlob[hs]=m_maskedsamplesThrsh;
191 ptrigSumBlob[hs]=m_maskedtqThrsh;
192 continue;
193 }
194
195 if(m_maskBadChannels && m_bcMask.cellShouldBeMasked(bcCont,chid)){ // Default gain is CaloGain::UNKNOWNGAIN
196 ATH_MSG_DEBUG ( "cell id: " << id << " is masked; set thresholds to " << m_maskedtqThrsh << ", " << m_maskedsamplesThrsh );
197 ptQThrBlob[hs]=m_maskedtqThrsh;
198 psamplesBlob[hs]=m_maskedsamplesThrsh;
199 ptrigSumBlob[hs]=m_maskedtqThrsh;
200 continue;
201 }
202
203 if (m_workmode==FIXED) {
204 ptQThrBlob[hs]=m_tqThrsh;
205 psamplesBlob[hs]=m_samplesThrsh;
206 ptrigSumBlob[hs]=m_tqThrsh;
207 }
208 else if (m_workmode==GROUP) {
209 const std::vector<float>& thrs=m_thrPerCell.valuesForCell(id);
210 if(thrs.size()!=2) std::cout << "len=" << thrs.size() << std::endl;
211 ptQThrBlob[hs]=thrs[0];
212 psamplesBlob[hs]=thrs[1];
213 ptrigSumBlob[hs]=thrs[0];
214 }
215 else if (m_workmode==NOISE) {
216 const CaloDetDescrElement *caloDDE = theCaloDDM->get_element(id);
217 if(!caloDDE){
218 ATH_MSG_ERROR ( "Failed to return CaloDetDescrElement" );
219 return StatusCode::FAILURE;
220 }
222
223 if(caloDDE->is_lar_fcal())
225 else
227
228 ATH_MSG_DEBUG ( "hash, eta, phi: " << caloDDE->calo_hash() << ", " << caloDDE->eta() << ", " << caloDDE->phi() << "; noise: " << totalNoise->getNoise(id,igain) );
229
230 float samplesThr = 0.;
231 float QtThr = 0.;
232
234 samplesThr = totalNoise->getNoise(id,igain);
235 else
236 samplesThr = elecNoise->getNoise(id,igain);
237
239 QtThr = totalNoise->getNoise(id,igain);
240 else
241 QtThr = elecNoise->getNoise(id,igain);
242
243 ptQThrBlob[hs]=QtThr*m_sigmaNoiseQt;
244 psamplesBlob[hs]=samplesThr*m_sigmaNoiseSamples;
245 ptrigSumBlob[hs]=QtThr*m_sigmaNoiseQt;
246
247 }// end if NOISE
248
249 if( m_scaleIW > 0.) {
250 int slot = m_onlineID->slot(chid);
251 if (m_onlineID->isEMECIW(chid) ) {
252 ptQThrBlob[hs] *= m_scaleIW;
253 psamplesBlob[hs] *= m_scaleIW;
254 ptrigSumBlob[hs] *= m_scaleIW;
255 } else if ( (m_onlineID->isHECchannel(chid) && (slot==7 || slot==8) ) ||
256 (m_onlineID->isEMECchannel(chid) && (slot==12||slot==13)) ) {
257 ptQThrBlob[hs] *= m_scaleIW/2.;
258 psamplesBlob[hs] *= m_scaleIW/2.;
259 ptrigSumBlob[hs] *= m_scaleIW/2.;
260 }
261 } // scaling IW
262
263 }//end loop over cells
264 }//end if FILL
265
266 if (m_dump) {
267
268 const AthenaAttributeList* attr=0;
269
270 ATH_CHECK( detStore()->retrieve(attr,m_key) );
271
272 LArDSPThresholdsFlat cont(attr);
273 if (!cont.good()){
274 ATH_MSG_ERROR("LArDSPThresholdsFlat did not initialise.");
275 return StatusCode::FAILURE;
276 }
277 std::ofstream outfile;
278 if (!m_outFileName.size()) {
279 ATH_MSG_ERROR("No output file specified");
280 return StatusCode::FAILURE;
281 }
282 outfile.open(m_outFileName.c_str(),std::ios::out);
283 if (outfile.is_open()) {
284 ATH_MSG_INFO ( "Writing to file " << m_outFileName );
285 }
286 else {
287 ATH_MSG_ERROR ( "Failed to open file " << m_outFileName );
288 return StatusCode::FAILURE;
289 }
290
291 std::vector<HWIdentifier>::const_iterator chanIt=m_onlineID->channel_begin();
292 std::vector<HWIdentifier>::const_iterator chanIt_e=m_onlineID->channel_end ();
293 for (;chanIt!=chanIt_e;++chanIt) {
294 const HWIdentifier chid=*chanIt;
295 outfile << std::fixed << chid.get_compact() << " " << cont.tQThr(chid) << " " << cont.samplesThr(chid) << " " << cont.trigSumThr(chid)
296 << std::endl;
297
298 } //end if loop over channels
299
300 outfile.close();
301 }// end if m_dump
302
303 return StatusCode::SUCCESS;
304}
LArBadXCont< LArBadChannel > LArBadChannelCont
bool is_lar_fcal() const
cell belongs to FCAL
const CaloDetDescrElement * get_element(const Identifier &cellId) const
get element by its identifier
float getNoise(const IdentifierHash h, const int gain) const
Accessor by IdentifierHash and gain.
Definition CaloNoise.h:35
value_type get_compact() const
Get the compact id.
Gaudi::Property< float > m_scaleIW
@ LARMEDIUMGAIN
Definition CaloGain.h:18
@ INVALIDGAIN
Definition CaloGain.h:18
@ LARHIGHGAIN
Definition CaloGain.h:18

◆ sysInitialize()

StatusCode AthAlgorithm::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Algorithm > >.

Reimplemented in AthAnalysisAlgorithm, AthFilterAlgorithm, AthHistogramAlgorithm, and PyAthena::Alg.

Definition at line 66 of file AthAlgorithm.cxx.

66 {
68
69 if (sc.isFailure()) {
70 return sc;
71 }
72 ServiceHandle<ICondSvc> cs("CondSvc",name());
73 for (auto h : outputHandles()) {
74 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
75 // do this inside the loop so we don't create the CondSvc until needed
76 if ( cs.retrieve().isFailure() ) {
77 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
78 return StatusCode::SUCCESS;
79 }
80 if (cs->regHandle(this,*h).isFailure()) {
81 sc = StatusCode::FAILURE;
82 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
83 << " with CondSvc");
84 }
85 }
86 }
87 return sc;
88}
#define ATH_MSG_WARNING(x)
static Double_t sc
virtual StatusCode sysInitialize() override
Override sysInitialize.
AthCommonDataStore(const std::string &name, T... args)
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
::StatusCode StatusCode
StatusCode definition for legacy code.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka

Member Data Documentation

◆ m_bcContKey

SG::ReadCondHandleKey<LArBadChannelCont> LArDSPThresholdFillInline::m_bcContKey {this, "BadChanKey", "LArBadChannel", "SG key for LArBadChan object"}
private

Definition at line 53 of file LArDSPThresholdFillInline.h.

53{this, "BadChanKey", "LArBadChannel", "SG key for LArBadChan object"};

◆ m_bcMask

LArBadChannelMask LArDSPThresholdFillInline::m_bcMask
private

Handle to bad-channel mask.

Definition at line 52 of file LArDSPThresholdFillInline.h.

◆ m_cablingKey

SG::ReadCondHandleKey<LArOnOffIdMapping> LArDSPThresholdFillInline::m_cablingKey {this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping object"}
private

Definition at line 29 of file LArDSPThresholdFillInline.h.

29{this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping object"};

◆ m_caloMgrKey

SG::ReadCondHandleKey<CaloDetDescrManager> LArDSPThresholdFillInline::m_caloMgrKey {this,"CaloDetDescrManager","CaloDetDescrManager","SG Key for CaloDetDescrManager in the Condition Store" }
private

Definition at line 30 of file LArDSPThresholdFillInline.h.

30{this,"CaloDetDescrManager","CaloDetDescrManager","SG Key for CaloDetDescrManager in the Condition Store" };

◆ m_cellGroupStr

std::vector<std::string> LArDSPThresholdFillInline::m_cellGroupStr
private

Definition at line 37 of file LArDSPThresholdFillInline.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default).

Definition at line 393 of file AthCommonDataStore.h.

◆ m_dump

bool LArDSPThresholdFillInline::m_dump {}
private

Definition at line 42 of file LArDSPThresholdFillInline.h.

◆ m_elecNoiseKey

SG::ReadCondHandleKey<CaloNoise> LArDSPThresholdFillInline::m_elecNoiseKey { this, "ElecNoiseKey", "electronicNoise", "SG key for electronic noise" }
private

Definition at line 48 of file LArDSPThresholdFillInline.h.

49{ this, "ElecNoiseKey", "electronicNoise", "SG key for electronic noise" };

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default).

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthAlgorithm::m_extendedExtraObjects
privateinherited

Definition at line 79 of file AthAlgorithm.h.

◆ m_fill

bool LArDSPThresholdFillInline::m_fill {}
private

Definition at line 44 of file LArDSPThresholdFillInline.h.

44{};

◆ m_inFileName

std::string LArDSPThresholdFillInline::m_inFileName
private

Definition at line 43 of file LArDSPThresholdFillInline.h.

◆ m_key

std::string LArDSPThresholdFillInline::m_key
private

Definition at line 35 of file LArDSPThresholdFillInline.h.

◆ m_maskBadChannels

bool LArDSPThresholdFillInline::m_maskBadChannels {}
private

Definition at line 42 of file LArDSPThresholdFillInline.h.

◆ m_maskedsamplesThrsh

float LArDSPThresholdFillInline::m_maskedsamplesThrsh {}
private

Definition at line 39 of file LArDSPThresholdFillInline.h.

◆ m_maskedtqThrsh

float LArDSPThresholdFillInline::m_maskedtqThrsh {}
private

Definition at line 39 of file LArDSPThresholdFillInline.h.

◆ m_mode

std::string LArDSPThresholdFillInline::m_mode
private

Definition at line 36 of file LArDSPThresholdFillInline.h.

◆ m_nameOfSet

std::string LArDSPThresholdFillInline::m_nameOfSet
private

Definition at line 34 of file LArDSPThresholdFillInline.h.

◆ m_onlineID

const LArOnlineID* LArDSPThresholdFillInline::m_onlineID
private

Definition at line 32 of file LArDSPThresholdFillInline.h.

◆ m_outFileName

std::string LArDSPThresholdFillInline::m_outFileName
private

Definition at line 43 of file LArDSPThresholdFillInline.h.

◆ m_problemsToMask

Gaudi::Property<std::vector<std::string> > LArDSPThresholdFillInline::m_problemsToMask {this,"ProblemsToMask",{}, "Bad-Channel categories to mask"}
private

Definition at line 54 of file LArDSPThresholdFillInline.h.

54{this,"ProblemsToMask",{}, "Bad-Channel categories to mask"};

◆ m_samplesThrsh

float LArDSPThresholdFillInline::m_samplesThrsh {}
private

Definition at line 38 of file LArDSPThresholdFillInline.h.

38{}, m_samplesThrsh{};

◆ m_scaleIW

Gaudi::Property<float> LArDSPThresholdFillInline::m_scaleIW {this,"ScaleIW",0.,"if >0 scale EMEC IW, HEC thresholds with this factor"}
private

Definition at line 55 of file LArDSPThresholdFillInline.h.

55{this,"ScaleIW",0.,"if >0 scale EMEC IW, HEC thresholds with this factor"};

◆ m_sigmaNoiseQt

float LArDSPThresholdFillInline::m_sigmaNoiseQt = 0.0F
private

Definition at line 40 of file LArDSPThresholdFillInline.h.

◆ m_sigmaNoiseSamples

float LArDSPThresholdFillInline::m_sigmaNoiseSamples = 0.0F
private

Definition at line 40 of file LArDSPThresholdFillInline.h.

◆ m_thrPerCell

CaloCellGroupList LArDSPThresholdFillInline::m_thrPerCell
private

Definition at line 64 of file LArDSPThresholdFillInline.h.

◆ m_totalNoiseKey

SG::ReadCondHandleKey<CaloNoise> LArDSPThresholdFillInline::m_totalNoiseKey { this, "TotalNoiseKey", "totalNoise", "SG key for total noise" }
private

Definition at line 46 of file LArDSPThresholdFillInline.h.

47{ this, "TotalNoiseKey", "totalNoise", "SG key for total noise" };

◆ m_tqThrsh

float LArDSPThresholdFillInline::m_tqThrsh {}
private

Definition at line 38 of file LArDSPThresholdFillInline.h.

38{}, m_samplesThrsh{};

◆ m_usePileupNoiseQt

bool LArDSPThresholdFillInline::m_usePileupNoiseQt = false
private

Definition at line 41 of file LArDSPThresholdFillInline.h.

◆ m_usePileupNoiseSamples

bool LArDSPThresholdFillInline::m_usePileupNoiseSamples = false
private

Definition at line 41 of file LArDSPThresholdFillInline.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Algorithm > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.

◆ m_workmode

mode_t LArDSPThresholdFillInline::m_workmode {FIXED}
private

Definition at line 62 of file LArDSPThresholdFillInline.h.

62{FIXED};

The documentation for this class was generated from the following files: