NCFS-Pack
A generic (astro)particle physics analysis framework
 
Loading...
Searching...
No Matches
NcAttrib Class Reference

Generic handling of detector signal (calibration) attributes. More...

#include "NcAttrib.h"

Inheritance diagram for NcAttrib:
NcAttribObj NcSignal NcCalcluster NcCalmodule NcDevice IceGOM NcCalorimeter NcDetectorUnit NcTagger NcVeto RnoGANT IceAOM IceDOM NcDetector RnoStation RnoString RnoDANT RnoSANT IceIDOM IceTDOM RnoDetector RnoHPOL RnoVPOL RnoLPDA IceDCDOM IceICDOM RnoDLPDA RnoULPDA

Detailed Description

Generic handling of detector signal (calibration) attributes.


Copyright(c) 2003 NCFS/IIHE, All Rights Reserved. *
*
Authors: The Netherlands Center for Fundamental Studies (NCFS). *
The Inter-university Institute for High Energies (IIHE). *
Website : http://www.iihe.ac.be *
Contact : Nick van Eijndhoven (nickve.nl@gmail.com) *
*
Contributors are mentioned in the code where appropriate. *
*
No part of this software may be used, copied, modified or distributed *
by any means nor transmitted or translated into machine language for *
commercial purposes without written permission by the IIHE representative. *
Permission to use the software strictly for non-commercial purposes *
is hereby granted without fee, provided that the above copyright notice *
appears in all copies and that both the copyright notice and this *
permission notice appear in the supporting documentation. *
This software is provided "as is" without express or implied warranty. *
The authors make no claims that this software is free of error, or is *
consistent with any particular standard of merchantability, or that it *
will meet your requirements for any particular application, other than *
indicated in the corresponding documentation. *
This software should not be relied on for solving a problem whose *
incorrect solution could result in injury to a person or loss of property. *
If you do use this software in such a manner, it is at your own risk. *
The authors disclaim all liability for direct or consequential damage *
resulting from your use of this software. *

// Class NcAttrib
// Generic handling of detector signal (calibration) attributes.
// Normally this class is only used as a base class to provide the various
// attributes to the derived class. An example of this is NcSignal.
// However, one can of course also use this class on its own as shown
// in the simple example hereafter.
//
// Example :
// ---------
// NcAttrib a;
// a.SetSlotName("PMT amplitude in Volt");
// a.SetGain(250.7);
// a.SetSlotName("Time of flight in ns",2);
// a.SetOffset(-22.5,2);
// a.SetSlotName("PMT amplitude in ADC",3);
// a.SetGain(1340,3);
// a.SetSlotName("TDC",4);
// a.SetOffset(10.75,"TDC");
// a.SetEdgeOn(3);
// a.SetDead(1);
// a.List();
//
//--- Author: Nick van Eijndhoven 18-sep-2003 Utrecht University
//- Modified: NvE $Date: 2012-07-18 16:51:01 +0200 (Wed, 18 Jul 2012) $ NCFS

Definition at line 15 of file NcAttrib.h.

Public Member Functions

 NcAttrib ()
 
 NcAttrib (const NcAttrib &a)
 
virtual ~NcAttrib ()
 
void AddNamedSlot (TString s)
 
void DecreaseEdgeValue (Int_t j=1)
 
void DecreaseEdgeValue (TString name)
 
void DeleteCalibrations (Int_t mode=0)
 
TF1 * GetCalFunction (Int_t j=1) const
 
TF1 * GetCalFunction (TString name) const
 
Int_t GetCalWord (Int_t j=1) const
 
Int_t GetCalWord (TString name) const
 
Int_t GetDeadValue (Int_t j=1) const
 
Int_t GetDeadValue (TString name) const
 
TF1 * GetDecalFunction (Int_t j=1) const
 
TF1 * GetDecalFunction (TString name) const
 
Int_t GetEdgeValue (Int_t j=1) const
 
Int_t GetEdgeValue (TString name) const
 
Float_t GetGain (Int_t j=1) const
 
Float_t GetGain (TString name) const
 
Int_t GetGainFlag (Int_t j=1) const
 
Int_t GetGainFlag (TString name) const
 
Int_t GetLockValue (Int_t j=1) const
 
Int_t GetLockValue (TString name) const
 
Int_t GetNcalflags () const
 
Int_t GetNcalfuncs () const
 
Int_t GetNdecalfuncs () const
 
Int_t GetNgains () const
 
Int_t GetNnames () const
 
Int_t GetNoffsets () const
 
virtual Int_t GetNslots () const
 
Float_t GetOffset (Int_t j=1) const
 
Float_t GetOffset (TString name) const
 
Int_t GetOffsetFlag (Int_t j=1) const
 
Int_t GetOffsetFlag (TString name) const
 
Int_t GetSlotIndex (TString name, Int_t opt=0) const
 
TString GetSlotName (Int_t j=1) const
 
void IncreaseEdgeValue (Int_t j=1)
 
void IncreaseEdgeValue (TString name)
 
virtual void List (Int_t j=0) const
 
virtual void List (TString name) const
 
virtual void Load (NcAttrib &a, Int_t j=0)
 
virtual void Load (NcAttrib &a, TString name)
 
void Lock (Int_t j=1)
 
void Lock (TString name)
 
void ResetGain (Int_t j=1)
 
void ResetGain (TString name)
 
void ResetOffset (Int_t j=1)
 
void ResetOffset (TString name)
 
void SetAlive (Int_t j=1)
 
void SetAlive (TString name)
 
void SetCalFunction (TF1 *f, Int_t j=1)
 
void SetCalFunction (TF1 *f, TString name)
 
void SetDead (Int_t j=1)
 
void SetDead (TString name)
 
void SetDecalFunction (TF1 *f, Int_t j=1)
 
void SetDecalFunction (TF1 *f, TString name)
 
void SetEdgeOff (Int_t j=1)
 
void SetEdgeOff (TString name)
 
void SetEdgeOn (Int_t j=1)
 
void SetEdgeOn (TString name)
 
void SetEdgeValue (Int_t val, Int_t j=1)
 
void SetEdgeValue (Int_t val, TString name)
 
void SetGain (Double_t gain, Int_t j=1)
 
void SetGain (Double_t gain, TString name)
 
void SetOffset (Double_t off, Int_t j=1)
 
void SetOffset (Double_t off, TString name)
 
void SetSlotName (TString s, Int_t j=1)
 
void Unlock (Int_t j=1)
 
void Unlock (TString name)
 

Protected Member Functions

void SetCalFlags (Int_t gf, Int_t of, Int_t j)
 

Protected Attributes

TArrayI * fCalflags
 
TObjArray * fCalfuncs
 
TObjArray * fDecalfuncs
 
TArrayF * fGains
 
TObjArray * fNames
 
TArrayF * fOffsets
 

Constructor & Destructor Documentation

◆ NcAttrib() [1/2]

NcAttrib::NcAttrib ( )
// Creation of an NcAttrib object and initialisation of parameters.
// Several values of the same type (e.g. gain) can be stored in different slots.
// If needed, the storage for values will be expanded automatically
// when entering values.

Definition at line 69 of file NcAttrib.cxx.

◆ ~NcAttrib()

NcAttrib::~NcAttrib ( )
virtual
// Destructor to delete dynamically allocated memory.

Definition at line 88 of file NcAttrib.cxx.

◆ NcAttrib() [2/2]

NcAttrib::NcAttrib ( const NcAttrib & a)
// Copy constructor.

Definition at line 128 of file NcAttrib.cxx.

Member Function Documentation

◆ AddNamedSlot()

void NcAttrib::AddNamedSlot ( TString s)
// Add a new slot with the specified name.
// In case a slot with the specified name already exists, no action is taken.

Definition at line 1492 of file NcAttrib.cxx.

◆ DecreaseEdgeValue() [1/2]

void NcAttrib::DecreaseEdgeValue ( Int_t j = 1)
// Decrease the edge value by 1 for the j-th (default j=1) attribute slot.
// Note : The first attribute slot is at j=1.
// In case the value of the index j exceeds the maximum number of reserved
// slots for the flags, the number of reserved slots for the flags
// is increased automatically.
// The value stored is : 10000*edge + 1000*lock + 100*dead + 10*gainflag + offsetflag.

Definition at line 1286 of file NcAttrib.cxx.

◆ DecreaseEdgeValue() [2/2]

void NcAttrib::DecreaseEdgeValue ( TString name)
// Decrease the edge value by 1 for the name-specified attribute slot.
//
// This procedure involves a slot-index search based on the specified name
// at each invokation. This may become slow in case many slots have been
// defined and/or when this procedure is invoked many times.
// In such cases it is preferable to use indexed addressing in the user code
// either directly or via a few invokations of GetSlotIndex().

Definition at line 1309 of file NcAttrib.cxx.

◆ DeleteCalibrations()

void NcAttrib::DeleteCalibrations ( Int_t mode = 0)
// User selected delete of all gains and/or offsets.
// mode = 0 : All attributes (names,gains,offsets,(de)calfuncs, edge and dead values) are deleted.
// 1 : Only the gains are deleted.
// 2 : Only the offsets are deleted.
// 3 : Gains, offsets and (de)calfuncs are deleted, but names, edge and dead values are kept.
// 4 : Only the calib. functions are deleted.
// 5 : Only the de-calib. functions are deleted.
// 6 : Only the calib. and de-calib. functions are deleted.
//
// The default when invoking DeleteCalibrations() corresponds to mode=0.

Definition at line 786 of file NcAttrib.cxx.

◆ GetCalFunction() [1/2]

TF1 * NcAttrib::GetCalFunction ( Int_t j = 1) const
// Provide pointer to the calib. function of the j-th (default j=1) slot.
// Note : The first attribute slot is at j=1.

Definition at line 1895 of file NcAttrib.cxx.

◆ GetCalFunction() [2/2]

TF1 * NcAttrib::GetCalFunction ( TString name) const
// Provide pointer to the calib. function of the name-specified slot.
// In case no match is found, zero is returned.

Definition at line 1909 of file NcAttrib.cxx.

◆ GetCalWord() [1/2]

Int_t NcAttrib::GetCalWord ( Int_t j = 1) const
// Provide calib. word of the j-th (default j=1) attribute slot.
// The word value stored is : 10000*edge + 1000*lock + 100*dead + 10*gainflag + offsetflag.
//
// Note : The first attribute slot is at j=1.
// In case j is invalid, 0 is returned.

Definition at line 529 of file NcAttrib.cxx.

◆ GetCalWord() [2/2]

Int_t NcAttrib::GetCalWord ( TString name) const
// Provide calib. word of the name-specified attribute slot.
// The word value stored is : 10000*edge + 1000*lock + 100*dead + 10*gainflag + offsetflag.
//
// This procedure involves a slot-index search based on the specified name
// at each invokation. This may become slow in case many slots have been
// defined and/or when this procedure is invoked many times.
// In such cases it is preferable to use indexed addressing in the user code
// either directly or via a few invokations of GetSlotIndex().

Definition at line 555 of file NcAttrib.cxx.

◆ GetDeadValue() [1/2]

Int_t NcAttrib::GetDeadValue ( Int_t j = 1) const
// Provide dead value of the j-th (default j=1) attribute slot.
// Note : The first attribute slot is at j=1.
// In case j is invalid, 0 is returned.

Definition at line 1375 of file NcAttrib.cxx.

◆ GetDeadValue() [2/2]

Int_t NcAttrib::GetDeadValue ( TString name) const
// Provide dead value of the name-specified attribute slot.
//
// This procedure involves a slot-index search based on the specified name
// at each invokation. This may become slow in case many slots have been
// defined and/or when this procedure is invoked many times.
// In such cases it is preferable to use indexed addressing in the user code
// either directly or via a few invokations of GetSlotIndex().

Definition at line 1404 of file NcAttrib.cxx.

◆ GetDecalFunction() [1/2]

TF1 * NcAttrib::GetDecalFunction ( Int_t j = 1) const
// Provide pointer to the de-calib. function of the j-th (default j=1) slot.
// Note : The first attribute slot is at j=1.

Definition at line 1996 of file NcAttrib.cxx.

◆ GetDecalFunction() [2/2]

TF1 * NcAttrib::GetDecalFunction ( TString name) const
// Provide pointer to the de-calib. function of the name-specified slot.
// In case no match is found, zero is returned.

Definition at line 2010 of file NcAttrib.cxx.

◆ GetEdgeValue() [1/2]

Int_t NcAttrib::GetEdgeValue ( Int_t j = 1) const
// Provide edge value of the j-th (default j=1) attribute slot.
// Note : The first attribute slot is at j=1.
// In case j is invalid, 0 is returned.

Definition at line 1327 of file NcAttrib.cxx.

◆ GetEdgeValue() [2/2]

Int_t NcAttrib::GetEdgeValue ( TString name) const
// Provide edge value of the name-specified attribute slot.
//
// This procedure involves a slot-index search based on the specified name
// at each invokation. This may become slow in case many slots have been
// defined and/or when this procedure is invoked many times.
// In such cases it is preferable to use indexed addressing in the user code
// either directly or via a few invokations of GetSlotIndex().

Definition at line 1355 of file NcAttrib.cxx.

◆ GetGain() [1/2]

Float_t NcAttrib::GetGain ( Int_t j = 1) const
// Provide gain value of the j-th (default j=1) attribute slot.
// The first attribute slot is at j=1.
// In case no gain value was set or the argument j is invalid, 0 is returned.
// Note : Use GetGainFlag(j) to check whether this gain was set or not.

Definition at line 576 of file NcAttrib.cxx.

◆ GetGain() [2/2]

Float_t NcAttrib::GetGain ( TString name) const
// Provide gain value of the name-specified attribute slot.
//
// This procedure involves a slot-index search based on the specified name
// at each invokation. This may become slow in case many slots have been
// defined and/or when this procedure is invoked many times.
// In such cases it is preferable to use indexed addressing in the user code
// either directly or via a few invokations of GetSlotIndex().

Definition at line 604 of file NcAttrib.cxx.

◆ GetGainFlag() [1/2]

Int_t NcAttrib::GetGainFlag ( Int_t j = 1) const
// Provide gain flag of the j-th (default j=1) attribute slot.
//
// flag = 1 : Gain was set
// 0 : Gain was not set
//
// Note : The first attribute slot is at j=1.
// In case j is invalid, 0 is returned.

Definition at line 417 of file NcAttrib.cxx.

◆ GetGainFlag() [2/2]

Int_t NcAttrib::GetGainFlag ( TString name) const
// Provide gain flag of the name-specified attribute slot.
//
// flag = 1 : Gain was set
// 0 : Gain was not set
//
//
// This procedure involves a slot-index search based on the specified name
// at each invokation. This may become slow in case many slots have been
// defined and/or when this procedure is invoked many times.
// In such cases it is preferable to use indexed addressing in the user code
// either directly or via a few invokations of GetSlotIndex().

Definition at line 449 of file NcAttrib.cxx.

◆ GetLockValue() [1/2]

Int_t NcAttrib::GetLockValue ( Int_t j = 1) const
// Provide lock value of the j-th (default j=1) attribute slot.
// Note : The first attribute slot is at j=1.
// In case j is invalid, 0 is returned.

Definition at line 1424 of file NcAttrib.cxx.

◆ GetLockValue() [2/2]

Int_t NcAttrib::GetLockValue ( TString name) const
// Provide lock value of the name-specified attribute slot.
//
// This procedure involves a slot-index search based on the specified name
// at each invokation. This may become slow in case many slots have been
// defined and/or when this procedure is invoked many times.
// In such cases it is preferable to use indexed addressing in the user code
// either directly or via a few invokations of GetSlotIndex().

Definition at line 1453 of file NcAttrib.cxx.

◆ GetNcalflags()

Int_t NcAttrib::GetNcalflags ( ) const
// Provide the number of specified calib. flags for this attribute.

Definition at line 229 of file NcAttrib.cxx.

◆ GetNcalfuncs()

Int_t NcAttrib::GetNcalfuncs ( ) const
// Provide the number of specified calib. functions for this attribute.

Definition at line 1859 of file NcAttrib.cxx.

◆ GetNdecalfuncs()

Int_t NcAttrib::GetNdecalfuncs ( ) const
// Provide the number of specified de-calib. functions for this attribute.

Definition at line 1877 of file NcAttrib.cxx.

◆ GetNgains()

Int_t NcAttrib::GetNgains ( ) const
// Provide the number of specified gains for this attribute.

Definition at line 191 of file NcAttrib.cxx.

◆ GetNnames()

Int_t NcAttrib::GetNnames ( ) const
// Provide the maximum number of specified names for this attribute.

Definition at line 248 of file NcAttrib.cxx.

◆ GetNoffsets()

Int_t NcAttrib::GetNoffsets ( ) const
// Provide the number of specified offsets for this attribute.

Definition at line 210 of file NcAttrib.cxx.

◆ GetNslots()

Int_t NcAttrib::GetNslots ( ) const
virtual
// Provide the number of existing slots.

Reimplemented in NcSignal.

Definition at line 1473 of file NcAttrib.cxx.

◆ GetOffset() [1/2]

Float_t NcAttrib::GetOffset ( Int_t j = 1) const
// Provide offset value of the j-th (default j=1) attribute slot.
// The first attribute slot at j=1.
// In case no offset value was set or the argument j is invalid, 0 is returned.
// Note : Use GetOffsetFlag(j) to check whether this offset was set or not.

Definition at line 624 of file NcAttrib.cxx.

◆ GetOffset() [2/2]

Float_t NcAttrib::GetOffset ( TString name) const
// Provide offset value of the name-specified attribute slot.
//
// This procedure involves a slot-index search based on the specified name
// at each invokation. This may become slow in case many slots have been
// defined and/or when this procedure is invoked many times.
// In such cases it is preferable to use indexed addressing in the user code
// either directly or via a few invokations of GetSlotIndex().

Definition at line 652 of file NcAttrib.cxx.

◆ GetOffsetFlag() [1/2]

Int_t NcAttrib::GetOffsetFlag ( Int_t j = 1) const
// Provide offset flag of the j-th (default j=1) attribute slot.
//
// flag = 1 : Offset was set
// 0 : Offset was not set
//
// Note : The first attribute slot is at j=1.
// In case j is invalid, 0 is returned.

Definition at line 473 of file NcAttrib.cxx.

◆ GetOffsetFlag() [2/2]

Int_t NcAttrib::GetOffsetFlag ( TString name) const
// Provide ofset flag of the name-specified attribute slot.
//
// flag = 1 : Offset was set
// 0 : Offset was not set
//
//
// This procedure involves a slot-index search based on the specified name
// at each invokation. This may become slow in case many slots have been
// defined and/or when this procedure is invoked many times.
// In such cases it is preferable to use indexed addressing in the user code
// either directly or via a few invokations of GetSlotIndex().

Definition at line 505 of file NcAttrib.cxx.

◆ GetSlotIndex()

Int_t NcAttrib::GetSlotIndex ( TString name,
Int_t opt = 0 ) const
// Provide the slot index for the matching name.
//
// opt = 0 --> The specified name has to match exactly the slotname
// 1 --> The specified name string has to be contained in the slotname
//
// The default is opt=0.
//
// If no matching name is found, 0 is returned.
// Note : The first attribute slot is at j=1.

Definition at line 1572 of file NcAttrib.cxx.

◆ GetSlotName()

TString NcAttrib::GetSlotName ( Int_t j = 1) const
// Provide the user defined name for the j-th (default j=1) slot.
// Note : The first attribute slot is at j=1.

Definition at line 1545 of file NcAttrib.cxx.

◆ IncreaseEdgeValue() [1/2]

void NcAttrib::IncreaseEdgeValue ( Int_t j = 1)
// Increase the edge value by 1 for the j-th (default j=1) attribute slot.
// Note : The first attribute slot is at j=1.
// In case the value of the index j exceeds the maximum number of reserved
// slots for the flags, the number of reserved slots for the flags
// is increased automatically.
// The value stored is : 10000*edge + 1000*lock + 100*dead + 10*gainflag + offsetflag.

Definition at line 1245 of file NcAttrib.cxx.

◆ IncreaseEdgeValue() [2/2]

void NcAttrib::IncreaseEdgeValue ( TString name)
// Increase the edge value by 1 for the name-specified attribute slot.
//
// This procedure involves a slot-index search based on the specified name
// at each invokation. This may become slow in case many slots have been
// defined and/or when this procedure is invoked many times.
// In such cases it is preferable to use indexed addressing in the user code
// either directly or via a few invokations of GetSlotIndex().

Definition at line 1268 of file NcAttrib.cxx.

◆ List() [1/2]

void NcAttrib::List ( Int_t j = 0) const
virtual
// Provide attribute information for the j-th slot.
// The first slot is at j=1.
// In case j=0 (default) the data of all slots will be listed.

Reimplemented in NcSignal.

Definition at line 1608 of file NcAttrib.cxx.

◆ List() [2/2]

void NcAttrib::List ( TString name) const
virtual
// Provide attribute information for the name-specified slot.
//
// This procedure involves a slot-index search based on the specified name
// at each invokation. This may become slow in case many slots have been
// defined and/or when this procedure is invoked many times.
// In such cases it is preferable to use indexed addressing in the user code
// either directly or via a few invokations of GetSlotIndex().

Reimplemented in NcSignal.

Definition at line 1666 of file NcAttrib.cxx.

◆ Load() [1/2]

void NcAttrib::Load ( NcAttrib & a,
Int_t j = 0 )
virtual
// Load attributes of the j-th slot of the input NcAttrib into this NcAttrib object.
//
// Note : if j=0, then all attributes of all slots are loaded
//
// The default is j=0.

Definition at line 1684 of file NcAttrib.cxx.

◆ Load() [2/2]

void NcAttrib::Load ( NcAttrib & a,
TString name )
virtual
// Load attributes of the name-specified slot of the input NcAttrib into
// this NcAttrib object.
//
// This procedure involves a slot-index search based on the specified name
// at each invokation. This may become slow in case many slots have been
// defined and/or when this procedure is invoked many times.
// In such cases it is preferable to use indexed addressing in the user code
// either directly or via a few invokations of GetSlotIndex().

Definition at line 1840 of file NcAttrib.cxx.

◆ Lock() [1/2]

void NcAttrib::Lock ( Int_t j = 1)
// Set the lock flag to 1 for the j-th (default j=1) attribute slot.
// Note : The first attribute slot is at j=1.
// In case the value of the index j exceeds the maximum number of reserved
// slots for the flags, the number of reserved slots for the flags
// is increased automatically.
// The value stored is : 10000*edge + 1000*lock + 100*dead + 10*gainflag + offsetflag.

Definition at line 995 of file NcAttrib.cxx.

◆ Lock() [2/2]

void NcAttrib::Lock ( TString name)
// Set the lock flag to 1 for the name-specified attribute slot.
//
// This procedure involves a slot-index search based on the specified name
// at each invokation. This may become slow in case many slots have been
// defined and/or when this procedure is invoked many times.
// In such cases it is preferable to use indexed addressing in the user code
// either directly or via a few invokations of GetSlotIndex().

Definition at line 1037 of file NcAttrib.cxx.

◆ ResetGain() [1/2]

void NcAttrib::ResetGain ( Int_t j = 1)
// Reset the gain value of the j-th (default j=1) attribute slot.
// Notes : The first attribute slot is at j=1.
// j=0 ==> All gain values will be reset.

Definition at line 672 of file NcAttrib.cxx.

◆ ResetGain() [2/2]

void NcAttrib::ResetGain ( TString name)
// Reset the gain value of the name-specified attribute slot.
//
// This procedure involves a slot-index search based on the specified name
// at each invokation. This may become slow in case many slots have been
// defined and/or when this procedure is invoked many times.
// In such cases it is preferable to use indexed addressing in the user code
// either directly or via a few invokations of GetSlotIndex().

Definition at line 711 of file NcAttrib.cxx.

◆ ResetOffset() [1/2]

void NcAttrib::ResetOffset ( Int_t j = 1)
// Reset the offset value of the j-th (default j=1) attribute slot.
// Notes : The first attribute slot is at j=1.
// j=0 ==> All offset values will be reset.

Definition at line 729 of file NcAttrib.cxx.

◆ ResetOffset() [2/2]

void NcAttrib::ResetOffset ( TString name)
// Reset the offset value of the name-specified attribute slot.
//
// This procedure involves a slot-index search based on the specified name
// at each invokation. This may become slow in case many slots have been
// defined and/or when this procedure is invoked many times.
// In such cases it is preferable to use indexed addressing in the user code
// either directly or via a few invokations of GetSlotIndex().

Definition at line 768 of file NcAttrib.cxx.

◆ SetAlive() [1/2]

void NcAttrib::SetAlive ( Int_t j = 1)
// Set the dead flag to 0 for the j-th (default j=1) attribute slot.
// Note : The first attribute slot is at j=1.
// In case the value of the index j exceeds the maximum number of reserved
// slots for the flags, no action is taken since by default the dead flag is 0.
// The value stored is : 10000*edge + 1000*lock + 100*dead + 10*gainflag + offsetflag.

Definition at line 946 of file NcAttrib.cxx.

◆ SetAlive() [2/2]

void NcAttrib::SetAlive ( TString name)
// Set the dead flag to 0 for the name-specified attribute slot.
//
// This procedure involves a slot-index search based on the specified name
// at each invokation. This may become slow in case many slots have been
// defined and/or when this procedure is invoked many times.
// In such cases it is preferable to use indexed addressing in the user code
// either directly or via a few invokations of GetSlotIndex().

Definition at line 977 of file NcAttrib.cxx.

◆ SetCalFlags()

void NcAttrib::SetCalFlags ( Int_t gf,
Int_t of,
Int_t j )
protected
// Store calibration flags of the j-th (default j=1) attribute slot.
// Note : The first attribute slot is at j=1.
// In case the value of the index j exceeds the maximum number of reserved
// slots for the calib. flags, the number of reserved slots for the calib.
// flags is increased automatically.
// The value stored is : 10000*edge +1000*lock + 100*dead + 10*gainflag + offsetflag.

Definition at line 377 of file NcAttrib.cxx.

◆ SetCalFunction() [1/2]

void NcAttrib::SetCalFunction ( TF1 * f,
Int_t j = 1 )
// Set the calib. function of the j-th (default j=1) slot.
// Note : The first attribute slot is at j=1.
//
// In case the value of the index j exceeds the maximum number of reserved
// positions for the functions, the number of reserved positions for the functions
// is increased automatically.
//
// In case the function pointer argument has the same value as the current function
// pointer value, no action is taken since the user has already modified the actual
// function.
//
// In case the function pointer argument is zero, the current function
// is deleted and the pointer set to zero.
//
// In all other cases the current function is deleted and a new
// copy of the input function is created which becomes the current function.

Definition at line 1924 of file NcAttrib.cxx.

◆ SetCalFunction() [2/2]

void NcAttrib::SetCalFunction ( TF1 * f,
TString name )
// Set the calib. function of the name-specified slot.
//
// In case the function pointer argument has the same value as the current function
// pointer value, no action is taken since the user has already modified the actual
// function.
//
// In case the function pointer argument is zero, the current function
// is deleted and the pointer set to zero.
//
// In all other cases the current function is deleted and a new
// copy of the input function is created which becomes the current function.

Definition at line 1974 of file NcAttrib.cxx.

◆ SetDead() [1/2]

void NcAttrib::SetDead ( Int_t j = 1)
// Set the dead flag to 1 for the j-th (default j=1) attribute slot.
// Note : The first attribute slot is at j=1.
// In case the value of the index j exceeds the maximum number of reserved
// slots for the flags, the number of reserved slots for the flags
// is increased automatically.
// The value stored is : 10000*edge + 1000*lock + 100*dead + 10*gainflag + offsetflag.

Definition at line 886 of file NcAttrib.cxx.

◆ SetDead() [2/2]

void NcAttrib::SetDead ( TString name)
// Set the dead flag to 1 for the name-specified attribute slot.
//
// This procedure involves a slot-index search based on the specified name
// at each invokation. This may become slow in case many slots have been
// defined and/or when this procedure is invoked many times.
// In such cases it is preferable to use indexed addressing in the user code
// either directly or via a few invokations of GetSlotIndex().

Definition at line 928 of file NcAttrib.cxx.

◆ SetDecalFunction() [1/2]

void NcAttrib::SetDecalFunction ( TF1 * f,
Int_t j = 1 )
// Set the de-calib. function of the j-th (default j=1) slot.
// Note : The first attribute slot is at j=1.
//
// In case the value of the index j exceeds the maximum number of reserved
// positions for the functions, the number of reserved positions for the functions
// is increased automatically.
//
// In case the function pointer argument has the same value as the current function
// pointer value, no action is taken since the user has already modified the actual
// function.
//
// In case the function pointer argument is zero, the current function
// is deleted and the pointer set to zero.
//
// In all other cases the current function is deleted and a new
// copy of the input function is created which becomes the current function.

Definition at line 2025 of file NcAttrib.cxx.

◆ SetDecalFunction() [2/2]

void NcAttrib::SetDecalFunction ( TF1 * f,
TString name )
// Set the de-calib. function of the name-specified slot.
//
// In case the function pointer argument has the same value as the current function
// pointer value, no action is taken since the user has already modified the actual
// function.
//
// In case the function pointer argument is zero, the current function
// is deleted and the pointer set to zero.
//
// In all other cases the current function is deleted and a new
// copy of the input function is created which becomes the current function.

Definition at line 2075 of file NcAttrib.cxx.

◆ SetEdgeOff() [1/2]

void NcAttrib::SetEdgeOff ( Int_t j = 1)
// Set the edge value to 0 for the j-th (default j=1) attribute slot.
// Note : The first attribute slot is at j=1.
// In case the value of the index j exceeds the maximum number of reserved
// slots for the flags, no action is taken since by default the edge flag is 0.
// The value stored is : 10000*edge + 1000*lock + 100*dead + 10*gainflag + offsetflag.

Definition at line 1144 of file NcAttrib.cxx.

◆ SetEdgeOff() [2/2]

void NcAttrib::SetEdgeOff ( TString name)
// Set the edge value to 0 for the name-specified attribute slot.
//
// This procedure involves a slot-index search based on the specified name
// at each invokation. This may become slow in case many slots have been
// defined and/or when this procedure is invoked many times.
// In such cases it is preferable to use indexed addressing in the user code
// either directly or via a few invokations of GetSlotIndex().

Definition at line 1167 of file NcAttrib.cxx.

◆ SetEdgeOn() [1/2]

void NcAttrib::SetEdgeOn ( Int_t j = 1)
// Set the edge value to 1 for the j-th (default j=1) attribute slot.
// Note : The first attribute slot is at j=1.
// In case the value of the index j exceeds the maximum number of reserved
// slots for the flags, the number of reserved slots for the flags
// is increased automatically.
// The value stored is : 10000*edge + 1000*lock + 100*dead + 10*gainflag + offsetflag.

Definition at line 1104 of file NcAttrib.cxx.

◆ SetEdgeOn() [2/2]

void NcAttrib::SetEdgeOn ( TString name)
// Set the edge value to 1 for the name-specified attribute slot.
//
// This procedure involves a slot-index search based on the specified name
// at each invokation. This may become slow in case many slots have been
// defined and/or when this procedure is invoked many times.
// In such cases it is preferable to use indexed addressing in the user code
// either directly or via a few invokations of GetSlotIndex().

Definition at line 1126 of file NcAttrib.cxx.

◆ SetEdgeValue() [1/2]

void NcAttrib::SetEdgeValue ( Int_t val,
Int_t j = 1 )
// Set the edge value to "val" for the j-th (default j=1) attribute slot.
// Note : The first attribute slot is at j=1.
// In case the value of the index j exceeds the maximum number of reserved
// slots for the flags, the number of reserved slots for the flags
// is increased automatically.
// The value stored is : 10000*edge + 1000*lock + 100*dead + 10*gainflag + offsetflag.

Definition at line 1185 of file NcAttrib.cxx.

◆ SetEdgeValue() [2/2]

void NcAttrib::SetEdgeValue ( Int_t val,
TString name )
// Set the edge value to "val" for the name-specified attribute slot.
//
// This procedure involves a slot-index search based on the specified name
// at each invokation. This may become slow in case many slots have been
// defined and/or when this procedure is invoked many times.
// In such cases it is preferable to use indexed addressing in the user code
// either directly or via a few invokations of GetSlotIndex().

Definition at line 1227 of file NcAttrib.cxx.

◆ SetGain() [1/2]

void NcAttrib::SetGain ( Double_t gain,
Int_t j = 1 )
// Store gain value of the j-th (default j=1) attribute slot.
// Note : The first attribute slot is at j=1.
// In case the value of the index j exceeds the maximum number of reserved
// slots for gain values, the number of reserved slots for the gain
// values is increased automatically.

Definition at line 267 of file NcAttrib.cxx.

◆ SetGain() [2/2]

void NcAttrib::SetGain ( Double_t gain,
TString name )
// Store gain value of the name-specified attribute slot.
//
// This procedure involves a slot-index search based on the specified name
// at each invokation. This may become slow in case many slots have been
// defined and/or when this procedure is invoked many times.
// In such cases it is preferable to use indexed addressing in the user code
// either directly or via a few invokations of GetSlotIndex().

Definition at line 304 of file NcAttrib.cxx.

◆ SetOffset() [1/2]

void NcAttrib::SetOffset ( Double_t off,
Int_t j = 1 )
// Store offset value of the j-th (default j=1) attribute slot.
// Note : The first attribute slot is at j=1.
// In case the value of the index j exceeds the maximum number of reserved
// slots for offset values, the number of reserved slots for the offset
// values is increased automatically.

Definition at line 322 of file NcAttrib.cxx.

◆ SetOffset() [2/2]

void NcAttrib::SetOffset ( Double_t off,
TString name )
// Store offset value of the name-specified attribute slot.
//
// This procedure involves a slot-index search based on the specified name
// at each invokation. This may become slow in case many slots have been
// defined and/or when this procedure is invoked many times.
// In such cases it is preferable to use indexed addressing in the user code
// either directly or via a few invokations of GetSlotIndex().

Definition at line 359 of file NcAttrib.cxx.

◆ SetSlotName()

void NcAttrib::SetSlotName ( TString s,
Int_t j = 1 )
// Set a user defined name for the j-th (default j=1) slot.
// Note : The first attribute slot is at j=1.
// In case the value of the index j exceeds the maximum number of reserved
// slots for the names, the number of reserved slots for the names
// is increased automatically to the corresponding value.

Definition at line 1507 of file NcAttrib.cxx.

◆ Unlock() [1/2]

void NcAttrib::Unlock ( Int_t j = 1)
// Set the lock flag to 0 for the j-th (default j=1) attribute slot.
// Note : The first attribute slot is at j=1.
// In case the value of the index j exceeds the maximum number of reserved
// slots for the flags, no action is taken since by default the dead flag is 0.
// The value stored is : 10000*edge + 1000*lock + 100*dead + 10*gainflag + offsetflag.

Definition at line 1055 of file NcAttrib.cxx.

◆ Unlock() [2/2]

void NcAttrib::Unlock ( TString name)
// Set the lock flag to 0 for the name-specified attribute slot.
//
// This procedure involves a slot-index search based on the specified name
// at each invokation. This may become slow in case many slots have been
// defined and/or when this procedure is invoked many times.
// In such cases it is preferable to use indexed addressing in the user code
// either directly or via a few invokations of GetSlotIndex().

Definition at line 1086 of file NcAttrib.cxx.

Member Data Documentation

◆ fCalflags

TArrayI* NcAttrib::fCalflags
protected

Definition at line 92 of file NcAttrib.h.

◆ fCalfuncs

TObjArray* NcAttrib::fCalfuncs
protected

Definition at line 94 of file NcAttrib.h.

◆ fDecalfuncs

TObjArray* NcAttrib::fDecalfuncs
protected

Definition at line 95 of file NcAttrib.h.

◆ fGains

TArrayF* NcAttrib::fGains
protected

Definition at line 90 of file NcAttrib.h.

◆ fNames

TObjArray* NcAttrib::fNames
protected

Definition at line 93 of file NcAttrib.h.

◆ fOffsets

TArrayF* NcAttrib::fOffsets
protected

Definition at line 91 of file NcAttrib.h.


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