 |
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, V, H > &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 |
| |
|
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) |
| | specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
| |
◆ 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();
150 memset(chanIds, 0,
sizeof(chanIds));
156 int chan_bar[54] = {4 ,1 ,2 ,3 ,0 ,-1 ,
166 int chan_ext[36] = {4, 5 ,2 ,3 ,16,-1 ,
173 ATH_MSG_DEBUG (
"cispar[16] " << cispar[16] <<
", cispas[17] " << cispar[17] <<
", cispar[18] " << cispar[18] );
174 if (cispar[16] == 0x07){
184 else if (cispar[16] == 0x107){
188 return StatusCode::SUCCESS;
193 return StatusCode::SUCCESS;
215 for(; itColl != itCollEnd; ++itColl) {
218 it = (*itColl)->begin();
219 itEnd = (*itColl)->end();
221 for(;
it != itEnd; ++
it) {
243 if (ieta < 0 || ieta > 8)
continue;
245 if (ieta < 9 || ieta > 14)
continue;
250 if (
chan != chan_bar[(ieta*6) +
m_ipmt])
continue;
252 else if ((
ros==3) || (
ros==4)){
253 if ((
chan != chan_ext[((ieta-9)*6) +
m_ipmt]) || (
chan == 0))
continue;
258 float amp = (*it)->amplitude();
273 if (pos_neg_z < 0) pos_neg_z = 0;
274 chanIds[pos_neg_z][ieta][iphi][
m_ipmt] = hwid;
289 if (!triggerTower->sampling())
continue;
291 double eta = triggerTower->eta();
292 double phi = triggerTower->phi();
313 const std::vector<uint16_t>&
adc = triggerTower->adc();
316 tt_ene = (
max -
ped) * 0.25;
317 if (tt_ene < 0.) tt_ene = 0.;
320 if ((ieta < 0) || (ieta > 14))
continue;
322 if (pos_neg_z < 0) pos_neg_z = 0;
325 if(
ros >= 5 ||
ros <=0){
continue;}
330 double tt_ene_pC = tt_ene / pC2GeV;
333 if (triggerTower->e() == 0)
336 <<
", chan: " <<
chan
339 <<
", amplitude : " << tt_ene
340 <<
", old " << triggerTower->e()
341 <<
", ratio old/new " << (tt_ene == 0 ? 0 : triggerTower->e() / tt_ene ));
343 if ((
ros==1) || (
ros==2)){
344 if (
chan != chan_bar[(ieta*6)-1 +
m_ipmt+1])
continue;
346 else if ((
ros==3) || (
ros==4)) {
347 if ((
chan != chan_ext[((ieta-9)*6)-1 +
m_ipmt+1]) || (
chan == 0))
continue;
373 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 |
Implements ITileCalibTool.
Definition at line 430 of file TileTriggerDefaultCalibTool.cxx.
434 TTree *
t =
new TTree(
m_ntupleID.c_str(),
"TileCalib-Ntuple");
437 t->Branch(
"meanTile",
m_meanTile,ind.Format(
"meanTile%s/F",(
const char *)ind));
438 t->Branch(
"rmsTile",
m_rmsTile,ind.Format(
"rmsTile%s/F",(
const char *)ind));
439 t->Branch(
"meanTileDAC",
m_meanTileDAC,ind.Format(
"meanTileDAC%s/F",(
const char *)ind));
440 t->Branch(
"rmsTileDAC",
m_rmsTileDAC,ind.Format(
"rmsTileDAC%s/F",(
const char *)ind));
441 t->Branch(
"ietaTile",
m_ietaTile,ind.Format(
"ietaTile%s/I",(
const char *)ind));
442 t->Branch(
"iphiTile",
m_iphiTile,ind.Format(
"iphiTile%s/I",(
const char *)ind));
443 t->Branch(
"ipmtTile",
m_ipmtTile,ind.Format(
"ipmtTile%s/I",(
const char *)ind));
444 t->Branch(
"nEvtTile",
m_nEvtTile,ind.Format(
"nEvtTile%s/I",(
const char *)ind));
445 t->Branch(
"meanL1Calo",
m_meanL1Calo,ind.Format(
"meanL1Calo%s/F",(
const char *)ind));
446 t->Branch(
"rmsL1Calo",
m_rmsL1Calo,ind.Format(
"rmsL1Calo%s/F",(
const char *)ind));
447 t->Branch(
"meanL1CaloDAC",
m_meanL1CaloDAC,ind.Format(
"meanL1CaloDAC%s/F",(
const char *)ind));
448 t->Branch(
"rmsL1CaloDAC",
m_rmsL1CaloDAC,ind.Format(
"rmsL1CaloDAC%s/F",(
const char *)ind));
449 t->Branch(
"ietaL1Calo",
m_ietaL1Calo,ind.Format(
"ietaL1Calo%s/I",(
const char *)ind));
450 t->Branch(
"iphiL1Calo",
m_iphiL1Calo,ind.Format(
"iphiL1Calo%s/I",(
const char *)ind));
451 t->Branch(
"ipmtL1Calo",
m_ipmtL1Calo,ind.Format(
"ipmtL1Calo%s/I",(
const char *)ind));
452 t->Branch(
"nEvtL1Calo",
m_nEvtL1Calo,ind.Format(
"nEvtL1Calo%s/I",(
const char *)ind));
453 t->Branch(
"meanTileL1Calo",
m_meanTileL1Calo,ind.Format(
"meanTileL1Calo%s/F",(
const char *)ind));
454 t->Branch(
"rmsTileL1Calo",
m_rmsTileL1Calo,ind.Format(
"rmsTileL1Calo%s/F",(
const char *)ind));
462 return StatusCode::SUCCESS;
◆ 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
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 :
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
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
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
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.