|
ATLAS Offline Software
|
#include <TileLaserLinearityCalibTool.h>
|
| TileLaserLinearityCalibTool (const std::string &type, const std::string &name, const IInterface *pParent) |
|
virtual | ~TileLaserLinearityCalibTool () |
|
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
◆ TileLaserLinearityCalibTool()
TileLaserLinearityCalibTool::TileLaserLinearityCalibTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
pParent |
|
) |
| |
◆ ~TileLaserLinearityCalibTool()
TileLaserLinearityCalibTool::~TileLaserLinearityCalibTool |
( |
| ) |
|
|
virtual |
◆ chanIsConnected()
int TileLaserLinearityCalibTool::chanIsConnected |
( |
int |
ros, |
|
|
int |
chan |
|
) |
| |
|
inlineprivate |
◆ 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 TileLaserLinearityCalibTool::execute |
( |
| ) |
|
|
overridevirtual |
Implements ITileCalibTool.
Definition at line 229 of file TileLaserLinearityCalibTool.cxx.
233 const EventContext& ctx = Gaudi::Hive::currentContext();
243 ATH_MSG_INFO (
"Filter wheel turn completed: stop here" );
244 return StatusCode::SUCCESS;
247 ATH_MSG_DEBUG (
"Retrieving the LASER object and RawChannel" );
259 m_las_time =
static_cast<double>(cispar[10])+
static_cast<double>(cispar[11])/1000000;
266 if (laserObj->getDiodeCurrOrd() == 0 || laserObj->getFiltNumber() == 0)
269 return StatusCode::SUCCESS;
301 return StatusCode::SUCCESS;
311 for(
int i=0;
i<10; ++
i)
313 LG_diode[
i] =
static_cast<double>(laserObj->getDiodeADC(
i,0)-laserObj->getDiodePedestal(
i,0));
314 HG_diode[
i] =
static_cast<double>(laserObj->getDiodeADC(
i,1)-laserObj->getDiodePedestal(
i,1));
317 for(
int i=0;
i<10; ++
i){
322 for(
int i=0;
i<2; ++
i){
352 m_hrate = laserObj->getHumidity();
353 m_flow = laserObj->getGasFlux();
370 ATH_MSG_INFO (
"Filter wheel turn completed: stop here" );
371 return StatusCode::SUCCESS;
386 for(; itColl != itCollEnd; ++itColl)
391 for(;
it != (*itColl)->end(); ++
it)
402 float amp = (*it)->amplitude();
411 if ( amp <= 0.)
continue;
427 if (fabs(ampInPicoCoulombs-current_mean)>5*current_RMS)
429 ATH_MSG_VERBOSE (
"Rejecting an outlier. If there are a lot this means filter wheel will soon move again!" );
435 if (HG_diode[0] != 0)
441 if (LG_diode[0] != 0)
458 if (HG_diode[0] != 0)
464 if (LG_diode[0] != 0)
474 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 TileLaserLinearityCalibTool::finalize |
( |
| ) |
|
|
overridevirtual |
◆ finalizeCalculations()
StatusCode TileLaserLinearityCalibTool::finalizeCalculations |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode TileLaserLinearityCalibTool::initialize |
( |
| ) |
|
|
overridevirtual |
◆ initNtuple()
StatusCode TileLaserLinearityCalibTool::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 TileLaserLinearityCalibTool::writeNtuple |
( |
int |
runNumber, |
|
|
int |
runType, |
|
|
TFile * |
rootfile |
|
) |
| |
|
overridevirtual |
Implements ITileCalibTool.
Definition at line 593 of file TileLaserLinearityCalibTool.cxx.
601 TTree *
t =
new TTree(
m_toolNtuple.c_str(),
"TileLaserCalib-Ntuple");
605 t->Branch(
"Humidity",&
m_hrate,
"humid/D");
606 t->Branch(
"AirFlow",&
m_flow,
"flow/D");
609 t->Branch(
"LG_PMT_Signal",
m_LG_PMT,
"LG_PMT1[8][2]/D");
610 t->Branch(
"LG_PMT_Sigma_Signal",
m_LG_PMT_S,
"LG_PMT1_s[8][2]/D");
611 t->Branch(
"HG_PMT_Signal",
m_HG_PMT,
"HG_PMT1[8][2]/D");
612 t->Branch(
"HG_PMT_Sigma_Signal",
m_HG_PMT_S,
"HG_PMT1_s[8][2]/D");
614 t->Branch(
"LG_Diode_Signal",
m_LG_diode,
"LG_diode[8][10]/D");
615 t->Branch(
"LG_Diode_Sigma_Signal",
m_LG_diode_S,
"LG_diode_s[8][10]/D");
616 t->Branch(
"HG_Diode_Signal",
m_HG_diode,
"HG_diode[8][10]/D");
617 t->Branch(
"HG_Diode_Sigma_Signal",
m_HG_diode_S,
"HG_diode_s[8][10]/D");
619 t->Branch(
"Signal",*
m_mean,
"signal[8][4][64][48][2]/D");
620 t->Branch(
"Sigma_Signal",*
m_mean_S,
"signal_s[8][4][64][48][2]/D");
621 t->Branch(
"LG_Ratio",*
m_LG_ratio,
"LG_signal_cor[8][4][64][48][2]/D");
622 t->Branch(
"LG_Sigma_Ratio",*
m_LG_ratio_S,
"LG_signal_cor_s[8][4][64][48][2]/D");
623 t->Branch(
"LG_Ratio2",*
m_LG_ratio2,
"LG_signal_cor2[8][4][64][48][2]/D");
624 t->Branch(
"LG_Sigma_Ratio2",*
m_LG_ratio2_S,
"LG_signal_cor2_s[8][4][64][48][2]/D");
625 t->Branch(
"HG_Ratio",*
m_HG_ratio,
"HG_signal_cor[8][4][64][48][2]/D");
626 t->Branch(
"HG_Sigma_Ratio",*
m_HG_ratio_S,
"HG_signal_cor_s[8][4][64][48][2]/D");
627 t->Branch(
"HG_Ratio2",*
m_HG_ratio2,
"HG_signal_cor2[8][4][64][48][2]/D");
628 t->Branch(
"HG_Sigma_Ratio2",*
m_HG_ratio2_S,
"HG_signal_cor2_s[8][4][64][48][2]/D");
629 t->Branch(
"Entries",*
m_entries,
"n_LASER_entries[8][4][64][48][2]/I");
636 return StatusCode::SUCCESS;
◆ m_ADC_problem
int TileLaserLinearityCalibTool::m_ADC_problem |
|
private |
◆ m_cabling
◆ m_complete_turn
bool TileLaserLinearityCalibTool::m_complete_turn |
|
private |
◆ m_detStore
◆ m_dqStatusKey
◆ m_entries
◆ m_evtStore
◆ m_first_filter
int TileLaserLinearityCalibTool::m_first_filter |
|
private |
◆ m_flow
double TileLaserLinearityCalibTool::m_flow |
|
private |
◆ m_head_temp
double TileLaserLinearityCalibTool::m_head_temp |
|
private |
◆ m_HG_diode
double(* TileLaserLinearityCalibTool::m_HG_diode)[NDIODES] |
|
private |
◆ m_HG_diode_S
double(* TileLaserLinearityCalibTool::m_HG_diode_S)[NDIODES] |
|
private |
◆ m_HG_diode_signal
◆ m_HG_PMT
double(* TileLaserLinearityCalibTool::m_HG_PMT)[NPMTS] |
|
private |
◆ m_HG_PMT_S
double(* TileLaserLinearityCalibTool::m_HG_PMT_S)[NPMTS] |
|
private |
◆ m_HG_PMT_signal
◆ m_HG_ratio
◆ m_HG_ratio2
◆ m_HG_ratio2_S
◆ m_HG_ratio2_stat
◆ m_HG_ratio_S
◆ m_HG_ratio_stat
◆ m_hrate
double TileLaserLinearityCalibTool::m_hrate |
|
private |
◆ m_las_filter
int TileLaserLinearityCalibTool::m_las_filter |
|
private |
◆ m_las_requ_amp
double TileLaserLinearityCalibTool::m_las_requ_amp |
|
private |
◆ m_las_time
double TileLaserLinearityCalibTool::m_las_time |
|
private |
◆ m_laserContainerKey
◆ m_laserContainerName
std::string TileLaserLinearityCalibTool::m_laserContainerName |
|
private |
◆ m_last_evt_filter
int TileLaserLinearityCalibTool::m_last_evt_filter |
|
private |
◆ m_LG_diode
double(* TileLaserLinearityCalibTool::m_LG_diode)[NDIODES] |
|
private |
◆ m_LG_diode_S
double(* TileLaserLinearityCalibTool::m_LG_diode_S)[NDIODES] |
|
private |
◆ m_LG_diode_signal
◆ m_LG_PMT
double(* TileLaserLinearityCalibTool::m_LG_PMT)[NPMTS] |
|
private |
◆ m_LG_PMT_S
double(* TileLaserLinearityCalibTool::m_LG_PMT_S)[NPMTS] |
|
private |
◆ m_LG_PMT_signal
◆ m_LG_ratio
◆ m_LG_ratio2
◆ m_LG_ratio2_S
◆ m_LG_ratio2_stat
◆ m_LG_ratio_S
◆ m_LG_ratio_stat
◆ m_mean
◆ m_mean_S
◆ m_n_same_filt_evts
int TileLaserLinearityCalibTool::m_n_same_filt_evts |
|
private |
◆ m_PMT1_ADC_prev
int TileLaserLinearityCalibTool::m_PMT1_ADC_prev[2] |
|
private |
◆ m_PMT2_ADC_prev
int TileLaserLinearityCalibTool::m_PMT2_ADC_prev[2] |
|
private |
◆ m_rawChannelContainerKey
Initial value:{this,
"TileRawChannelContainer", "TileRawChannelOpt2", "Input Tile raw channel container"}
Definition at line 65 of file TileLaserLinearityCalibTool.h.
◆ m_rawChannelContainerName
std::string TileLaserLinearityCalibTool::m_rawChannelContainerName |
|
private |
◆ m_signal
◆ m_tileHWID
◆ m_tileToolEmscale
◆ m_toolNtuple
std::string TileLaserLinearityCalibTool::m_toolNtuple |
|
private |
◆ m_toolRunNo
int TileLaserLinearityCalibTool::m_toolRunNo |
|
private |
◆ 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.
static const TileCablingService * getInstance()
get pointer to service instance
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
#define ATH_MSG_VERBOSE(x)
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.
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())
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
#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.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
int NumDataValues() const
const uint32_t * cispar() const
CIS parameters.
double StandardDeviation() const
int drawer(const HWIdentifier &id) const
extract drawer field from HW identifier
#define ATH_MSG_WARNING(x)
static int channel2hole(int ros, int channel)
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.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>