ATLAS Offline Software
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
LArLATOMEBuilderAlg Class Reference

#include <LArLATOMEBuilderAlg.h>

Inheritance diagram for LArLATOMEBuilderAlg:
Collaboration diagram for LArLATOMEBuilderAlg:

Public Member Functions

 LArLATOMEBuilderAlg (const std::string &name, ISvcLocator *pSvcLocator)
 
StatusCode initialize () override
 
StatusCode execute (const EventContext &ctx) const override
 
StatusCode finalize () override
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. More...
 
virtual bool isClonable () const override
 Specify if the algorithm is clonable. More...
 
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
 
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
virtual bool filterPassed (const EventContext &ctx) const
 
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
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. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Static Private Member Functions

static bool floatToInt (float val, int &newval, int hardpoint, int size)
 reproduce LDPB package computation in https://gitlab.cern.ch/atlas-lar-online/onlinelatomedb/-/blob/master/src/CondFloatDB.cpp More...
 

Private Attributes

SG::ReadHandleKey< xAOD::EventInfom_eventInfoKey {this,"EventInfo","EventInfo","SG Key of EventInfo object"}
 
SG::ReadHandleKey< LArDigitContainerm_digitKey {this, "LArDigitKey","SC", "SG Key of the SC LArDigitContainer"}
 
SG::WriteHandleKey< LArRawSCContainerm_larRawSCKey {this,"LArRawSCKey","SC_ET_RECO","SG key of the output LArRawSCContainer"}
 
SG::ReadCondHandleKey< LArOnOffIdMappingm_cablingKey {this, "CablingSCKey","LArOnOffIdMapSC","SG Key of LArOnOffIdMapping object"}
 
SG::ReadCondHandleKey< ILArPedestalm_keyPedestalSC {this,"LArPedestalKeySC","LArPedestalSC","SG key of LArPedestal conditions object"}
 
SG::ReadCondHandleKey< ILArOFCm_keyOFCSC {this,"LArOFCKeySC","LArOFCSC","SG key of LArOFC conditions object"}
 
SG::ReadCondHandleKey< ILArRampm_keyRampSC {this,"LArRampKeySC","LArRampSC","SG key of LArRamp conditions object"}
 
SG::ReadCondHandleKey< ILArDAC2uAm_keyDAC2uASC {this,"LArDAC2uAKeySC","LArDAC2uASC","SG key of LArDAC2uA conditions object"}
 
SG::ReadCondHandleKey< ILAruA2MeVm_keyuA2MeVSC {this,"LAruA2MeVKeySC","LAruA2MeVSC","SG key of LAruA2MeV conditions object"}
 
SG::ReadCondHandleKey< ILArHVScaleCorrm_keyHVScaleCorrSC {this,"LArHVScaleCorrKeySC","LArHVScaleCorrSC","SG key of LArHVScaleCorr conditions object"}
 
SG::ReadCondHandleKey< ILArMphysOverMcalm_keyMphysOverMcalSC {this,"LArMphysOverMcalKeySC","LArMphysOverMcalSC","SG key of LArMphysOverMcal conditions object"}
 
Gaudi::Property< int > m_startSample {this,"startEnergy",0,"the first energy to compute with respect to the BCID"}
 
Gaudi::Property< int > m_nEnergies {this, "nEnergies", 1, "how many energies to compute"}
 
Gaudi::Property< bool > m_applyHVCorrection {this, "applyHVCorrection", true, "apply HV correction"}
 
Gaudi::Property< bool > m_applyMphysOverMcal {this, "applyMphysOverMcal", true, "apply MphysOverMcal correction"}
 
Gaudi::Property< bool > m_useR0 {this, "useR0", false, "use R0 from Ramp"}
 
Gaudi::Property< bool > m_isADCBas {this, "isADCBas", true, "Digits are ADC BAS"}
 
const LArOnlineID_Basem_onlineId = nullptr
 
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Definition at line 30 of file LArLATOMEBuilderAlg.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ LArLATOMEBuilderAlg()

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

Definition at line 26 of file LArLATOMEBuilderAlg.cxx.

26  :
27  AthReentrantAlgorithm(name, pSvcLocator) {}

Member Function Documentation

◆ cardinality()

unsigned int AthReentrantAlgorithm::cardinality ( ) const
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Override this to return 0 for reentrant algorithms.

Definition at line 55 of file AthReentrantAlgorithm.cxx.

56 {
57  return 0;
58 }

◆ declareGaudiProperty() [1/4]

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

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

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

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

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

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

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

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

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

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

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ detStore()

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

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

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ evtStore() [1/2]

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

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

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

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

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

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ execute()

StatusCode LArLATOMEBuilderAlg::execute ( const EventContext &  ctx) const
override

will take from DB later

lets store the floats in case we decide to do a float computation here in the future

scs

Definition at line 56 of file LArLATOMEBuilderAlg.cxx.

56  {
57 
59  unsigned int event_bcid = thisEvent->bcid();
60 
61  //Get event inputs from read handles:
63  //Write output via write handle
64  SG::WriteHandle<LArRawSCContainer> outputContainerHdl(m_larRawSCKey,ctx);
65  ATH_CHECK(outputContainerHdl.record(std::make_unique<LArRawSCContainer>()));
66  auto *outputContainer = outputContainerHdl.ptr();
67  outputContainer->clear(SG::VIEW_ELEMENTS);
68  outputContainer->reserve(inputContainer->size());
69  DataPool<LArRawSC> dataItemsPool(ctx);
70  dataItemsPool.reserve(inputContainer->size());
71 
72  //Get Conditions input
74  const LArPedestalSC* Peds=dynamic_cast<const LArPedestalSC*>(pedHdl.cptr());
75  if (!Peds) return StatusCode::FAILURE;
76 
78  const LArOFCSC* OFCs=dynamic_cast<const LArOFCSC*>(ofcHdl.cptr());
79  if (!OFCs) return StatusCode::FAILURE;
80 
82  const LArRampSC* Ramps=dynamic_cast<const LArRampSC*>(rampHdl.cptr());
83  if (!Ramps) return StatusCode::FAILURE;
84 
86  const LArDAC2uASC* DAC2uAs=dynamic_cast<const LArDAC2uASC*>(dac2uaHdl.cptr());
87  if (!DAC2uAs) return StatusCode::FAILURE;
88 
90  const LAruA2MeVSC* uA2MeVs=dynamic_cast<const LAruA2MeVSC*>(ua2mevHdl.cptr());
91  if (!uA2MeVs) return StatusCode::FAILURE;
92 
94  const LArMphysOverMcalSC* MphysOverMcals=dynamic_cast<const LArMphysOverMcalSC*>(mphysHdl.cptr());
95  if (!MphysOverMcals) return StatusCode::FAILURE;
96 
98  const LArHVScaleCorrSC* HVScaleCorrs=dynamic_cast<const LArHVScaleCorrSC*>(hvHdl.cptr());
99  if (!HVScaleCorrs) return StatusCode::FAILURE;
100 
102 
103  unsigned int nEnergies=m_nEnergies;
104 
105  //Loop over digits:
106  for (const LArDigit* digit : *inputContainer) {
107 
108  const LArSCDigit* digitSC=dynamic_cast<const LArSCDigit*>(digit);
109  if(!digitSC){
110  ATH_MSG_ERROR("container elements not of type LArSCDigit");
111  return StatusCode::FAILURE;
112  }
113  const std::vector<uint16_t>& bcids = digitSC->BCId();
114  const HWIdentifier id=digit->hardwareID();
115  std::flush(std::cout);
116  const std::vector<short>& samples=digit->samples();
117  int gain=digit->gain();
118  float ped=Peds->pedestal(id,gain);
119  LArOFCSC::OFCRef_t ofca=OFCs->OFC_a(id,gain);
120  LArOFCSC::OFCRef_t ofcb=OFCs->OFC_b(id,gain);
121  ILArRamp::RampRef_t ramp=Ramps->ADC2DAC(id,gain);
122  float dac2ua=DAC2uAs->DAC2UA(id);
123  float ua2mev=uA2MeVs->UA2MEV(id);
124  float mphys=MphysOverMcals->MphysOverMcal(id,gain);
125  float hvcorr=HVScaleCorrs->HVScaleCorr(id);
126  float ELSB = 12.5;
127 
129  ATH_MSG_ERROR("No valid pedestal for connected channel " << id.get_identifier32().get_compact() << " gain " << gain);
130  return StatusCode::FAILURE;
131  }
132  if(ATH_UNLIKELY(!ofca.valid())){
133  ATH_MSG_ERROR("No valid ofca for connected channel " << id.get_identifier32().get_compact() << " gain " << gain);
134  return StatusCode::FAILURE;
135  }
136  if(ATH_UNLIKELY(!ofcb.valid())){
137  ATH_MSG_ERROR("No valid ofcb for connected channel " << id.get_identifier32().get_compact() << " gain " << gain);
138  return StatusCode::FAILURE;
139  }
140  if(ATH_UNLIKELY(!ramp.valid())){
141  ATH_MSG_ERROR("No valid ramp for connected channel " << id.get_identifier32().get_compact() << " gain " << gain);
142  return StatusCode::FAILURE;
143  }
144  if(ATH_UNLIKELY(ramp.size()!=2)){
145  ATH_MSG_ERROR("wrong ramp size for connected channel " << id.get_identifier32().get_compact() << " gain " << gain);
146  return StatusCode::FAILURE;
147  }
148  if (ATH_UNLIKELY(dac2ua==ILArDAC2uA::ERRORCODE)) {
149  ATH_MSG_ERROR("No valid dac2ua for connected channel " << id.get_identifier32().get_compact());
150  return StatusCode::FAILURE;
151  }
152  if (ATH_UNLIKELY(ua2mev==ILAruA2MeV::ERRORCODE)) {
153  ATH_MSG_ERROR("No valid ua2mev for connected channel " << id.get_identifier32().get_compact());
154  return StatusCode::FAILURE;
155  }
157  ATH_MSG_ERROR("No valid mphys for connected channel " << id.get_identifier32().get_compact() << " gain " << gain);
158  return StatusCode::FAILURE;
159  }
161  ATH_MSG_ERROR("No valid hvcorr for connected channel " << id.get_identifier32().get_compact());
162  return StatusCode::FAILURE;
163  }
164 
166  std::vector<float> ofca_mev(ofca.size());
167  std::vector<float> ofcb_mev(ofca.size());
168  float peda=ped;
169  float pedb=ped;
170  for (unsigned int i = 0; i < ofca.size(); ++i) {
171  ofca_mev[i] = ofca[i] * ramp[1] * dac2ua * ua2mev / ELSB;
172  ofcb_mev[i] = ofcb[i] * ramp[1] * dac2ua * ua2mev / ELSB;
173  if (m_applyMphysOverMcal) {
174  ofca_mev[i] /= mphys;
175  ofcb_mev[i] /= mphys;
176  }
177  if (m_applyHVCorrection) {
178  ofca_mev[i] *= hvcorr;
179  ofcb_mev[i] *= hvcorr;
180  }
181  }
182  if (m_useR0) {
183  float suma=0; for(auto a:ofca)suma+=a;
184  float sumb=0; for(auto b:ofcb)sumb+=b;
185  peda=ped-ramp[0]/ramp[1]*suma;
186  pedb=ped-ramp[0]/ramp[1]*sumb;
187  }
188 
189  bool aoverflow=false;
190  bool boverflow=false;
191  bool pedoverflow=false;
192 
193  std::vector<int> ofca_int(ofca.size(),0);
194  std::vector<int> ofcb_int(ofca.size(),0);
195  int peda_int=0;
196  int pedb_int=0;
197 
198  const int pedHardpoint = 3;
199  const int firLSBdropped = 8;
200  const int satLSBdropped = 6;
201  const int paramBitSize = 18;
202 
203  for (unsigned int i = 0; i < ofca.size(); ++i) {
204  if (!floatToInt(ofca_mev[i], ofca_int[i], firLSBdropped - pedHardpoint,
205  paramBitSize)) {
206  aoverflow = true;
207  }
208  if (!floatToInt(ofcb_mev[i], ofcb_int[i], satLSBdropped - pedHardpoint,
209  paramBitSize)) {
210  boverflow = true;
211  }
212  }
213  if(!floatToInt(peda,peda_int,pedHardpoint,paramBitSize))pedoverflow=true;
214  if(!floatToInt(pedb,pedb_int,pedHardpoint,paramBitSize))pedoverflow=true;
215 
216  unsigned int nsamples = samples.size();
217  unsigned int firsamples=4;
218  int startSample=-1;
219  for(unsigned int is=0; is<nsamples; ++is){
220  if(bcids[is]==event_bcid) startSample=is;
221  }
222  int maxNenergies = 0;
223  if(startSample<0){
224  ATH_MSG_WARNING("could not find correct BCID for recomputing the energies, event BCID="<<event_bcid<< " first sample BCID " << (nsamples?bcids[0]:-1));
225  }
226  else{
227  maxNenergies=nsamples-firsamples-startSample+1;
228  if(m_startSample) maxNenergies -= m_startSample;
229  }
230  if(maxNenergies<0) {
231  maxNenergies=0;
232  } else {
233  startSample += m_startSample;
234  }
235  if((int)nEnergies>maxNenergies){
236  ATH_MSG_WARNING("requested nEnergies > maxNenergies " << m_nEnergies << ">" <<maxNenergies<<". setting nEnegries to maxNenergies");
237  nEnergies=maxNenergies;
238  }
239 
240  std::vector<unsigned short> newBCIDs(nEnergies,0);
241  std::vector<int> newEnergies(nEnergies,0);
242  std::vector<int> tauEnergies(nEnergies,0);
243  std::vector<bool> passSelections(nEnergies,false);
244  std::vector<bool> satur(nEnergies,false);
245  const unsigned int nMaxBitsEnergy=18;
246  const unsigned int nMaxBitsEnergyTau=22;
247 
248  for(unsigned int ss=0; ss<nEnergies; ++ss){
249 
250  int64_t computedE=0;
251  int64_t computedEtau=0;
252  unsigned short bcid = bcids[startSample+ss];
253  newBCIDs[ss]=bcid;
254  for(unsigned int is=0; is<firsamples; ++is){
255  int sample = samples[startSample + ss + is];
256  if (!m_isADCBas)
257  sample *= std::pow(2, pedHardpoint);
258  computedE += static_cast<int64_t>(sample - peda_int) * ofca_int[is];
259  computedEtau += static_cast<int64_t>(sample - pedb_int) * ofcb_int[is];
260  }
261  computedE=computedE>>firLSBdropped;
262  computedEtau=computedEtau>>satLSBdropped;
263 
264  if(std::abs(computedE)>std::pow(2,nMaxBitsEnergy-1)){
265  if (computedE >= 0)
266  computedE = std::pow(2, nMaxBitsEnergy - 1) - 1;
267  else
268  computedE = 0;
269  }
270  if (std::abs(computedEtau) > std::pow(2, nMaxBitsEnergyTau - 1)) {
271  if (computedEtau >= 0)
272  computedEtau = std::pow(2, nMaxBitsEnergyTau - 1) - 1;
273  else
274  computedEtau = -std::pow(2, nMaxBitsEnergyTau - 1) + 1;
275  }
276  newEnergies[ss] = computedE;
277  tauEnergies[ss] = computedEtau;
278  bool passSelection = false;
279  if (computedE < 0 && computedE > -80) {
280  if (computedEtau > 8 * computedE && computedEtau < -8 * computedE)
281  passSelection = true;
282  } else if (computedE < 800) {
283  if (computedEtau > -8 * computedE && computedEtau < 8 * computedE)
284  passSelection = true;
285  } else if (computedE >= 800) {
286  if (computedEtau > -8 * computedE && computedEtau < 16 * computedE)
287  passSelection = true;
288  }
289  passSelections[ss] = passSelection;
290  }
291  LArRawSC* scraw = dataItemsPool.nextElementPtr();
292 
293  scraw->setHardwareId(id);
294  scraw->setChannel(digitSC->Channel());
295  scraw->setSourceId(digitSC->SourceId());
296  scraw->setBCIds(std::move(newBCIDs));
297  scraw->setSaturation(std::move(satur));
298  scraw->setEnergies(std::move(newEnergies));
299  scraw->setTauEnergies(std::move(tauEnergies));
300  scraw->setPassTauSelection(std::move(passSelections));
301  scraw->setOFCaOverflow(aoverflow);
302  scraw->setOFCbOverflow(boverflow);
303  scraw->setPedOverflow(pedoverflow);
304 
305  outputContainer->push_back(scraw);
306 
307  }
308 
309 
310  return StatusCode::SUCCESS;
311 }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::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 & AthReentrantAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

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

Definition at line 79 of file AthReentrantAlgorithm.cxx.

80 {
81  // If we didn't find any symlinks to add, just return the collection
82  // from the base class. Otherwise, return the extended collection.
83  if (!m_extendedExtraObjects.empty()) {
85  }
86  return Algorithm::extraOutputDeps();
87 }

◆ filterPassed()

virtual bool AthReentrantAlgorithm::filterPassed ( const EventContext &  ctx) const
inlinevirtualinherited

Definition at line 135 of file AthReentrantAlgorithm.h.

135  {
136  return execState( ctx ).filterPassed();
137  }

◆ finalize()

StatusCode LArLATOMEBuilderAlg::finalize ( )
override

Definition at line 52 of file LArLATOMEBuilderAlg.cxx.

52  {
53  return StatusCode::SUCCESS;
54 }

◆ floatToInt()

bool LArLATOMEBuilderAlg::floatToInt ( float  val,
int &  newval,
int  hardpoint,
int  size 
)
staticprivate

reproduce LDPB package computation in https://gitlab.cern.ch/atlas-lar-online/onlinelatomedb/-/blob/master/src/CondFloatDB.cpp

Definition at line 314 of file LArLATOMEBuilderAlg.cxx.

314  {
315  if( std::isnan(val) )return false;
316  //int intVal = std::round(val*(0x1<<hardpoint)); //was round(val*pow(2,hardpoint));
317  int intVal=std::round(val*pow2(hardpoint));
318  bool isNeg = (intVal<0);
319  unsigned int posVal = std::abs(intVal);
320  if( (posVal >> (size -1)) != 0 ) return false;
321  newval=posVal;
322  if(isNeg)newval=-posVal;
323  return true;
324 
325 }

◆ initialize()

StatusCode LArLATOMEBuilderAlg::initialize ( )
override

Definition at line 29 of file LArLATOMEBuilderAlg.cxx.

29  {
30 
31  ATH_MSG_INFO("LArLATOMEBuilderAlg init");
32 
44 
46  ATH_CHECK(detStore()->retrieve(ll,"LArOnline_SuperCellID"));
47  m_onlineId = (const LArOnlineID_Base*)ll;
48 
49  return StatusCode::SUCCESS;
50 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Gaudi::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.

◆ isClonable()

bool AthReentrantAlgorithm::isClonable ( ) const
overridevirtualinherited

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< Gaudi::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< Gaudi::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< Gaudi::Algorithm > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

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

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ setFilterPassed()

virtual void AthReentrantAlgorithm::setFilterPassed ( bool  state,
const EventContext &  ctx 
) const
inlinevirtualinherited

Definition at line 139 of file AthReentrantAlgorithm.h.

139  {
140  execState( ctx ).setFilterPassed( state );
141  }

◆ sysExecute()

StatusCode AthReentrantAlgorithm::sysExecute ( const EventContext &  ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Definition at line 67 of file AthReentrantAlgorithm.cxx.

68 {
69  return Gaudi::Algorithm::sysExecute (ctx);
70 }

◆ sysInitialize()

StatusCode AthReentrantAlgorithm::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< Gaudi::Algorithm > >.

Reimplemented in InputMakerBase, and HypoBase.

Definition at line 96 of file AthReentrantAlgorithm.cxx.

96  {
98 
99  if (sc.isFailure()) {
100  return sc;
101  }
102 
103  ServiceHandle<ICondSvc> cs("CondSvc",name());
104  for (auto h : outputHandles()) {
105  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
106  // do this inside the loop so we don't create the CondSvc until needed
107  if ( cs.retrieve().isFailure() ) {
108  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
109  return StatusCode::SUCCESS;
110  }
111  if (cs->regHandle(this,*h).isFailure()) {
112  sc = StatusCode::FAILURE;
113  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
114  << " with CondSvc");
115  }
116  }
117  }
118  return sc;
119 }

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::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< Gaudi::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) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ m_applyHVCorrection

Gaudi::Property<bool> LArLATOMEBuilderAlg::m_applyHVCorrection {this, "applyHVCorrection", true, "apply HV correction"}
private

Definition at line 65 of file LArLATOMEBuilderAlg.h.

◆ m_applyMphysOverMcal

Gaudi::Property<bool> LArLATOMEBuilderAlg::m_applyMphysOverMcal {this, "applyMphysOverMcal", true, "apply MphysOverMcal correction"}
private

Definition at line 66 of file LArLATOMEBuilderAlg.h.

◆ m_cablingKey

SG::ReadCondHandleKey<LArOnOffIdMapping> LArLATOMEBuilderAlg::m_cablingKey {this, "CablingSCKey","LArOnOffIdMapSC","SG Key of LArOnOffIdMapping object"}
private

Definition at line 49 of file LArLATOMEBuilderAlg.h.

◆ m_detStore

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

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_digitKey

SG::ReadHandleKey<LArDigitContainer> LArLATOMEBuilderAlg::m_digitKey {this, "LArDigitKey","SC", "SG Key of the SC LArDigitContainer"}
private

Definition at line 44 of file LArLATOMEBuilderAlg.h.

◆ m_eventInfoKey

SG::ReadHandleKey<xAOD::EventInfo> LArLATOMEBuilderAlg::m_eventInfoKey {this,"EventInfo","EventInfo","SG Key of EventInfo object"}
private

Definition at line 42 of file LArLATOMEBuilderAlg.h.

◆ m_evtStore

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

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthReentrantAlgorithm::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 153 of file AthReentrantAlgorithm.h.

◆ m_isADCBas

Gaudi::Property<bool> LArLATOMEBuilderAlg::m_isADCBas {this, "isADCBas", true, "Digits are ADC BAS"}
private

Definition at line 68 of file LArLATOMEBuilderAlg.h.

◆ m_keyDAC2uASC

SG::ReadCondHandleKey<ILArDAC2uA> LArLATOMEBuilderAlg::m_keyDAC2uASC {this,"LArDAC2uAKeySC","LArDAC2uASC","SG key of LArDAC2uA conditions object"}
private

Definition at line 54 of file LArLATOMEBuilderAlg.h.

◆ m_keyHVScaleCorrSC

SG::ReadCondHandleKey<ILArHVScaleCorr> LArLATOMEBuilderAlg::m_keyHVScaleCorrSC {this,"LArHVScaleCorrKeySC","LArHVScaleCorrSC","SG key of LArHVScaleCorr conditions object"}
private

Definition at line 56 of file LArLATOMEBuilderAlg.h.

◆ m_keyMphysOverMcalSC

SG::ReadCondHandleKey<ILArMphysOverMcal> LArLATOMEBuilderAlg::m_keyMphysOverMcalSC {this,"LArMphysOverMcalKeySC","LArMphysOverMcalSC","SG key of LArMphysOverMcal conditions object"}
private

Definition at line 57 of file LArLATOMEBuilderAlg.h.

◆ m_keyOFCSC

SG::ReadCondHandleKey<ILArOFC> LArLATOMEBuilderAlg::m_keyOFCSC {this,"LArOFCKeySC","LArOFCSC","SG key of LArOFC conditions object"}
private

Definition at line 52 of file LArLATOMEBuilderAlg.h.

◆ m_keyPedestalSC

SG::ReadCondHandleKey<ILArPedestal> LArLATOMEBuilderAlg::m_keyPedestalSC {this,"LArPedestalKeySC","LArPedestalSC","SG key of LArPedestal conditions object"}
private

Definition at line 51 of file LArLATOMEBuilderAlg.h.

◆ m_keyRampSC

SG::ReadCondHandleKey<ILArRamp> LArLATOMEBuilderAlg::m_keyRampSC {this,"LArRampKeySC","LArRampSC","SG key of LArRamp conditions object"}
private

Definition at line 53 of file LArLATOMEBuilderAlg.h.

◆ m_keyuA2MeVSC

SG::ReadCondHandleKey<ILAruA2MeV> LArLATOMEBuilderAlg::m_keyuA2MeVSC {this,"LAruA2MeVKeySC","LAruA2MeVSC","SG key of LAruA2MeV conditions object"}
private

Definition at line 55 of file LArLATOMEBuilderAlg.h.

◆ m_larRawSCKey

SG::WriteHandleKey<LArRawSCContainer> LArLATOMEBuilderAlg::m_larRawSCKey {this,"LArRawSCKey","SC_ET_RECO","SG key of the output LArRawSCContainer"}
private

Definition at line 46 of file LArLATOMEBuilderAlg.h.

◆ m_nEnergies

Gaudi::Property<int> LArLATOMEBuilderAlg::m_nEnergies {this, "nEnergies", 1, "how many energies to compute"}
private

Definition at line 63 of file LArLATOMEBuilderAlg.h.

◆ m_onlineId

const LArOnlineID_Base* LArLATOMEBuilderAlg::m_onlineId = nullptr
private

Definition at line 72 of file LArLATOMEBuilderAlg.h.

◆ m_startSample

Gaudi::Property<int> LArLATOMEBuilderAlg::m_startSample {this,"startEnergy",0,"the first energy to compute with respect to the BCID"}
private

Definition at line 62 of file LArLATOMEBuilderAlg.h.

◆ m_useR0

Gaudi::Property<bool> LArLATOMEBuilderAlg::m_useR0 {this, "useR0", false, "use R0 from Ramp"}
private

Definition at line 67 of file LArLATOMEBuilderAlg.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
LArRawSC
Liquid Argon SuperCell raw data.
Definition: LArRawSC.h:19
LArVectorProxy::valid
bool valid() const
Test to see if the proxy has been initialized.
LArRawSC::setChannel
void setChannel(const unsigned chan)
Set channel number.
Definition: LArRawSC.cxx:32
LAruA2MeVSC::UA2MEV
virtual const float & UA2MEV(const HWIdentifier &chid) const
Definition: LAruA2MeVSC.cxx:31
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
LArLATOMEBuilderAlg::m_larRawSCKey
SG::WriteHandleKey< LArRawSCContainer > m_larRawSCKey
Definition: LArLATOMEBuilderAlg.h:46
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
FullCPAlgorithmsTest_eljob.flush
flush
Definition: FullCPAlgorithmsTest_eljob.py:168
LArRawSC::setEnergies
void setEnergies(const std::vector< int > &&energies)
Set energies .
Definition: LArRawSC.cxx:8
LArDAC2uASC
Definition: LArDAC2uASC.h:18
SG::VIEW_ELEMENTS
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
Definition: OwnershipPolicy.h:18
LArRawSC::setPedOverflow
void setPedOverflow(bool overflow)
@set pedestal Overflow
Definition: LArRawSC.h:164
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
LArLATOMEBuilderAlg::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition: LArLATOMEBuilderAlg.h:42
conifer::pow
constexpr int pow(int x)
Definition: conifer.h:20
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
MuonGM::round
float round(const float toRound, const unsigned int decimals)
Definition: Mdt.cxx:27
AthCommonDataStore::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 > renounce(T &h)
Definition: AthCommonDataStore.h:380
ReadCellNoiseFromCool.cabling
cabling
Definition: ReadCellNoiseFromCool.py:154
LArRawSC::setPassTauSelection
void setPassTauSelection(const std::vector< bool > &&pass)
@set true if passes the tau selection
Definition: LArRawSC.cxx:23
LArRampSC
Definition: LArRampSC.h:18
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
LArLATOMEBuilderAlg::floatToInt
static bool floatToInt(float val, int &newval, int hardpoint, int size)
reproduce LDPB package computation in https://gitlab.cern.ch/atlas-lar-online/onlinelatomedb/-/blob/m...
Definition: LArLATOMEBuilderAlg.cxx:314
LArHVScaleCorrSC
Definition: LArHVScaleCorrSC.h:18
ATH_UNLIKELY
#define ATH_UNLIKELY(x)
Definition: AthUnlikelyMacros.h:17
LArMphysOverMcalSC::MphysOverMcal
virtual const float & MphysOverMcal(const HWIdentifier &chid, int gain) const
Definition: LArMphysOverMcalSC.cxx:27
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
checkRpcDigits.digit
digit
Definition: checkRpcDigits.py:186
LArLATOMEBuilderAlg::m_isADCBas
Gaudi::Property< bool > m_isADCBas
Definition: LArLATOMEBuilderAlg.h:68
HWIdentifier
Definition: HWIdentifier.h:13
LArSCDigit::SourceId
unsigned int SourceId() const
Definition: LArSCDigit.h:45
LArRawSC::setOFCaOverflow
void setOFCaOverflow(bool overflow)
@set OFCa Overflow
Definition: LArRawSC.h:158
LArLATOMEBuilderAlg::m_digitKey
SG::ReadHandleKey< LArDigitContainer > m_digitKey
Definition: LArLATOMEBuilderAlg.h:44
LArRawSC::setOFCbOverflow
void setOFCbOverflow(bool overflow)
@set OFCb Overflow
Definition: LArRawSC.h:161
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:95
LArLATOMEBuilderAlg::m_onlineId
const LArOnlineID_Base * m_onlineId
Definition: LArLATOMEBuilderAlg.h:72
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
LAruA2MeVSC
Definition: LAruA2MeVSC.h:17
LArMphysOverMcalSC
Definition: LArMphysOverMcalSC.h:18
LArLATOMEBuilderAlg::m_keyOFCSC
SG::ReadCondHandleKey< ILArOFC > m_keyOFCSC
Definition: LArLATOMEBuilderAlg.h:52
LArLATOMEBuilderAlg::m_applyMphysOverMcal
Gaudi::Property< bool > m_applyMphysOverMcal
Definition: LArLATOMEBuilderAlg.h:66
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
LArRawSC::setTauEnergies
void setTauEnergies(const std::vector< int > &&tauEnergies)
Set energies*taus .
Definition: LArRawSC.cxx:18
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
conifer::pow2
constexpr int pow2(int x)
Definition: conifer.h:24
FullCPAlgorithmsTest_eljob.sample
sample
Definition: FullCPAlgorithmsTest_eljob.py:100
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
LArDigit
Liquid Argon digit base class.
Definition: LArDigit.h:25
lumiFormat.i
int i
Definition: lumiFormat.py:92
LArLATOMEBuilderAlg::m_keyuA2MeVSC
SG::ReadCondHandleKey< ILAruA2MeV > m_keyuA2MeVSC
Definition: LArLATOMEBuilderAlg.h:55
LArLATOMEBuilderAlg::m_keyPedestalSC
SG::ReadCondHandleKey< ILArPedestal > m_keyPedestalSC
Definition: LArLATOMEBuilderAlg.h:51
LArLATOMEBuilderAlg::m_keyMphysOverMcalSC
SG::ReadCondHandleKey< ILArMphysOverMcal > m_keyMphysOverMcalSC
Definition: LArLATOMEBuilderAlg.h:57
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
01SubmitToGrid.samples
samples
Definition: 01SubmitToGrid.py:58
LArHVScaleCorrSC::HVScaleCorr
virtual const float & HVScaleCorr(const HWIdentifier &chid) const
Definition: LArHVScaleCorrSC.cxx:31
LArLATOMEBuilderAlg::m_keyDAC2uASC
SG::ReadCondHandleKey< ILArDAC2uA > m_keyDAC2uASC
Definition: LArLATOMEBuilderAlg.h:54
LArPedestalSC
Definition: LArPedestalSC.h:21
LArLATOMEBuilderAlg::m_keyHVScaleCorrSC
SG::ReadCondHandleKey< ILArHVScaleCorr > m_keyHVScaleCorrSC
Definition: LArLATOMEBuilderAlg.h:56
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
LArOFCSC
Definition: LArOFCSC.h:18
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
LArSCDigit::Channel
short Channel() const
Definition: LArSCDigit.h:42
LArLATOMEBuilderAlg::m_nEnergies
Gaudi::Property< int > m_nEnergies
Definition: LArLATOMEBuilderAlg.h:63
ILArPedestal::ERRORCODE
@ ERRORCODE
Definition: ILArPedestal.h:47
LArSCDigit
Base class for LArDigits taken by LATOME.
Definition: LArSCDigit.h:19
AthReentrantAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthReentrantAlgorithm.h:153
LArOFCSC::OFC_b
virtual OFCRef_t OFC_b(const HWIdentifier &CellID, int gain, int tbin=0) const
Definition: LArOFCSC.cxx:85
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
LArOnlineID_Base
Helper for the Liquid Argon Calorimeter cell identifiers.
Definition: LArOnlineID_Base.h:105
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
LArLATOMEBuilderAlg::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: LArLATOMEBuilderAlg.h:49
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
AthReentrantAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthReentrantAlgorithm.cxx:96
LArLATOMEBuilderAlg::m_applyHVCorrection
Gaudi::Property< bool > m_applyHVCorrection
Definition: LArLATOMEBuilderAlg.h:65
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
xAOD::bcid
setEventNumber setTimeStamp bcid
Definition: EventInfo_v1.cxx:133
LArLATOMEBuilderAlg::m_startSample
Gaudi::Property< int > m_startSample
Definition: LArLATOMEBuilderAlg.h:62
LArRawSC::setHardwareId
void setHardwareId(const HWIdentifier id)
Set identifier.
Definition: LArRawSC.cxx:28
LArOnline_SuperCellID
Definition: LArOnline_SuperCellID.h:20
LArRampSC::ADC2DAC
virtual RampRef_t ADC2DAC(const HWIdentifier &CellID, int gain) const
Definition: LArRampSC.cxx:26
ILArDAC2uA::ERRORCODE
@ ERRORCODE
Definition: ILArDAC2uA.h:37
Example_ReadSampleNoise.ped
ped
Definition: Example_ReadSampleNoise.py:45
ReadOfcFromCool.nsamples
nsamples
Definition: ReadOfcFromCool.py:115
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
LArLATOMEBuilderAlg::m_keyRampSC
SG::ReadCondHandleKey< ILArRamp > m_keyRampSC
Definition: LArLATOMEBuilderAlg.h:53
a
TList * a
Definition: liststreamerinfos.cxx:10
h
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
LArRawSC::setBCIds
void setBCIds(const std::vector< unsigned short > &&bcids)
Set bcids.
Definition: LArRawSC.cxx:13
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
DataPool
a typed memory pool that saves time spent allocation small object. This is typically used by containe...
Definition: DataPool.h:47
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
ILArHVScaleCorr::ERRORCODE
@ ERRORCODE
Definition: ILArHVScaleCorr.h:27
LArRawSC::setSourceId
void setSourceId(const unsigned sourceId)
Set source id.
Definition: LArRawSC.cxx:36
LArRawSC::setSaturation
void setSaturation(const std::vector< bool > &&satur)
@set saturation flags
Definition: LArRawSC.cxx:40
LArSCDigit::BCId
const std::vector< unsigned short > & BCId() const
Definition: LArSCDigit.h:48
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
LArLATOMEBuilderAlg::m_useR0
Gaudi::Property< bool > m_useR0
Definition: LArLATOMEBuilderAlg.h:67
ILAruA2MeV::ERRORCODE
@ ERRORCODE
Definition: ILAruA2MeV.h:35
LArPedestalSC::pedestal
virtual float pedestal(const HWIdentifier &CellID, int gain) const
Definition: LArPedestalSC.cxx:21
fitman.k
k
Definition: fitman.py:528
LArVectorProxy
Proxy for accessing a range of float values like a vector.
Definition: LArVectorProxy.h:38
ILArMphysOverMcal::ERRORCODE
@ ERRORCODE
Definition: ILArMphysOverMcal.h:29
DiTauMassTools::TauTypes::ll
@ ll
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:49
ServiceHandle< ICondSvc >
LArDAC2uASC::DAC2UA
virtual const float & DAC2UA(const HWIdentifier &chid) const
access to DAC2UA conversion factor index by Identifier, and gain setting
Definition: LArDAC2uASC.cxx:31
LArOFCSC::OFC_a
virtual OFCRef_t OFC_a(const HWIdentifier &CellID, int gain, int tbin=0) const
access to OFCs by online ID, gain, and tbin (!=0 for testbeam)
Definition: LArOFCSC.cxx:80