AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONTrackerData Class Reference

Implementation of AliMUONVTrackerData. More...

#include <AliMUONTrackerData.h>

Inheritance diagram for AliMUONTrackerData:

Public Types

enum  EDiffType {
  kDifference = 1, kAbsoluteDifference = 2, kRelativeDifference = 3, kAbsoluteRelativeDifference = 4,
  kAll = 5
}
 

Public Member Functions

 AliMUONTrackerData (const char *name="", const char *title="", Int_t dimension=0, Bool_t issingleevent=kFALSE)
 
 AliMUONTrackerData (const char *name, const char *title, const AliMUONVStore &manuValues)
 
 AliMUONTrackerData (const char *name, const char *title, const AliMUONVStore &deOrBpValues, Int_t val)
 
 AliMUONTrackerData (const char *name, const char *title, const AliMUONRejectList &rejectList)
 
virtual ~AliMUONTrackerData ()
 
Bool_t Add (const AliMUONTrackerData &data)
 
virtual Bool_t Add (const AliMUONVStore &channelValues, TArrayI *nofEventsPerDDL=0x0)
 Add values for one event from one full store. More...
 
virtual Bool_t Replace (const AliMUONVStore &channelValues)
 Replace values. More...
 
virtual Double_t BusPatch (Int_t busPatchId, Int_t dim=0) const
 Get the value for a given buspatch and given dimension. More...
 
virtual Double_t Chamber (Int_t chamberId, Int_t dim=0) const
 Get the value for a given chamber and given dimension. More...
 
virtual Double_t Channel (Int_t detElemId, Int_t manuId, Int_t manuChannel, Int_t dim=0) const
 Get the value for a given channel and given dimension. More...
 
virtual void Clear (Option_t *opt="")
 Reset the data. More...
 
virtual Double_t Count (Int_t detElemId, Int_t manuId, Int_t manuChannel) const
 Get the number of times a given channel was hit. More...
 
virtual Double_t DetectionElement (Int_t detElemId, Int_t dim=0) const
 Get the value for a given DE and given dimension. More...
 
virtual TString DimensionName (Int_t dim) const
 Get the name of a given (internal) dimension. More...
 
virtual TString ExternalDimensionName (Int_t dim) const
 Get the name of a given (external) dimension. More...
 
virtual Bool_t HasChamber (Int_t chamberId) const
 Whether we have data for a given chamber. More...
 
virtual Bool_t HasBusPatch (Int_t busPatchId) const
 Whether we have data for a given buspath. More...
 
virtual Bool_t HasDetectionElement (Int_t detElemId) const
 Whether we have data for a given detection element. More...
 
virtual Bool_t HasManu (Int_t detElemId, Int_t manuId) const
 Whether we have data for a given manu. More...
 
virtual Bool_t HasPCB (Int_t detElemId, Int_t pcbIndex) const
 Whether we have data for a given PCB. More...
 
virtual Bool_t IsSingleEvent () const
 Whether we can be run. More...
 
virtual Double_t Manu (Int_t detElemId, Int_t manuId, Int_t dim=0) const
 Get the value for a given manu and given dimension. More...
 
virtual Int_t NumberOfDimensions () const
 Returns the number of dimensions (i.e. the number of values) each element has. More...
 
virtual Int_t ExternalDimension () const
 The number of values we are inputting. More...
 
virtual Int_t InternalToExternal (Int_t dim) const
 Convert from internal to external dimension. More...
 
virtual Int_t NumberOfEvents (Int_t ddlNumber) const
 Returns the number of events we have seen so far. More...
 
virtual Double_t PCB (Int_t detElemId, Int_t pcbIndex, Int_t dim=0) const
 Get the value for a given PCDB and given dimension. More...
 
virtual void Print (Option_t *wildcard, Option_t *opt) const
 Print, with option, all objects whose name matches wildcard. More...
 
virtual void SetDimensionName (Int_t index, const char *value)
 Set the name of a given dimension. More...
 
Bool_t CanHistogram () const
 Whether or not we can make histograms. More...
 
void MakeHistogramForDimension (Int_t index, Bool_t value, Double_t xmin=0.0, Double_t xmax=4096.0)
 Select a dimension to be histogrammed (if CanHistogram==kTRUE) only. More...
 
virtual void HistogramRange (Double_t &xmin, Double_t &xmax) const
 Get histogram range. More...
 
AliMUONSparseHistoGetManuSparseHisto (Int_t detElemId, Int_t manuId, Int_t dim=0)
 
AliMUONSparseHistoGetManuSparseHisto (Int_t detElemId, Int_t manuId, Int_t dim=0) const
 Get sparse histogram for a given manu (valid only if IsChannelLevelEnabled()==kFALSE and IsManuLevelEnabled()==kTRUE) More...
 
AliMUONSparseHistoGetChannelSparseHisto (Int_t detElemId, Int_t manuId, Int_t manuChannel, Int_t dim=0)
 
virtual AliMUONSparseHistoGetChannelSparseHisto (Int_t detElemId, Int_t manuId, Int_t manuChannel, Int_t dim=0) const
 Get sparse histogram for a given channel. More...
 
virtual void DisableChannelLevel ()
 Disable storing values at the channel level. More...
 
virtual Bool_t IsChannelLevelEnabled () const
 Whether we store values at the channel level or not. More...
 
virtual void DisableManuLevel ()
 Disable storing values at the manu level. More...
 
virtual Bool_t IsManuLevelEnabled () const
 Whether we store values at the manu level or not. More...
 
virtual Bool_t IsBusPatchLevelEnabled () const
 Whether we store values at the bus patch level or not. More...
 
virtual Bool_t IsPCBLevelEnabled () const
 Whether we store values at the PCB level or not. More...
 
virtual Long64_t Merge (TCollection *list)
 To allow merging of different objects. More...
 
Bool_t ExportAsASCIIOccupancyFile (const char *filename, Int_t runNumber) const
 
- Public Member Functions inherited from AliMUONVTrackerData
 AliMUONVTrackerData (const char *name="", const char *title="", Bool_t issingleevent=kFALSE)
 
virtual ~AliMUONVTrackerData ()
 
virtual Bool_t HasChannel (Int_t detElemId, Int_t manuId, Int_t manuChannel) const
 Whether we have a given channel or not. More...
 
virtual void NumberOfEventsChanged ()
 Signal to indicate that the number of events changed. More...
 
const char * Name () const
 Get our name. More...
 
virtual void Print (Option_t *wildcard="") const
 Print all objects whose name matches wildcard. More...
 

Static Public Member Functions

static AliMUONVTrackerDataCompareData (const AliMUONVTrackerData &d1, const AliMUONVTrackerData &d2, const char *outname, Double_t(*diff)(Double_t, Double_t))
 
static AliMUONVTrackerDataCompareData (const AliMUONVTrackerData &d1, const AliMUONVTrackerData &d2, const char *outnamebase, AliMUONTrackerData::EDiffType diffType)
 

Private Member Functions

void BuildFromDEStore (const AliMUONVStore &deStore)
 
void BuildFromBPStore (const AliMUONVStore &bpStore)
 
void FillHisto (Int_t detElemId, Int_t manuId, Int_t manuChannel, Int_t dim, Double_t value)
 
AliMUONVCalibParamBusPatchParam (Int_t busPatch, Bool_t create=kFALSE) const
 
AliMUONVCalibParamCreateBusPatchParam (Int_t busPatch) const
 
AliMUONVCalibParamChamberParam (Int_t chamberId, Bool_t create=kFALSE) const
 
AliMUONVCalibParamCreateChamberParam (Int_t chamberId) const
 
AliMUONVCalibParamChannelParam (Int_t detElemId, Int_t manuId, const AliMUONVCalibParam *external=0x0) const
 
AliMUONVCalibParamDetectionElementParam (Int_t detElemId, Bool_t create=kFALSE) const
 
AliMUONVCalibParamCreateDetectionElementParam (Int_t detElemId) const
 
AliMUONVCalibParamManuParam (Int_t detElemId, Int_t manuId, Bool_t create=kFALSE) const
 
AliMUONVCalibParamCreateManuParam (Int_t detElemInd, Int_t manuId) const
 
AliMUONVCalibParamPCBParam (Int_t detElemId, Int_t pcbIndex, Bool_t create=kFALSE) const
 
AliMUONVCalibParamCreatePCBParam (Int_t detElemId, Int_t pcbIndex) const
 
virtual Int_t IndexOfNumberDimension () const
 Index of the dimension containing the number of time an item was hit. More...
 
virtual Int_t IndexOfOccupancyDimension () const
 Index of the dimension containing the occupancy number. More...
 
virtual Bool_t IsHistogrammed (Int_t dim) const
 Whether we have histograms for a given dimension, or not. More...
 
Int_t DdlIdFromBusPatchId (Int_t buspatchid) const
 
Int_t DdlIdFromDetElemId (Int_t detelemid) const
 
Int_t DdlIdFromChamberId (Int_t chamberid) const
 
 AliMUONTrackerData (const AliMUONTrackerData &rhs)
 Not implemented. More...
 
AliMUONTrackerDataoperator= (const AliMUONTrackerData &rhs)
 Not implemented. More...
 
AliMUONVCalibParamCreateDouble (const AliMUONVCalibParam &param, Int_t detElemId, Int_t manuId) const
 
Int_t GetParts (AliMUONVCalibParam *external, AliMUONVCalibParam *&chamber, AliMUONVCalibParam *&de, AliMUONVCalibParam *&busPatch, AliMUONVCalibParam *&pcb, AliMUONVCalibParam *&manu, AliMUONVCalibParam *&channel, AliMpDetElement *&mpde)
 
Int_t External2Internal (Int_t index) const
 Convert from external to internal index. More...
 
void SetInternalDimensionName (Int_t index, const char *value)
 
void SetExternalDimensionName (Int_t index, const char *value)
 
Double_t Value (const AliMUONVCalibParam &param, Int_t i, Int_t dim, Int_t ddlId) const
 
Int_t Dimension () const
 The number of values we actually store for each item. More...
 
Bool_t InternalAdd (const AliMUONVStore &store, TArrayI *nevents)
 
void GetDEManu (const AliMUONVCalibParam &param, Int_t &detElemId, Int_t &manuId) const
 
void AddCalibParams (const AliMUONVCalibParam &src, AliMUONVCalibParam &dest) const
 
void Add2D (const AliMUONVStore &src, AliMUONVStore &dest) const
 
void Add1D (const AliMUONVStore &src, AliMUONVStore &dest) const
 
void AssertStores ()
 
Bool_t UpdateNumberOfEvents (TArrayI *nevents)
 

Static Private Member Functions

static void DispatchValue (AliMUONVCalibParam &param, Int_t index, Double_t y, Double_t ey, Int_t nchannels)
 

Private Attributes

Bool_t fIsSingleEvent
 whether we can deal with more than one event More...
 
AliMUONVStorefChannelValues
 the channel store More...
 
AliMUONVStorefManuValues
 the manu store More...
 
AliMUONVStorefBusPatchValues
 the bus patch store More...
 
AliMUONVStorefDEValues
 the detection element store More...
 
AliMUONVStorefChamberValues
 the chamber store More...
 
AliMUONVStorefPCBValues
 the pcb store More...
 
Int_t fDimension
 the dimension of the data More...
 
Int_t fNevents
 the number of events treated More...
 
TObjArrayfDimensionNames
 the names of the (internal) dimensions More...
 
TObjArrayfExternalDimensionNames
 the names of the external (i.e. original) dimensions More...
 
Int_t fExternalDimension
 
Int_t * fHistogramming
 whether we should histogram the dimension(s) More...
 
AliMUONVStorefHistos
 the lowest histograms we have More...
 
Double_t fXmin
 min x value for histograms More...
 
Double_t fXmax
 max x value for histograms More...
 
Bool_t fIsChannelLevelEnabled
 whether we allow storing of channel (fChannelValues) values More...
 
Bool_t fIsManuLevelEnabled
 whether we allow storing of manu (fManuValues) values More...
 
Bool_t fIsBustPatchLevelEnabled
 whether we allow storing of bus patches (fBusPatchValues) values More...
 
Bool_t fIsPCBLevelEnabled
 whether we allow storing of PCB values (fPCBValues) More...
 
Int_t fNofDDLs
 
Int_t * fNofEventsPerDDL
 the number of events treated (per DDL) More...
 

Static Private Attributes

static const Int_t fgkExtraDimension = 2
 to hold extra information More...
 
static const Int_t fgkVirtualExtraDimension = 1
 to give access to information not stored, but computed on the fly More...
 

Detailed Description

Implementation of AliMUONVTrackerData.

Implementation of AliMUONVTrackerData class

Author
Laurent Aphecetche, Subatech

Definition at line 25 of file AliMUONTrackerData.h.

Member Enumeration Documentation

Enumerator
kDifference 

D1-D2.

kAbsoluteDifference 

|D1-D2|

kRelativeDifference 

(D1-D2)/D1

kAbsoluteRelativeDifference 

| (D1-D2) | / | D1 |

kAll 

All four differences at once.

Definition at line 58 of file AliMUONTrackerData.h.

Constructor & Destructor Documentation

AliMUONTrackerData::AliMUONTrackerData ( const char *  name = "",
const char *  title = "",
Int_t  dimension = 0,
Bool_t  issingleevent = kFALSE 
)

ctor

Definition at line 99 of file AliMUONTrackerData.cxx.

Referenced by CompareData().

AliMUONTrackerData::AliMUONTrackerData ( const char *  name,
const char *  title,
const AliMUONVStore manuValues 
)

ctor with pre-computed values at the manu level In this case, we force fIsChannelLevelEnabled = kFALSE ctor

Definition at line 137 of file AliMUONTrackerData.cxx.

AliMUONTrackerData::AliMUONTrackerData ( const char *  name,
const char *  title,
const AliMUONVStore deOrBpValues,
Int_t  val 
)

ctor with values at the detection element OR bus patch level In this case, we force fIsChannelLevelEnabled = fIsManuLevelEnabled = kFALSE ctor

Definition at line 286 of file AliMUONTrackerData.cxx.

AliMUONTrackerData::AliMUONTrackerData ( const char *  name,
const char *  title,
const AliMUONRejectList rejectList 
)

ctor with values from the given rejectlist

Definition at line 534 of file AliMUONTrackerData.cxx.

AliMUONTrackerData::~AliMUONTrackerData ( )
virtual

dtor

Definition at line 655 of file AliMUONTrackerData.cxx.

AliMUONTrackerData::AliMUONTrackerData ( const AliMUONTrackerData rhs)
private

Not implemented.

Member Function Documentation

Bool_t AliMUONTrackerData::Add ( const AliMUONTrackerData data)
Bool_t AliMUONTrackerData::Add ( const AliMUONVStore store,
TArrayI *  arrayOfNofEventsPerDDL = 0x0 
)
virtual

Add values for one event from one full store.

Add the given external store to our internal store

Implements AliMUONVTrackerData.

Definition at line 673 of file AliMUONTrackerData.cxx.

void AliMUONTrackerData::Add1D ( const AliMUONVStore src,
AliMUONVStore dest 
) const
private

Add one 1d store to another

Definition at line 848 of file AliMUONTrackerData.cxx.

Referenced by Add().

void AliMUONTrackerData::Add2D ( const AliMUONVStore src,
AliMUONVStore dest 
) const
private

Add one 2d store to another

Definition at line 824 of file AliMUONTrackerData.cxx.

Referenced by Add().

void AliMUONTrackerData::AddCalibParams ( const AliMUONVCalibParam src,
AliMUONVCalibParam dest 
) const
private

Add src to dest

Definition at line 872 of file AliMUONTrackerData.cxx.

Referenced by Add1D(), and Add2D().

void AliMUONTrackerData::AssertStores ( )
private

Insure our stores are allocated

Definition at line 940 of file AliMUONTrackerData.cxx.

Referenced by AliMUONTrackerData(), BuildFromBPStore(), BuildFromDEStore(), and InternalAdd().

void AliMUONTrackerData::BuildFromBPStore ( const AliMUONVStore bpStore)
private

Fill internals from a store of values at the bus patch level

Definition at line 436 of file AliMUONTrackerData.cxx.

Referenced by AliMUONTrackerData().

void AliMUONTrackerData::BuildFromDEStore ( const AliMUONVStore deStore)
private

Fill internals from a store of values at the detection element level

Definition at line 344 of file AliMUONTrackerData.cxx.

Referenced by AliMUONTrackerData().

Double_t AliMUONTrackerData::BusPatch ( Int_t  busPatchId,
Int_t  dim = 0 
) const
virtual

Get the value for a given buspatch and given dimension.

Return the value of a given buspatch for a given dimension or 0 if not existing

Implements AliMUONVTrackerData.

Definition at line 1133 of file AliMUONTrackerData.cxx.

Referenced by AliMUONCDB::ShowFaultyBusPatches().

AliMUONVCalibParam * AliMUONTrackerData::BusPatchParam ( Int_t  busPatch,
Bool_t  create = kFALSE 
) const
private

Return (if it exist), the VCalibParam for a given busPatch

Definition at line 1143 of file AliMUONTrackerData.cxx.

Referenced by AliMUONTrackerData(), BuildFromBPStore(), BusPatch(), GetParts(), and HasBusPatch().

Bool_t AliMUONTrackerData::CanHistogram ( ) const
inlinevirtual

Whether or not we can make histograms.

Reimplemented from AliMUONVTrackerData.

Definition at line 121 of file AliMUONTrackerData.h.

Double_t AliMUONTrackerData::Chamber ( Int_t  chamberId,
Int_t  dim = 0 
) const
virtual

Get the value for a given chamber and given dimension.

Return the value fo a given chamber for a given dimension, or zero if not existing

Implements AliMUONVTrackerData.

Definition at line 1198 of file AliMUONTrackerData.cxx.

AliMUONVCalibParam * AliMUONTrackerData::ChamberParam ( Int_t  chamberId,
Bool_t  create = kFALSE 
) const
private

Return (if it exist) the VCalibParam for a given chamber

Definition at line 1213 of file AliMUONTrackerData.cxx.

Referenced by BuildFromBPStore(), BuildFromDEStore(), Chamber(), GetParts(), and HasChamber().

Double_t AliMUONTrackerData::Channel ( Int_t  detElemId,
Int_t  manuId,
Int_t  manuChannel,
Int_t  dim = 0 
) const
virtual

Get the value for a given channel and given dimension.

Return the value for a given channel for a given dimension

Implements AliMUONVTrackerData.

Definition at line 1272 of file AliMUONTrackerData.cxx.

Referenced by Count().

AliMUONVCalibParam * AliMUONTrackerData::ChannelParam ( Int_t  detElemId,
Int_t  manuId,
const AliMUONVCalibParam external = 0x0 
) const
private

Return (if it exist) the VCalibParam for a given manu

Definition at line 1284 of file AliMUONTrackerData.cxx.

Referenced by AliMUONTrackerData(), Channel(), and GetParts().

void AliMUONTrackerData::Clear ( Option_t *  opt = "")
virtual

Reset the data.

Clear all the values

Implements AliMUONVTrackerData.

Definition at line 1303 of file AliMUONTrackerData.cxx.

Referenced by AliMUONTrackerData(), BuildFromBPStore(), BuildFromDEStore(), and Replace().

AliMUONVTrackerData * AliMUONTrackerData::CompareData ( const AliMUONVTrackerData d1,
const AliMUONVTrackerData d2,
const char *  outname,
Double_t(*)(Double_t, Double_t)  diff 
)
static

Compare two data objects, using the diff method

Definition at line 1372 of file AliMUONTrackerData.cxx.

Referenced by AliMUONTrackerDataCompareDialog::CompareData(), and CompareData().

AliMUONVTrackerData * AliMUONTrackerData::CompareData ( const AliMUONVTrackerData d1,
const AliMUONVTrackerData d2,
const char *  outnamebase,
AliMUONTrackerData::EDiffType  diffType 
)
static

Make a new tracker data by computing the difference between d1 and d2 How the difference is exactly made (relative vs absolute for instance) is determined by the difftype parameter

Definition at line 1323 of file AliMUONTrackerData.cxx.

Double_t AliMUONTrackerData::Count ( Int_t  detElemId,
Int_t  manuId,
Int_t  manuChannel 
) const
virtual

Get the number of times a given channel was hit.

Return the number of times a given channel had data

Implements AliMUONVTrackerData.

Definition at line 1434 of file AliMUONTrackerData.cxx.

AliMUONVCalibParam * AliMUONTrackerData::CreateBusPatchParam ( Int_t  busPatch) const
private

Create storage for one bus patch

Definition at line 1161 of file AliMUONTrackerData.cxx.

Referenced by BusPatchParam().

AliMUONVCalibParam * AliMUONTrackerData::CreateChamberParam ( Int_t  chamberId) const
private

Create storage for one chamber

Definition at line 1231 of file AliMUONTrackerData.cxx.

Referenced by ChamberParam().

AliMUONVCalibParam * AliMUONTrackerData::CreateDetectionElementParam ( Int_t  detElemId) const
private

Create storage for one detection element

Definition at line 1503 of file AliMUONTrackerData.cxx.

Referenced by DetectionElementParam().

AliMUONVCalibParam * AliMUONTrackerData::CreateDouble ( const AliMUONVCalibParam param,
Int_t  detElemId,
Int_t  manuId 
) const
private

Create a double version of VCalibParam, for internal use

Definition at line 1445 of file AliMUONTrackerData.cxx.

Referenced by ChannelParam().

AliMUONVCalibParam * AliMUONTrackerData::CreateManuParam ( Int_t  detElemInd,
Int_t  manuId 
) const
private

Create storage for one manu

Definition at line 1957 of file AliMUONTrackerData.cxx.

Referenced by ManuParam().

AliMUONVCalibParam * AliMUONTrackerData::CreatePCBParam ( Int_t  detElemId,
Int_t  pcbIndex 
) const
private

Create storage for one PCB (station345 only)

Definition at line 2070 of file AliMUONTrackerData.cxx.

Referenced by PCBParam().

Int_t AliMUONTrackerData::DdlIdFromBusPatchId ( Int_t  buspatchid) const
private

Get the "local" ddlid (0..19) of a given buspatch

Definition at line 1532 of file AliMUONTrackerData.cxx.

Referenced by BusPatch().

Int_t AliMUONTrackerData::DdlIdFromChamberId ( Int_t  chamberid) const
private

Get the "local" ddlid (0..19) of a given chamber This has no real meaning (as there are several ddls per chamber), so we take the ddlid where we got the max number of events

Definition at line 1558 of file AliMUONTrackerData.cxx.

Referenced by Chamber().

Int_t AliMUONTrackerData::DdlIdFromDetElemId ( Int_t  detelemid) const
private

Get the "local" ddlid (0..19) of a given detection element

Definition at line 1545 of file AliMUONTrackerData.cxx.

Referenced by Channel(), DdlIdFromChamberId(), DetectionElement(), Manu(), and PCB().

Double_t AliMUONTrackerData::DetectionElement ( Int_t  detElemId,
Int_t  dim = 0 
) const
virtual

Get the value for a given DE and given dimension.

Return the value for a given detection element for a given dimension

Implements AliMUONVTrackerData.

Definition at line 1474 of file AliMUONTrackerData.cxx.

AliMUONVCalibParam * AliMUONTrackerData::DetectionElementParam ( Int_t  detElemId,
Bool_t  create = kFALSE 
) const
private

Return (if it exist) the VCalibParam for a given detection element

Definition at line 1484 of file AliMUONTrackerData.cxx.

Referenced by AliMUONTrackerData(), BuildFromBPStore(), BuildFromDEStore(), DetectionElement(), GetParts(), and HasDetectionElement().

Int_t AliMUONTrackerData::Dimension ( ) const
inlineprivate

The number of values we actually store for each item.

Definition at line 233 of file AliMUONTrackerData.h.

Referenced by AliMUONTrackerData(), CreateBusPatchParam(), CreateChamberParam(), CreateDetectionElementParam(), CreateDouble(), CreateManuParam(), and CreatePCBParam().

TString AliMUONTrackerData::DimensionName ( Int_t  dim) const
virtual

Get the name of a given (internal) dimension.

Get the name of a given dimension

Implements AliMUONVTrackerData.

Definition at line 1587 of file AliMUONTrackerData.cxx.

void AliMUONTrackerData::DisableChannelLevel ( )
virtual

Disable storing values at the channel level.

Disable the storing of data at channel level

Implements AliMUONVTrackerData.

Definition at line 1603 of file AliMUONTrackerData.cxx.

Referenced by AliMUONQAMappingCheck::CreateData(), DisableManuLevel(), AliMUONTrackerQADataMakerRec::TrackerCalData(), and AliMUONTrackerQADataMakerRec::TrackerRecData().

void AliMUONTrackerData::DisableManuLevel ( )
virtual

Disable storing values at the manu level.

Disable the storing of data at manu level (and below)

Implements AliMUONVTrackerData.

Definition at line 1614 of file AliMUONTrackerData.cxx.

void AliMUONTrackerData::DispatchValue ( AliMUONVCalibParam param,
Int_t  index,
Double_t  y,
Double_t  ey,
Int_t  nchannels 
)
staticprivate

fills the calibparam with a single value

Definition at line 2408 of file AliMUONTrackerData.cxx.

Referenced by AliMUONTrackerData().

Bool_t AliMUONTrackerData::ExportAsASCIIOccupancyFile ( const char *  filename,
Int_t  runNumber 
) const

Export only the occupancy part, in a format compatible with what the online occupancy DA is writing

Definition at line 2348 of file AliMUONTrackerData.cxx.

Int_t AliMUONTrackerData::External2Internal ( Int_t  index) const
private

Convert from external to internal index.

From external to internal dimension

Definition at line 1626 of file AliMUONTrackerData.cxx.

Referenced by AliMUONTrackerData(), BuildFromBPStore(), BuildFromDEStore(), InternalAdd(), and SetDimensionName().

virtual Int_t AliMUONTrackerData::ExternalDimension ( ) const
inlinevirtual

The number of values we are inputting.

Implements AliMUONVTrackerData.

Definition at line 104 of file AliMUONTrackerData.h.

Referenced by InternalAdd(), and MakeHistogramForDimension().

TString AliMUONTrackerData::ExternalDimensionName ( Int_t  dim) const
virtual

Get the name of a given (external) dimension.

Get the name of a given external dimension

Implements AliMUONVTrackerData.

Definition at line 1634 of file AliMUONTrackerData.cxx.

void AliMUONTrackerData::FillHisto ( Int_t  detElemId,
Int_t  manuId,
Int_t  manuChannel,
Int_t  dim,
Double_t  value 
)
private

Fill histogram of a given channel

Definition at line 1651 of file AliMUONTrackerData.cxx.

Referenced by InternalAdd().

AliMUONSparseHisto * AliMUONTrackerData::GetChannelSparseHisto ( Int_t  detElemId,
Int_t  manuId,
Int_t  manuChannel,
Int_t  dim = 0 
)

Get histogram of a given channel. Create it if necessary

Definition at line 1742 of file AliMUONTrackerData.cxx.

Referenced by FillHisto().

AliMUONSparseHisto * AliMUONTrackerData::GetChannelSparseHisto ( Int_t  detElemId,
Int_t  manuId,
Int_t  manuChannel,
Int_t  dim = 0 
) const
virtual

Get sparse histogram for a given channel.

Get histogram of a given channel

Implements AliMUONVTrackerData.

Definition at line 1723 of file AliMUONTrackerData.cxx.

void AliMUONTrackerData::GetDEManu ( const AliMUONVCalibParam param,
Int_t &  detElemId,
Int_t &  manuId 
) const
private

Tries to get (detElemId,manuId) of param

Definition at line 1774 of file AliMUONTrackerData.cxx.

Referenced by AliMUONTrackerData(), and GetParts().

AliMUONSparseHisto * AliMUONTrackerData::GetManuSparseHisto ( Int_t  detElemId,
Int_t  manuId,
Int_t  dim = 0 
)

Get histogram of a given manu. Create it if necessary

Definition at line 1694 of file AliMUONTrackerData.cxx.

Referenced by FillHisto().

AliMUONSparseHisto * AliMUONTrackerData::GetManuSparseHisto ( Int_t  detElemId,
Int_t  manuId,
Int_t  dim = 0 
) const
virtual

Get sparse histogram for a given manu (valid only if IsChannelLevelEnabled()==kFALSE and IsManuLevelEnabled()==kTRUE)

Get histogram of a given manu

Implements AliMUONVTrackerData.

Definition at line 1677 of file AliMUONTrackerData.cxx.

Int_t AliMUONTrackerData::GetParts ( AliMUONVCalibParam external,
AliMUONVCalibParam *&  chamber,
AliMUONVCalibParam *&  de,
AliMUONVCalibParam *&  busPatch,
AliMUONVCalibParam *&  pcb,
AliMUONVCalibParam *&  manu,
AliMUONVCalibParam *&  channel,
AliMpDetElement *&  mpde 
)
private

Get containers at all levels

Definition at line 1809 of file AliMUONTrackerData.cxx.

Referenced by AliMUONTrackerData(), and InternalAdd().

Bool_t AliMUONTrackerData::HasBusPatch ( Int_t  busPatchId) const
virtual

Whether we have data for a given buspath.

Whether we have data for a given buspatch

Implements AliMUONVTrackerData.

Definition at line 1889 of file AliMUONTrackerData.cxx.

Bool_t AliMUONTrackerData::HasChamber ( Int_t  chamberId) const
virtual

Whether we have data for a given chamber.

Whether we have data for a given chamber

Implements AliMUONVTrackerData.

Definition at line 1897 of file AliMUONTrackerData.cxx.

Bool_t AliMUONTrackerData::HasDetectionElement ( Int_t  detElemId) const
virtual

Whether we have data for a given detection element.

Whether we have data for a given detection element

Implements AliMUONVTrackerData.

Definition at line 1905 of file AliMUONTrackerData.cxx.

Bool_t AliMUONTrackerData::HasManu ( Int_t  detElemId,
Int_t  manuId 
) const
virtual

Whether we have data for a given manu.

Whether we have data for a given manu

Implements AliMUONVTrackerData.

Definition at line 1913 of file AliMUONTrackerData.cxx.

Bool_t AliMUONTrackerData::HasPCB ( Int_t  detElemId,
Int_t  pcbIndex 
) const
virtual

Whether we have data for a given PCB.

Whether we have data for a given pcb

Implements AliMUONVTrackerData.

Definition at line 1921 of file AliMUONTrackerData.cxx.

virtual void AliMUONTrackerData::HistogramRange ( Double_t &  xmin,
Double_t &  xmax 
) const
inlinevirtual

Get histogram range.

Reimplemented from AliMUONVTrackerData.

Definition at line 125 of file AliMUONTrackerData.h.

virtual Int_t AliMUONTrackerData::IndexOfNumberDimension ( ) const
inlineprivatevirtual

Index of the dimension containing the number of time an item was hit.

Definition at line 195 of file AliMUONTrackerData.h.

Referenced by AliMUONTrackerData(), BuildFromBPStore(), BuildFromDEStore(), Count(), CreateBusPatchParam(), CreateChamberParam(), CreateDetectionElementParam(), CreateDouble(), CreateManuParam(), and Value().

virtual Int_t AliMUONTrackerData::IndexOfOccupancyDimension ( ) const
inlineprivatevirtual

Index of the dimension containing the occupancy number.

Definition at line 198 of file AliMUONTrackerData.h.

Referenced by AliMUONTrackerData(), BuildFromBPStore(), BuildFromDEStore(), ExportAsASCIIOccupancyFile(), InternalAdd(), and Value().

Bool_t AliMUONTrackerData::InternalAdd ( const AliMUONVStore store,
TArrayI *  nevents 
)
private

Add the given external store to our internal store

Definition at line 990 of file AliMUONTrackerData.cxx.

Referenced by Add(), and Replace().

virtual Int_t AliMUONTrackerData::InternalToExternal ( Int_t  dim) const
inlinevirtual

Convert from internal to external dimension.

Implements AliMUONVTrackerData.

Definition at line 107 of file AliMUONTrackerData.h.

virtual Bool_t AliMUONTrackerData::IsBusPatchLevelEnabled ( ) const
inlinevirtual

Whether we store values at the bus patch level or not.

Implements AliMUONVTrackerData.

Definition at line 152 of file AliMUONTrackerData.h.

virtual Bool_t AliMUONTrackerData::IsChannelLevelEnabled ( ) const
inlinevirtual

Whether we store values at the channel level or not.

Implements AliMUONVTrackerData.

Definition at line 143 of file AliMUONTrackerData.h.

virtual Bool_t AliMUONTrackerData::IsHistogrammed ( Int_t  dim) const
inlineprivatevirtual

Whether we have histograms for a given dimension, or not.

Reimplemented from AliMUONVTrackerData.

Definition at line 201 of file AliMUONTrackerData.h.

Referenced by InternalAdd(), and Print().

virtual Bool_t AliMUONTrackerData::IsManuLevelEnabled ( ) const
inlinevirtual

Whether we store values at the manu level or not.

Implements AliMUONVTrackerData.

Definition at line 149 of file AliMUONTrackerData.h.

virtual Bool_t AliMUONTrackerData::IsPCBLevelEnabled ( ) const
inlinevirtual

Whether we store values at the PCB level or not.

Implements AliMUONVTrackerData.

Definition at line 155 of file AliMUONTrackerData.h.

virtual Bool_t AliMUONTrackerData::IsSingleEvent ( ) const
inlinevirtual

Whether we can be run.

Implements AliMUONVTrackerData.

Definition at line 96 of file AliMUONTrackerData.h.

Referenced by External2Internal(), InternalAdd(), SetDimensionName(), and Value().

void AliMUONTrackerData::MakeHistogramForDimension ( Int_t  ,
Bool_t  ,
Double_t  = 0.0,
Double_t  = 4096.0 
)
virtual

Select a dimension to be histogrammed (if CanHistogram==kTRUE) only.

decide to make histos for a given dimension

Reimplemented from AliMUONVTrackerData.

Definition at line 2208 of file AliMUONTrackerData.cxx.

Double_t AliMUONTrackerData::Manu ( Int_t  detElemId,
Int_t  manuId,
Int_t  dim = 0 
) const
virtual

Get the value for a given manu and given dimension.

Return the value for a given manu and a given dimension

Implements AliMUONVTrackerData.

Definition at line 1929 of file AliMUONTrackerData.cxx.

AliMUONVCalibParam * AliMUONTrackerData::ManuParam ( Int_t  detElemId,
Int_t  manuId,
Bool_t  create = kFALSE 
) const
private

Get the VCalibParam for a given manu

Definition at line 1939 of file AliMUONTrackerData.cxx.

Referenced by AliMUONTrackerData(), GetParts(), HasManu(), and Manu().

Long64_t AliMUONTrackerData::Merge ( TCollection *  list)
virtual

To allow merging of different objects.

Merge this with a list of AliMUONVTrackerData

Implements AliMUONVTrackerData.

Definition at line 1976 of file AliMUONTrackerData.cxx.

Int_t AliMUONTrackerData::NumberOfDimensions ( ) const
virtual

Returns the number of dimensions (i.e. the number of values) each element has.

Number of dimensions we're dealing with

Implements AliMUONVTrackerData.

Definition at line 2010 of file AliMUONTrackerData.cxx.

Referenced by AliMUONTrackerData(), BuildFromBPStore(), BuildFromDEStore(), and GetManuSparseHisto().

Int_t AliMUONTrackerData::NumberOfEvents ( Int_t  ddlNumber) const
virtual

Returns the number of events we have seen so far.

Get the number of events we've seen for a given DDL, or the max in case ddlNumber<0

Implements AliMUONVTrackerData.

Definition at line 2019 of file AliMUONTrackerData.cxx.

Referenced by DdlIdFromChamberId(), InternalAdd(), Merge(), and Value().

AliMUONTrackerData& AliMUONTrackerData::operator= ( const AliMUONTrackerData rhs)
private

Not implemented.

Double_t AliMUONTrackerData::PCB ( Int_t  detElemId,
Int_t  pcbIndex,
Int_t  dim = 0 
) const
virtual

Get the value for a given PCDB and given dimension.

Return the value of a given pcb for a given dimension

Implements AliMUONVTrackerData.

Definition at line 2041 of file AliMUONTrackerData.cxx.

AliMUONVCalibParam * AliMUONTrackerData::PCBParam ( Int_t  detElemId,
Int_t  pcbIndex,
Bool_t  create = kFALSE 
) const
private

Return (if it exist) the VCalibParam for a given pcb

Definition at line 2052 of file AliMUONTrackerData.cxx.

Referenced by GetParts(), HasPCB(), and PCB().

void AliMUONTrackerData::Print ( Option_t *  wildcard,
Option_t *  opt 
) const
virtual

Print, with option, all objects whose name matches wildcard.

Printout

Implements AliMUONVTrackerData.

Definition at line 2088 of file AliMUONTrackerData.cxx.

Bool_t AliMUONTrackerData::Replace ( const AliMUONVStore store)
virtual

Replace values.

Replace our values by values from the given external store

Implements AliMUONVTrackerData.

Definition at line 886 of file AliMUONTrackerData.cxx.

void AliMUONTrackerData::SetDimensionName ( Int_t  index,
const char *  value 
)
virtual
void AliMUONTrackerData::SetExternalDimensionName ( Int_t  index,
const char *  value 
)
private

Set the name of a given external dimension

Definition at line 2247 of file AliMUONTrackerData.cxx.

Referenced by SetDimensionName().

void AliMUONTrackerData::SetInternalDimensionName ( Int_t  index,
const char *  value 
)
private

Set the name of a given internal dimension

Definition at line 2226 of file AliMUONTrackerData.cxx.

Referenced by SetDimensionName().

Bool_t AliMUONTrackerData::UpdateNumberOfEvents ( TArrayI *  nevents)
private

Update the number of events

Definition at line 898 of file AliMUONTrackerData.cxx.

Referenced by AliMUONTrackerData(), BuildFromBPStore(), BuildFromDEStore(), and InternalAdd().

Double_t AliMUONTrackerData::Value ( const AliMUONVCalibParam param,
Int_t  i,
Int_t  dim,
Int_t  ddlId 
) const
private

Compute the value for a given dim, using the internal information we have Basically we're converting sum of weights and sum of squares of weights into means and sigmas, and number of events into occupancy number.

Definition at line 2268 of file AliMUONTrackerData.cxx.

Referenced by BusPatch(), Chamber(), Channel(), DetectionElement(), Manu(), and PCB().

Member Data Documentation

AliMUONVStore* AliMUONTrackerData::fBusPatchValues
private

the bus patch store

Definition at line 257 of file AliMUONTrackerData.h.

Referenced by Add(), AssertStores(), BusPatchParam(), Clear(), Print(), and ~AliMUONTrackerData().

AliMUONVStore* AliMUONTrackerData::fChamberValues
private

the chamber store

Definition at line 259 of file AliMUONTrackerData.h.

Referenced by Add(), AssertStores(), ChamberParam(), Clear(), Print(), and ~AliMUONTrackerData().

AliMUONVStore* AliMUONTrackerData::fChannelValues
private
AliMUONVStore* AliMUONTrackerData::fDEValues
private

the detection element store

Definition at line 258 of file AliMUONTrackerData.h.

Referenced by Add(), AssertStores(), Clear(), DetectionElementParam(), Print(), and ~AliMUONTrackerData().

Int_t AliMUONTrackerData::fDimension
private
TObjArray* AliMUONTrackerData::fDimensionNames
private

the names of the (internal) dimensions

Definition at line 263 of file AliMUONTrackerData.h.

Referenced by AliMUONTrackerData(), BuildFromBPStore(), BuildFromDEStore(), DimensionName(), Print(), SetInternalDimensionName(), and ~AliMUONTrackerData().

Int_t AliMUONTrackerData::fExternalDimension
private

number of interface values per item

Definition at line 265 of file AliMUONTrackerData.h.

Referenced by Add(), AliMUONTrackerData(), BuildFromBPStore(), BuildFromDEStore(), ExternalDimension(), SetDimensionName(), and SetExternalDimensionName().

TObjArray* AliMUONTrackerData::fExternalDimensionNames
private

the names of the external (i.e. original) dimensions

Definition at line 264 of file AliMUONTrackerData.h.

Referenced by AliMUONTrackerData(), BuildFromBPStore(), BuildFromDEStore(), ExternalDimensionName(), Print(), SetExternalDimensionName(), and ~AliMUONTrackerData().

const Int_t AliMUONTrackerData::fgkExtraDimension = 2
staticprivate

to hold extra information

Definition at line 271 of file AliMUONTrackerData.h.

Referenced by AliMUONTrackerData(), BuildFromBPStore(), and BuildFromDEStore().

const Int_t AliMUONTrackerData::fgkVirtualExtraDimension = 1
staticprivate

to give access to information not stored, but computed on the fly

Definition at line 272 of file AliMUONTrackerData.h.

Referenced by AliMUONTrackerData(), BuildFromBPStore(), BuildFromDEStore(), and NumberOfDimensions().

Int_t* AliMUONTrackerData::fHistogramming
private

whether we should histogram the dimension(s)

Definition at line 267 of file AliMUONTrackerData.h.

Referenced by Add(), AliMUONTrackerData(), BuildFromBPStore(), BuildFromDEStore(), IsHistogrammed(), MakeHistogramForDimension(), and ~AliMUONTrackerData().

AliMUONVStore* AliMUONTrackerData::fHistos
private

the lowest histograms we have

Definition at line 268 of file AliMUONTrackerData.h.

Referenced by Add(), Clear(), GetChannelSparseHisto(), GetManuSparseHisto(), and ~AliMUONTrackerData().

Bool_t AliMUONTrackerData::fIsBustPatchLevelEnabled
private

whether we allow storing of bus patches (fBusPatchValues) values

Definition at line 275 of file AliMUONTrackerData.h.

Referenced by AssertStores(), BuildFromBPStore(), and IsBusPatchLevelEnabled().

Bool_t AliMUONTrackerData::fIsChannelLevelEnabled
private

whether we allow storing of channel (fChannelValues) values

Definition at line 273 of file AliMUONTrackerData.h.

Referenced by Add(), AssertStores(), DisableChannelLevel(), FillHisto(), GetParts(), IsChannelLevelEnabled(), and Print().

Bool_t AliMUONTrackerData::fIsManuLevelEnabled
private

whether we allow storing of manu (fManuValues) values

Definition at line 274 of file AliMUONTrackerData.h.

Referenced by Add(), AssertStores(), DisableManuLevel(), FillHisto(), IsManuLevelEnabled(), and Print().

Bool_t AliMUONTrackerData::fIsPCBLevelEnabled
private

whether we allow storing of PCB values (fPCBValues)

Definition at line 276 of file AliMUONTrackerData.h.

Referenced by AssertStores(), and IsPCBLevelEnabled().

Bool_t AliMUONTrackerData::fIsSingleEvent
private

whether we can deal with more than one event

Definition at line 254 of file AliMUONTrackerData.h.

Referenced by Add(), IsSingleEvent(), and Print().

AliMUONVStore* AliMUONTrackerData::fManuValues
private
Int_t AliMUONTrackerData::fNevents
private

the number of events treated

Definition at line 262 of file AliMUONTrackerData.h.

Referenced by Add(), Clear(), NumberOfEvents(), and UpdateNumberOfEvents().

Int_t AliMUONTrackerData::fNofDDLs
private

nof of DDLs we're dealing with

Definition at line 277 of file AliMUONTrackerData.h.

Referenced by Add(), Clear(), NumberOfEvents(), Print(), and UpdateNumberOfEvents().

Int_t* AliMUONTrackerData::fNofEventsPerDDL
private

the number of events treated (per DDL)

Definition at line 279 of file AliMUONTrackerData.h.

Referenced by Add(), Clear(), ExportAsASCIIOccupancyFile(), NumberOfEvents(), Print(), UpdateNumberOfEvents(), and ~AliMUONTrackerData().

AliMUONVStore* AliMUONTrackerData::fPCBValues
private

the pcb store

Definition at line 260 of file AliMUONTrackerData.h.

Referenced by Add(), AssertStores(), Clear(), PCBParam(), and ~AliMUONTrackerData().

Double_t AliMUONTrackerData::fXmax
private

max x value for histograms

Definition at line 270 of file AliMUONTrackerData.h.

Referenced by Add(), GetChannelSparseHisto(), GetManuSparseHisto(), HistogramRange(), and MakeHistogramForDimension().

Double_t AliMUONTrackerData::fXmin
private

min x value for histograms

Definition at line 269 of file AliMUONTrackerData.h.

Referenced by Add(), GetChannelSparseHisto(), GetManuSparseHisto(), HistogramRange(), and MakeHistogramForDimension().


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