|
ATLAS Offline Software
|
#include <TileTriggerDefaultCalibTool.h>
|
| TileTriggerDefaultCalibTool (const std::string &type, const std::string &name, const IInterface *pParent) |
|
virtual | ~TileTriggerDefaultCalibTool () |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | initNtuple (int runNumber, int runType, TFile *rootfile) override |
|
virtual StatusCode | execute () override |
|
virtual StatusCode | finalizeCalculations () override |
|
virtual StatusCode | writeNtuple (int runNumber, int runType, TFile *rootfile) override |
|
virtual StatusCode | finalize () override |
|
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 | sysInitialize () override |
| Perform system initialization for an algorithm. 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 |
|
◆ StoreGateSvc_t
◆ Tile
◆ TileTriggerDefaultCalibTool()
TileTriggerDefaultCalibTool::TileTriggerDefaultCalibTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
pParent |
|
) |
| |
◆ ~TileTriggerDefaultCalibTool()
TileTriggerDefaultCalibTool::~TileTriggerDefaultCalibTool |
( |
| ) |
|
|
virtual |
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation 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.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation 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.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation 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.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation 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.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode TileTriggerDefaultCalibTool::execute |
( |
| ) |
|
|
overridevirtual |
Implements ITileCalibTool.
Definition at line 135 of file TileTriggerDefaultCalibTool.cxx.
139 const EventContext& ctx = Gaudi::Hive::currentContext();
149 memset(chanIds, 0,
sizeof(chanIds));
155 int chan_bar[54] = {4 ,1 ,2 ,3 ,0 ,-1 ,
165 int chan_ext[36] = {4, 5 ,2 ,3 ,16,-1 ,
172 ATH_MSG_DEBUG (
"cispar[16] " << cispar[16] <<
", cispas[17] " << cispar[17] <<
", cispar[18] " << cispar[18] );
173 if (cispar[16] == 0x07){
183 else if (cispar[16] == 0x107){
187 return StatusCode::SUCCESS;
192 return StatusCode::SUCCESS;
214 for(; itColl != itCollEnd; ++itColl) {
217 it = (*itColl)->begin();
218 itEnd = (*itColl)->end();
220 for(;
it != itEnd; ++
it) {
242 if (ieta < 0 || ieta > 8)
continue;
244 if (ieta < 9 || ieta > 14)
continue;
249 if (
chan != chan_bar[(ieta*6) +
m_ipmt])
continue;
251 else if ((
ros==3) || (
ros==4)){
252 if ((
chan != chan_ext[((ieta-9)*6) +
m_ipmt]) || (
chan == 0))
continue;
257 float amp = (*it)->amplitude();
272 if (pos_neg_z < 0) pos_neg_z = 0;
273 chanIds[pos_neg_z][ieta][iphi][
m_ipmt] = hwid;
288 if (!triggerTower->sampling())
continue;
290 double eta = triggerTower->eta();
291 double phi = triggerTower->phi();
312 const std::vector<uint16_t>&
adc = triggerTower->adc();
315 tt_ene = (
max -
ped) * 0.25;
316 if (tt_ene < 0.) tt_ene = 0.;
319 if ((ieta < 0) || (ieta > 14))
continue;
321 if (pos_neg_z < 0) pos_neg_z = 0;
324 if(
ros >= 5 ||
ros <=0){
continue;}
329 double tt_ene_pC = tt_ene / pC2GeV;
332 if (triggerTower->e() == 0)
335 <<
", chan: " <<
chan
338 <<
", amplitude : " << tt_ene
339 <<
", old " << triggerTower->e()
340 <<
", ratio old/new " << triggerTower->e() / tt_ene );
342 if ((
ros==1) || (
ros==2)){
343 if (
chan != chan_bar[(ieta*6)-1 +
m_ipmt+1])
continue;
345 else if ((
ros==3) || (
ros==4)) {
346 if ((
chan != chan_ext[((ieta-9)*6)-1 +
m_ipmt+1]) || (
chan == 0))
continue;
372 return StatusCode::SUCCESS;
◆ extraDeps_update_handler()
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
◆ finalize()
StatusCode TileTriggerDefaultCalibTool::finalize |
( |
| ) |
|
|
overridevirtual |
◆ finalizeCalculations()
StatusCode TileTriggerDefaultCalibTool::finalizeCalculations |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode TileTriggerDefaultCalibTool::initialize |
( |
| ) |
|
|
overridevirtual |
◆ initNtuple()
StatusCode TileTriggerDefaultCalibTool::initNtuple |
( |
int |
runNumber, |
|
|
int |
runType, |
|
|
TFile * |
rootfile |
|
) |
| |
|
overridevirtual |
◆ inputHandles()
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.
◆ interfaceID()
static const InterfaceID& ITileCalibTool::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
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()
◆ renounceArray()
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ writeNtuple()
StatusCode TileTriggerDefaultCalibTool::writeNtuple |
( |
int |
runNumber, |
|
|
int |
runType, |
|
|
TFile * |
rootfile |
|
) |
| |
|
overridevirtual |
◆ m_charge
float TileTriggerDefaultCalibTool::m_charge |
|
private |
◆ m_DACvalue
float TileTriggerDefaultCalibTool::m_DACvalue |
|
private |
◆ m_detStore
◆ m_dqStatusKey
◆ m_evtStore
◆ m_ietaL1Calo
◆ m_ietaTile
◆ m_iphiL1Calo
◆ m_iphiTile
◆ m_ipmt
unsigned int TileTriggerDefaultCalibTool::m_ipmt |
|
private |
◆ m_ipmtCount
unsigned int TileTriggerDefaultCalibTool::m_ipmtCount |
|
private |
◆ m_ipmtL1Calo
◆ m_ipmtOld
unsigned int TileTriggerDefaultCalibTool::m_ipmtOld |
|
private |
◆ m_ipmtTile
◆ m_l1CaloTTIdTools
Initial value:{this,
"L1CaloTTIdTools", "LVL1::L1CaloTTIdTools/L1CaloTTIdTools", "L1Calo TTId tools"}
Definition at line 68 of file TileTriggerDefaultCalibTool.h.
◆ m_maxNTT
int TileTriggerDefaultCalibTool::m_maxNTT |
|
private |
◆ m_meanL1Calo
◆ m_meanL1CaloDAC
◆ m_meanTile
◆ m_meanTileDAC
◆ m_meanTileL1Calo
◆ m_nevpmt
unsigned int TileTriggerDefaultCalibTool::m_nevpmt |
|
private |
◆ m_nEvtGlobal
int TileTriggerDefaultCalibTool::m_nEvtGlobal |
|
private |
◆ m_nEvtL1Calo
◆ m_nEvtTile
◆ m_ntupleID
std::string TileTriggerDefaultCalibTool::m_ntupleID |
|
private |
◆ m_rawChannelContainerKey
Initial value:{this,
"TileRawChannelContainer", "TileRawChannelFit", "Tile raw channel container"}
Definition at line 63 of file TileTriggerDefaultCalibTool.h.
◆ m_rmsL1Calo
◆ m_rmsL1CaloDAC
◆ m_rmsTile
◆ m_rmsTileDAC
◆ m_rmsTileL1Calo
◆ m_tileCablingService
◆ m_tileHWID
◆ m_tileID
◆ m_tileToolEmscale
Initial value:{this,
"TileCondToolEmscale", "TileCondToolEmscale", "Tile em scale tool"}
main Tile Calibration tool
Definition at line 59 of file TileTriggerDefaultCalibTool.h.
◆ m_triggerTowerContainerKey
◆ m_TT_ID
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
Const iterator class for DataVector/DataList.
Scalar phi() const
phi method
static const TileCablingService * getInstance()
get pointer to service instance
Scalar eta() const
pseudorapidity method
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool is_valid() const
Check if id is in a valid state.
int channel(const HWIdentifier &id) const
extract channel field from HW identifier
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
static const unsigned int MAX_DRAWER
Number of drawers in ROS 1-4.
virtual void setOwner(IDataHandleHolder *o)=0
int ros(const HWIdentifier &id) const
extract ros field from HW identifier
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
int phi(const Identifier id) const
return phi according to :
Class that holds Data Quality fragment information and provides functions to extract the data quality...
int adc(const HWIdentifier &id) const
extract adc field from HW identifier
Description of TriggerTower_v2.
#define CHECK(...)
Evaluate an expression and check for errors.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
static const unsigned int MAX_ROS
Number of ROSs
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
int eta(const Identifier id) const
return eta according to :
const uint32_t * cispar() const
CIS parameters.
int pos_neg_z(const Identifier id) const
return pos_neg_z according to :
int drawer(const HWIdentifier &id) const
extract drawer field from HW identifier
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
static unsigned int getDrawerIdx(unsigned int ros, unsigned int drawer)
Returns a drawer hash.
static const unsigned int MAX_CHAN
Number of channels in drawer.
Identifier tower_id(int pos_neg_z, int sampling, int region, int eta, int phi) const
build a tower identifier
bool is_tile(const Identifier id) const
Test wether given tower or layer is part of the Tile Calorimeter.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>