fPeakDetPlus(2),
fNFailL1Phase(0),
fNFailL1PhaseEvent(0),
- fFirstTimeStamp(0),
fNSecTime(600), //default 10 minutes
fNBinsTime(60), //default 60*10 minutes = 10 hours
fPadProcessed(kFALSE),
fPeakDetPlus(2),
fNFailL1Phase(0),
fNFailL1PhaseEvent(0),
-fFirstTimeStamp(0),
fNSecTime(600), //default 10 minutes
fNBinsTime(60), //default 60*10 minutes = 10 hours
fPadProcessed(kFALSE),
if (iRow<0) return 0;
if (iPad<0) return 0;
if (iTimeBin<0) return 0;
- if (!fFirstTimeStamp) fFirstTimeStamp=GetTimeStamp();
//
Int_t iChannel = fROC->GetRowIndexes(isector)[iRow]+iPad; // global pad position in sector
//occupancy
TVectorF *vSum=&fVSignalSumEvent;
TVectorF *vPads=&fVNfiredPadsSenEvent;
Double_t norm=557568.;
+ if (type!=14&&fVOccupancyEvent.GetNrows()==0){
+ AliWarning("In non debug mode only occupancy in sensitive regions vs. event awailable!!!");
+ return 0;
+ }
if (type>=10){
vOcc=&fVOccupancySenEvent;
vSum=&fVSignalSumSenEvent;
}
for (Int_t i=0;i<GetNevents(); ++i){
Double_t nAboveThreshold=vOcc->GetMatrixArray()[i];
- Double_t nSumADC =vSum->GetMatrixArray()[i];
- Double_t timestamp =fVTimeStampEvent.GetMatrixArray()[i]+fFirstTimeStamp;
- Double_t nPads =vPads->GetMatrixArray()[i];
+
+ Double_t nSumADC =1;
+ Double_t timestamp =1;
+ Double_t nPads =1;
+
+ if (fVOccupancyEvent.GetNrows()>0){
+ nSumADC =vSum->GetMatrixArray()[i];
+ timestamp =fVTimeStampEvent.GetMatrixArray()[i]+fFirstTimeStamp;
+ nPads =vPads->GetMatrixArray()[i];
+ }
Double_t x=timestamp;
Double_t y=0;
//
return gr;
}
//_____________________________________________________________________
-TGraph* AliTPCCalibRaw::MakeGraphNoiseEvents()
-{
- //
+// TGraph* AliTPCCalibRaw::MakeGraphNoiseEvents()
+// {
//
+ // Not implemented for the moment
//
- return 0;
-}
+// return 0;
+// }
//_____________________________________________________________________
TCanvas* AliTPCCalibRaw::MakeCanvasOccupancy(const Int_t xType, Bool_t sen)
{
return c;
}
+//_____________________________________________________________________
+void AliTPCCalibRaw::Merge(AliTPCCalibRaw * const sig)
+{
+ //
+ // Merge sig with this instance
+ //
+
+ if (!sig) return;
+ MergeBase(sig);
+ //Add last time bin distribution histogram
+ fHnDrift->Add(sig->fHnDrift);
+
+ //Add occupancy data
+
+}
+
+//_____________________________________________________________________
+Long64_t AliTPCCalibRaw::Merge(TCollection * const list)
+{
+ //
+ // Merge all objects of this type in list
+ //
+
+ Long64_t nmerged=1;
+
+ TIter next(list);
+ AliTPCCalibRaw *ce=0;
+ TObject *o=0;
+
+ while ( (o=next()) ){
+ ce=dynamic_cast<AliTPCCalibRaw*>(o);
+ if (ce){
+ Merge(ce);
+ ++nmerged;
+ }
+ }
+
+ return nmerged;
+}
+