![]() |
AliRoot Core
a565103 (a565103)
|
Implementation of the TPC Raw drift velocity and Altro L1 Phase calibration. More...
#include <AliTPCCalibRaw.h>
Public Types | |
enum | { kNRCU =216 } |
Public Member Functions | |
AliTPCCalibRaw () | |
AliTPCCalibRaw (const TMap *config) | |
virtual | ~AliTPCCalibRaw () |
virtual Int_t | Update (const Int_t isector, const Int_t iRow, const Int_t iPad, const Int_t iTimeBin, const Float_t signal) |
virtual void | UpdateDDL () |
virtual void | EndEvent () |
virtual void | ResetEvent () |
virtual void | Analyse () |
UInt_t | GetNFailL1Phase () const |
UInt_t | GetNFailL1PhaseEvents () const |
Int_t | GetPeakDetectionMinus () const |
Int_t | GetPeakDetectionPlus () const |
const TVectorF * | GetALTROL1PhaseEvents () const |
const TVectorF * | GetALTROL1PhaseEventsRCU (Int_t rcu) const |
const TVectorF * | GetALTROL1PhaseFailEventsRCU (Int_t rcu) const |
const TVectorF * | GetOccupancyEvent () const |
const TVectorF * | GetOccupancyEventSensitive () const |
const TVectorF * | GetSignalSumEvent () const |
const TVectorF * | GetSignalSumEventSensitive () const |
const TVectorF * | GetFiredPadsSensitive () const |
const TVectorF * | GetEventTimeStamps () const |
UInt_t | GetFirstTimeStamp () const |
void | SetRangePeakDetection (Int_t minus, Int_t plus) |
TH2C * | MakeHistL1RCUEvents (Int_t type=0) |
TH2C * | MakeHistL1RCUEventsIROC (Int_t type=0) |
TH2C * | MakeHistL1RCUEventsOROC (Int_t type=0) |
TH1F * | MakeHistL1PhaseDist () |
TVectorF * | MakeVectL1PhaseDist () |
TGraph * | MakeGraphOccupancy (const Int_t type=0, const Int_t xType=0) |
TCanvas * | MakeCanvasOccupancy (const Int_t xType=1, Bool_t sen=kFALSE) |
const THnSparseI * | GetHnDrift () const |
void | Merge (AliTPCCalibRaw *const sig) |
virtual Long64_t | Merge (TCollection *const list) |
![]() | |
AliTPCCalibRawBase () | |
AliTPCCalibRawBase (const AliTPCCalibRawBase &calib) | |
AliTPCCalibRawBase & | operator= (const AliTPCCalibRawBase &source) |
virtual | ~AliTPCCalibRawBase () |
Bool_t | ProcessEvent (AliTPCRawStreamV3 *const rawStreamV3) |
Bool_t | ProcessEvent (AliRawReader *const rawReader) |
Bool_t | ProcessEvent (eventHeaderStruct *const event) |
virtual void | ProcessBunch (const Int_t, const Int_t, const Int_t, const Int_t, const UInt_t, const UShort_t *) |
void | MergeBase (const AliTPCCalibRawBase *calib) |
void | SetRangeTime (Int_t firstTimeBin, Int_t lastTimeBin) |
void | SetAltroMapping (AliTPCAltroMapping **mapp) |
void | SetUseL1Phase (Bool_t useL1Phase=kTRUE) |
void | SetTimeStampEvent (UInt_t timestamp) |
void | SetRunNumber (UInt_t eventnumber) |
Int_t | GetFirstTimeBin () const |
Int_t | GetLastTimeBin () const |
Int_t | GetNevents () const |
Double_t | GetL1Phase () const |
Double_t | GetL1PhaseTB () const |
Bool_t | GetUseL1Phase () const |
UInt_t | GetRunNumber () const |
UInt_t | GetFirstTimeStamp () const |
UInt_t | GetLastTimeStamp () const |
UInt_t | GetTimeStamp () const |
UInt_t | GetEventType () const |
AliTPCAltroMapping ** | GetAltroMapping () |
const AliAltroRawStream * | GetAltroRawStream () const |
const AliTPCROC * | GetTPCROC () const |
void | IncrementNevents () |
virtual void | DumpToFile (const Char_t *filename, const Char_t *dir="", Bool_t append=kFALSE) |
TTreeSRedirector * | GetDebugStreamer () |
void | SetStreamLevel (Int_t streamLevel) |
void | SetDebugLevel (Int_t level) |
Int_t | GetStreamLevel () const |
Int_t | GetDebugLevel () const |
Private Types | |
enum | { kHnBinsDV =3 } |
Private Member Functions | |
TVectorF * | MakeArrL1PhaseRCU (Int_t rcu, Bool_t force=kFALSE) |
TVectorF * | MakeArrL1PhaseFailRCU (Int_t rcu, Bool_t force=kFALSE) |
Bool_t | IsEdgePad (Int_t sector, Int_t row, Int_t pad) const |
void | CreateDVhist () |
AliTPCCalibRaw (const AliTPCCalibRaw &calib) | |
AliTPCCalibRaw & | operator= (const AliTPCCalibRaw &source) |
Private Attributes | |
Int_t | fPeakDetMinus |
Consecutive timebins on rising edge to be regarded as a signal. More... | |
Int_t | fPeakDetPlus |
Consecutive timebins on falling edge to be regarded as a signal. More... | |
UInt_t | fNFailL1Phase |
Number of failures in L1 phase. More... | |
UInt_t | fNFailL1PhaseEvent |
Number of events with L1 phase failures. More... | |
UInt_t | fNSecTime |
Number of seconds per bin in time. More... | |
UInt_t | fNBinsTime |
Number of bin in time. More... | |
Bool_t | fPadProcessed |
! if last pead has already been filled for the current pad More... | |
Int_t | fCurrentChannel |
! current channel processed More... | |
Int_t | fCurrentSector |
! current sector processed More... | |
Int_t | fLastSector |
! current sector processed More... | |
Int_t | fCurrentRow |
! current row processed More... | |
Int_t | fCurrentPad |
! current pad processed More... | |
Int_t | fLastTimeBinProc |
! last time bin processed More... | |
Int_t | fPeakTimeBin |
! time bin with local maximum More... | |
Int_t | fLastSignal |
! last signal processed More... | |
Int_t | fNOkPlus |
! number of processed time bins fullfilling peak criteria More... | |
Int_t | fNOkMinus |
! number of processed time bins fullfilling peak criteria More... | |
Int_t | fNanoSec |
! current nano seconds stamp More... | |
TVectorF | fArrCurrentPhaseDist |
! Phase distribution of the current event More... | |
TVectorF | fArrCurrentPhase |
! Current phase of all RCUs More... | |
TVectorF | fArrFailEventNumber |
event numbers of failed events; More... | |
TVectorF | fArrALTROL1Phase |
Array of L1 phases on an event bases;. More... | |
TObjArray | fArrALTROL1PhaseEvent |
L1 phase for each RCU and event. More... | |
TObjArray | fArrALTROL1PhaseFailEvent |
L1 failure for each RCU and event. More... | |
THnSparseI * | fHnDrift |
Histogram last time bin vs. ROC, Time. More... | |
TVectorF | fVOccupancyEvent |
occupancy per event (number of samples above threshold) More... | |
TVectorF | fVSignalSumEvent |
occupancy per event (sum of all adc values) More... | |
TVectorF | fVOccupancySenEvent |
occupancy per event (number of samples abouve threshold) in sensitive regions More... | |
TVectorF | fVSignalSumSenEvent |
occupancy per event (sum of all adc values) in sensitive regions More... | |
TVectorF | fVNfiredPadsSenEvent |
number of pads with a signal above threshold in sensitive regions More... | |
TVectorF | fVTimeStampEvent |
timestamp for all events More... | |
Additional Inherited Members | |
![]() | |
Int_t | fFirstTimeBin |
First Time bin used for analysis. More... | |
Int_t | fLastTimeBin |
Last Time bin used for analysis. More... | |
Int_t | fNevents |
Number of processed events. More... | |
Int_t | fDebugLevel |
! debug level More... | |
Int_t | fStreamLevel |
! level of streamer output More... | |
UInt_t | fRunNumber |
current run number from event header More... | |
UInt_t | fFirstTimeStamp |
First event time stamp. More... | |
UInt_t | fLastTimeStamp |
Last event time stamp. More... | |
UInt_t | fTimeStamp |
! time stamp from event header More... | |
UInt_t | fEventType |
! current event Type from event header More... | |
Double_t | fAltroL1Phase |
! L1 Phase More... | |
Float_t | fAltroL1PhaseTB |
! L1 Phase in time bins More... | |
Int_t | fCurrRCUId |
! Current RCU Id More... | |
Int_t | fPrevRCUId |
! Previous RCU Id More... | |
Int_t | fCurrDDLNum |
! Current DDL number More... | |
Int_t | fPrevDDLNum |
! Current DDL number More... | |
Bool_t | fUseL1Phase |
use L1 Phase information? More... | |
TTreeSRedirector * | fDebugStreamer |
! debug streamer More... | |
AliAltroRawStream * | fAltroRawStream |
! pointer to the altro object More... | |
AliTPCAltroMapping ** | fMapping |
! Altro Mapping object More... | |
AliTPCROC * | fROC |
! ROC information More... | |
Implementation of the TPC Raw drift velocity and Altro L1 Phase calibration.
TPC ALTRO Header analysis.
Definition at line 23 of file AliTPCCalibRaw.h.
anonymous enum |
Enumerator | |
---|---|
kNRCU |
Definition at line 30 of file AliTPCCalibRaw.h.
|
private |
Enumerator | |
---|---|
kHnBinsDV |
Definition at line 106 of file AliTPCCalibRaw.h.
AliTPCCalibRaw::AliTPCCalibRaw | ( | ) |
Definition at line 74 of file AliTPCCalibRaw.cxx.
AliTPCCalibRaw::AliTPCCalibRaw | ( | const TMap * | config | ) |
Default ctor
Definition at line 118 of file AliTPCCalibRaw.cxx.
|
virtual |
dtor
Definition at line 165 of file AliTPCCalibRaw.cxx.
|
private |
|
virtual |
Analyse Data
Reimplemented from AliTPCCalibRawBase.
Definition at line 464 of file AliTPCCalibRaw.cxx.
|
private |
Setup the HnSparse for the drift velocity determination
Definition at line 450 of file AliTPCCalibRaw.cxx.
Referenced by AliTPCCalibRaw().
|
virtual |
End event analysis
Reimplemented from AliTPCCalibRawBase.
Definition at line 286 of file AliTPCCalibRaw.cxx.
|
inline |
Definition at line 44 of file AliTPCCalibRaw.h.
|
inline |
Definition at line 46 of file AliTPCCalibRaw.h.
Referenced by MakeHistL1RCUEvents(), MakeHistL1RCUEventsIROC(), and MakeHistL1RCUEventsOROC().
|
inline |
Definition at line 47 of file AliTPCCalibRaw.h.
Referenced by MakeHistL1RCUEventsIROC(), and MakeHistL1RCUEventsOROC().
|
inline |
Definition at line 54 of file AliTPCCalibRaw.h.
|
inline |
Definition at line 53 of file AliTPCCalibRaw.h.
|
inline |
Definition at line 55 of file AliTPCCalibRaw.h.
|
inline |
Definition at line 69 of file AliTPCCalibRaw.h.
|
inline |
Definition at line 39 of file AliTPCCalibRaw.h.
|
inline |
Definition at line 40 of file AliTPCCalibRaw.h.
|
inline |
Definition at line 49 of file AliTPCCalibRaw.h.
|
inline |
Definition at line 50 of file AliTPCCalibRaw.h.
|
inline |
Definition at line 41 of file AliTPCCalibRaw.h.
|
inline |
Definition at line 42 of file AliTPCCalibRaw.h.
|
inline |
Definition at line 51 of file AliTPCCalibRaw.h.
|
inline |
Definition at line 52 of file AliTPCCalibRaw.h.
|
inlineprivate |
return true if pad is on the edge of a row
Definition at line 153 of file AliTPCCalibRaw.h.
Referenced by Update().
|
inlineprivate |
Definition at line 143 of file AliTPCCalibRaw.h.
|
inlineprivate |
Definition at line 133 of file AliTPCCalibRaw.h.
Referenced by Analyse(), and EndEvent().
TCanvas * AliTPCCalibRaw::MakeCanvasOccupancy | ( | const Int_t | xType = 1 , |
Bool_t | sen = kFALSE |
||
) |
Create a canvas with occupancy information of all 'type's (see MakeGraphOccupancy) xType=0: vs. timestamp xType=1: vs. event number
sen=kTRUE: for sensitive regions
Definition at line 592 of file AliTPCCalibRaw.cxx.
TGraph * AliTPCCalibRaw::MakeGraphOccupancy | ( | const Int_t | type = 0 , |
const Int_t | xType = 0 |
||
) |
create occupancy graph (of samples abouve threshold) type=0: number of samples type=1: mean data volume (ADC counts/sample) type=2: data volume (ADC counts) type=3: samples per ADC count type=4: sample occupancy
type=5: number of sample sensitive / number of samples
same in sensitive regions: type=10: number of samples type=11: mean data volume (ADC counts/sample) type=12: data volume (ADC counts) type=13: samples per ADC count type=14: sample occupancy
type=16: number of samples sensitive / number of pads sensitive type=17: pad occupancy in sensitive regions xType=0: vs. time stamp xType=1: vs. event counter
Definition at line 498 of file AliTPCCalibRaw.cxx.
Referenced by MakeCanvasOccupancy().
TH1F * AliTPCCalibRaw::MakeHistL1PhaseDist | ( | ) |
L1 phase distribution. Should be flat in ideal case
Definition at line 389 of file AliTPCCalibRaw.cxx.
TH2C * AliTPCCalibRaw::MakeHistL1RCUEvents | ( | Int_t | type = 0 | ) |
Create a 2D histo RCU:Events indicating the there was a deviation from the mean L1 phase of the event
type: 0=Failures, 1=Phases
Definition at line 341 of file AliTPCCalibRaw.cxx.
TH2C * AliTPCCalibRaw::MakeHistL1RCUEventsIROC | ( | Int_t | type = 0 | ) |
Create a 2D histo RCU:Events indicating the there was a deviation from the mean L1 phase of the event
Definition at line 414 of file AliTPCCalibRaw.cxx.
TH2C * AliTPCCalibRaw::MakeHistL1RCUEventsOROC | ( | Int_t | type = 0 | ) |
Create a 2D histo RCU:Events indicating the there was a deviation from the mean L1 phase of the event
Definition at line 432 of file AliTPCCalibRaw.cxx.
TVectorF * AliTPCCalibRaw::MakeVectL1PhaseDist | ( | ) |
L1 phase distribution. Should be flat in ideal case
Definition at line 402 of file AliTPCCalibRaw.cxx.
void AliTPCCalibRaw::Merge | ( | AliTPCCalibRaw *const | sig | ) |
Merge sig with this instance
Definition at line 626 of file AliTPCCalibRaw.cxx.
Referenced by Merge().
|
virtual |
Merge all objects of this type in list
Reimplemented from AliTPCCalibRawBase.
Definition at line 640 of file AliTPCCalibRaw.cxx.
|
private |
|
virtual |
Reset event counters
Reimplemented from AliTPCCalibRawBase.
Definition at line 276 of file AliTPCCalibRaw.cxx.
|
inline |
Definition at line 57 of file AliTPCCalibRaw.h.
|
virtual |
Data filling method
Reimplemented from AliTPCCalibRawBase.
Definition at line 184 of file AliTPCCalibRaw.cxx.
|
virtual |
fill ALTRO L1 information
Reimplemented from AliTPCCalibRawBase.
Definition at line 259 of file AliTPCCalibRaw.cxx.
|
private |
Array of L1 phases on an event bases;.
Definition at line 102 of file AliTPCCalibRaw.h.
Referenced by Analyse(), EndEvent(), GetALTROL1PhaseEvents(), MakeHistL1PhaseDist(), MakeHistL1RCUEvents(), and MakeVectL1PhaseDist().
|
private |
L1 phase for each RCU and event.
Definition at line 103 of file AliTPCCalibRaw.h.
Referenced by GetALTROL1PhaseEventsRCU(), and MakeArrL1PhaseRCU().
|
private |
L1 failure for each RCU and event.
Definition at line 104 of file AliTPCCalibRaw.h.
Referenced by GetALTROL1PhaseFailEventsRCU(), and MakeArrL1PhaseFailRCU().
|
private |
! Current phase of all RCUs
Definition at line 100 of file AliTPCCalibRaw.h.
Referenced by AliTPCCalibRaw(), EndEvent(), and UpdateDDL().
|
private |
! Phase distribution of the current event
Definition at line 99 of file AliTPCCalibRaw.h.
Referenced by EndEvent(), ResetEvent(), and UpdateDDL().
|
private |
event numbers of failed events;
Definition at line 101 of file AliTPCCalibRaw.h.
Referenced by Analyse(), EndEvent(), and MakeHistL1RCUEvents().
|
private |
! current channel processed
Definition at line 86 of file AliTPCCalibRaw.h.
Referenced by ResetEvent(), and Update().
|
private |
|
private |
|
private |
! current sector processed
Definition at line 87 of file AliTPCCalibRaw.h.
|
private |
Histogram last time bin vs. ROC, Time.
Definition at line 107 of file AliTPCCalibRaw.h.
Referenced by CreateDVhist(), GetHnDrift(), Merge(), Update(), and ~AliTPCCalibRaw().
|
private |
! current sector processed
Definition at line 88 of file AliTPCCalibRaw.h.
|
private |
|
private |
|
private |
! current nano seconds stamp
Definition at line 96 of file AliTPCCalibRaw.h.
Referenced by EndEvent(), and UpdateDDL().
|
private |
Number of bin in time.
Definition at line 83 of file AliTPCCalibRaw.h.
Referenced by CreateDVhist().
|
private |
Number of failures in L1 phase.
Definition at line 79 of file AliTPCCalibRaw.h.
Referenced by EndEvent(), and GetNFailL1Phase().
|
private |
Number of events with L1 phase failures.
Definition at line 80 of file AliTPCCalibRaw.h.
Referenced by Analyse(), EndEvent(), GetNFailL1PhaseEvents(), and MakeHistL1RCUEvents().
|
private |
! number of processed time bins fullfilling peak criteria
Definition at line 95 of file AliTPCCalibRaw.h.
Referenced by Update().
|
private |
! number of processed time bins fullfilling peak criteria
Definition at line 94 of file AliTPCCalibRaw.h.
Referenced by Update().
|
private |
Number of seconds per bin in time.
Definition at line 82 of file AliTPCCalibRaw.h.
Referenced by CreateDVhist(), and Update().
|
private |
! if last pead has already been filled for the current pad
Definition at line 85 of file AliTPCCalibRaw.h.
Referenced by Update().
|
private |
Consecutive timebins on rising edge to be regarded as a signal.
Definition at line 77 of file AliTPCCalibRaw.h.
Referenced by GetPeakDetectionMinus(), SetRangePeakDetection(), and Update().
|
private |
Consecutive timebins on falling edge to be regarded as a signal.
Definition at line 78 of file AliTPCCalibRaw.h.
Referenced by GetPeakDetectionPlus(), SetRangePeakDetection(), and Update().
|
private |
! time bin with local maximum
Definition at line 92 of file AliTPCCalibRaw.h.
Referenced by Update().
|
private |
number of pads with a signal above threshold in sensitive regions
Definition at line 113 of file AliTPCCalibRaw.h.
Referenced by Analyse(), EndEvent(), GetFiredPadsSensitive(), MakeGraphOccupancy(), and Update().
|
private |
occupancy per event (number of samples above threshold)
Definition at line 109 of file AliTPCCalibRaw.h.
Referenced by Analyse(), EndEvent(), GetOccupancyEvent(), MakeGraphOccupancy(), and Update().
|
private |
occupancy per event (number of samples abouve threshold) in sensitive regions
Definition at line 111 of file AliTPCCalibRaw.h.
Referenced by Analyse(), EndEvent(), GetOccupancyEventSensitive(), MakeGraphOccupancy(), and Update().
|
private |
occupancy per event (sum of all adc values)
Definition at line 110 of file AliTPCCalibRaw.h.
Referenced by Analyse(), EndEvent(), GetSignalSumEvent(), MakeGraphOccupancy(), and Update().
|
private |
occupancy per event (sum of all adc values) in sensitive regions
Definition at line 112 of file AliTPCCalibRaw.h.
Referenced by Analyse(), EndEvent(), GetSignalSumEventSensitive(), MakeGraphOccupancy(), and Update().
|
private |
timestamp for all events
Definition at line 114 of file AliTPCCalibRaw.h.
Referenced by Analyse(), EndEvent(), GetEventTimeStamps(), and MakeGraphOccupancy().