- if ( fillScalerHistos ) {
- UInt_t nOfClocks = darcHeader->GetGlobalClock();
- Double_t nOfSeconds = ((Double_t) nOfClocks) / 40e6; // 1 clock each 25 ns
- ((TH1F*)GetRawsData(AliMUONQAIndices::kTriggerScalersTime))->Fill(1., nOfSeconds);
- }
-
- //Get Global datas
- inputGlobalTrigger.SetFromGlobalResponse(darcHeader->GetGlobalOutput());
- Bool_t resp[6] = {inputGlobalTrigger.PairUnlikeHpt(), inputGlobalTrigger.PairUnlikeLpt(),
- inputGlobalTrigger.PairLikeHpt(), inputGlobalTrigger.PairLikeLpt(),
- inputGlobalTrigger.SingleHpt(), inputGlobalTrigger.SingleLpt()};
- for (Int_t bit=0; bit<6; bit++){
- if ( ! resp[bit] ){
- if ( fillScalerHistos )
- nDeadGlobal++;
- }
- else
- ((TH1F*)GetRawsData(AliMUONQAIndices::kTriggerGlobalOutput))->Fill(bit);
- }
-
- //for (Int_t Bit=0; Bit<32; Bit++){
- //fTriggerInputGlobalDataLPt[Bit/4][Bit%4]=((darcHeader->GetGlobalInput(0)>>Bit)&1);
- //fTriggerInputGlobalDataLPt[Bit/4+8][Bit%4]=((darcHeader->GetGlobalInput(1)>>Bit)&1);
- //fTriggerInputGlobalDataHPt[Bit/4][Bit%4]=((darcHeader->GetGlobalInput(2)>>Bit)&1);
- //fTriggerInputGlobalDataHPt[Bit/4+8][Bit%4]=((darcHeader->GetGlobalInput(3)>>Bit)&1);
- //}
-
- for (Int_t i=0; i<4; i++){
- globalInput[i]=darcHeader->GetGlobalInput(i);
- }
+ if ( fillScalerHistos ) {
+ UInt_t nOfClocks = darcHeader->GetGlobalClock();
+ Double_t nOfSeconds = ((Double_t) nOfClocks) / 40e6; // 1 clock each 25 ns
+ FillRawsData(AliMUONQAIndices::kTriggerScalersTime, 1., nOfSeconds);
+ const UInt_t* globScaler = darcHeader->GetGlobalScaler();
+ Int_t bitCorr[6] = {2,0,3,1,4,5};
+ for (Int_t bit=0; bit<6; bit++){
+ FillRawsData(AliMUONQAIndices::kTriggerGlobalScalers, bitCorr[bit],(double)(*(globScaler+bit)));
+ }
+ }
+
+ //Get Global datas
+ inputGlobalTrigger.SetFromGlobalResponse(darcHeader->GetGlobalOutput());
+ Int_t resp[6] = {inputGlobalTrigger.PairUnlikeHpt(), inputGlobalTrigger.PairUnlikeLpt(),
+ inputGlobalTrigger.PairLikeHpt(), inputGlobalTrigger.PairLikeLpt(),
+ inputGlobalTrigger.SingleHpt(), inputGlobalTrigger.SingleLpt()};
+ for (Int_t bit=0; bit<6; bit++){
+ if ( resp[bit] == 0 ){
+ if ( fillScalerHistos )
+ nDeadGlobal++;
+ }
+ else
+ FillRawsData(AliMUONQAIndices::kTriggerGlobalOutput, bit, resp[bit]);
+ } // loop on bits
+
+ //for (Int_t Bit=0; Bit<32; Bit++){
+ //fTriggerInputGlobalDataLPt[Bit/4][Bit%4]=((darcHeader->GetGlobalInput(0)>>Bit)&1);
+ //fTriggerInputGlobalDataLPt[Bit/4+8][Bit%4]=((darcHeader->GetGlobalInput(1)>>Bit)&1);
+ //fTriggerInputGlobalDataHPt[Bit/4][Bit%4]=((darcHeader->GetGlobalInput(2)>>Bit)&1);
+ //fTriggerInputGlobalDataHPt[Bit/4+8][Bit%4]=((darcHeader->GetGlobalInput(3)>>Bit)&1);
+ //}
+
+ for (Int_t i=0; i<4; i++){
+ globalInput[i]=darcHeader->GetGlobalInput(i);
+ }