1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 //-----------------------------------------------------------------------------
19 /// \class AliMUONCheck
21 /// This class check the ESD tree, providing the matching with the trigger
22 /// response and designing useful plots (Pt, Y, ITS vertex, multiplicity).
23 /// Note that there is a special flag to turn on for pdc06 production.
24 /// It also checks the TR tree giving hit densities on the two first and
25 /// last planes of the spectrometer as well as the time of flight on these planes.
26 /// MUONkine() provides event stack and check if the event are generated with
27 /// at least one muon and two muons (for PDC06).
28 /// DumpDigit() as a replacement of the function from MUONCheck.C macro.
30 /// \author Frederic Yermia, INFN Torino
31 //-----------------------------------------------------------------------------
33 #include "AliMUONCheck.h"
34 #include "AliMUONConstants.h"
35 #include "AliMUONMCDataInterface.h"
36 #include "AliMUONDataInterface.h"
38 #include "AliMpSegmentation.h"
39 #include "AliMpVSegmentation.h"
40 #include "AliMpDEManager.h"
42 #include "AliMUONVDigitStore.h"
44 #include "AliRunLoader.h"
45 #include "AliLoader.h"
47 #include "AliTrackReference.h"
48 #include "AliTracker.h"
49 #include "AliESDEvent.h"
50 #include "AliESDMuonTrack.h"
51 #include "AliESDVertex.h"
57 #include <TLorentzVector.h>
60 #include <TParticle.h>
63 ClassImp(AliMUONCheck)
66 const TString AliMUONCheck::fgkDefaultOutFileName = "output.txt"; //!< default output file name
68 AliMUONCheck::AliMUONCheck(const char* galiceFile, const char* esdFile,Int_t firstEvent, Int_t lastEvent,const char* outDir)
70 fFileName(galiceFile),
72 fesdFileName(esdFile),
74 fOutFileName(fgkDefaultOutFileName),
75 fFirstEvent(firstEvent),
81 //_____________________________________________________________________________
82 AliMUONCheck::AliMUONCheck(const char* galiceFile, const char* galiceFileSim,
83 const char* esdFile,Int_t firstEvent, Int_t lastEvent,
86 fFileName(galiceFile),
87 fFileNameSim(galiceFileSim),
88 fesdFileName(esdFile),
90 fOutFileName(fgkDefaultOutFileName),
91 fFirstEvent(firstEvent),
97 //_____________________________________________________________________________
98 AliMUONCheck::~AliMUONCheck()
103 //_____________________________________________________________________________
105 AliMUONCheck::CheckESD(Bool_t pdc06TriggerResponse)
110 TH1F * fhMUONVertex ; //!
111 TH1F * fhMUONMult ; //!
114 fhMUONVertex = new TH1F("hMUONVertex","ITS Vertex" ,100, -25., 25.);
115 fhMUONMult = new TH1F("hMUONMult" ,"Multiplicity of ESD tracks",10, -0.5, 9.5);
117 TH1F *hY = new TH1F("hY","Rapidity",100,-5.,-1.);
118 TH1F *hPt = new TH1F("hPt","Pt",100, 0.,20.);
120 // ------------->open the ESD file
121 TFile* esdFile = TFile::Open(fesdFileName.Data());
123 if (!esdFile || !esdFile->IsOpen())
125 AliError(Form("Error opening %s file \n",fesdFileName.Data()));
129 Int_t fSPLowpt=0 ; //!
130 Int_t fSPHighpt=0 ; //!
131 Int_t fSPAllpt=0 ; //!
132 Int_t fSMLowpt=0 ; //!
133 Int_t fSMHighpt =0 ; //!
134 Int_t fSMAllpt=0 ; //!
135 Int_t fSULowpt=0 ; //!
136 Int_t fSUHighpt=0 ; //!
137 Int_t fSUAllpt=0 ; //!
138 Int_t fUSLowpt=0 ; //!
139 Int_t fUSHighpt=0 ; //!
140 Int_t fUSAllpt=0 ; //!
141 Int_t fLSLowpt=0 ; //!
142 Int_t fLSHighpt=0 ; //!
143 Int_t fLSAllpt=0 ; //!
145 Int_t fSLowpt=0 ; //!
146 Int_t fSHighpt=0 ; //!
148 Int_t fnTrackTrig=0 ; //!
149 Int_t ftracktot=0 ; //!
150 Int_t effMatch=0 ; //!
153 Float_t muonMass = 0.105658389;
154 Double_t thetaX, thetaY, pYZ;
155 Double_t fPxRec1, fPyRec1, fPzRec1, fE1;
158 AliESDEvent* fESD = new AliESDEvent();
159 TTree* tree = (TTree*) esdFile->Get("esdTree");
162 Error("CheckESD", "no ESD tree found");
163 AliError(Form("no ESD tree found"));
166 fESD->ReadFromTree(tree);
168 Int_t fnevents = tree->GetEntries();
169 Int_t endOfLoop = fLastEvent+1;
171 if ( fLastEvent == -1 ) endOfLoop = fnevents;
175 for (ievent = fFirstEvent; ievent < endOfLoop; ++ievent )
178 if (tree->GetEvent(ievent) <= 0)
180 Error("CheckESD", "no ESD object found for event %d", ievent);
183 AliESDVertex* vertex = (AliESDVertex*) fESD->GetVertex();
185 Double_t zVertex = 0. ;
186 if (vertex) zVertex = vertex->GetZv();
188 Int_t nTracks = (Int_t)fESD->GetNumberOfMuonTracks() ;
189 ULong64_t trigword=fESD->GetTriggerMask();
191 if(pdc06TriggerResponse)
193 if (trigword & 0x01) {
197 if (trigword & 0x02){
200 if (trigword & 0x04){
203 if (trigword & 0x08){
206 if (trigword & 0x010){
209 if (trigword & 0x020){
212 if (trigword & 0x040){
215 if (trigword & 0x080){
218 if (trigword & 0x100){
221 if (trigword & 0x200){
225 if (trigword & 0x400){
228 if (trigword & 0x800){
231 if (trigword & 0x1000){
235 if (trigword & 0x2000){
239 if (trigword & 0x4000){
242 }// if pdc06TriggerResponse
244 if (trigword & 0x01) {
248 if (trigword & 0x02){
251 if (trigword & 0x04){
254 if (trigword & 0x08){
257 if (trigword & 0x010){
260 if (trigword & 0x020){
267 for ( Int_t iTrack1 = 0; iTrack1<nTracks; ++iTrack1 )
269 AliESDMuonTrack* muonTrack = fESD->GetMuonTrack(iTrack1);
271 // skip fake tracks (ghosts)
272 if (!muonTrack->ContainTrackerData()) continue;
276 thetaX = muonTrack->GetThetaX();
277 thetaY = muonTrack->GetThetaY();
278 pYZ = 1./TMath::Abs(muonTrack->GetInverseBendingMomentum());
280 fPzRec1 = - pYZ / TMath::Sqrt(1.0 + TMath::Tan(thetaY)*TMath::Tan(thetaY));
281 fPxRec1 = fPzRec1 * TMath::Tan(thetaX);
282 fPyRec1 = fPzRec1 * TMath::Tan(thetaY);
283 fZ1 = Int_t(TMath::Sign(1.,muonTrack->GetInverseBendingMomentum()));
284 fE1 = TMath::Sqrt(muonMass * muonMass + fPxRec1 * fPxRec1 + fPyRec1 * fPyRec1 + fPzRec1 * fPzRec1);
285 fV1.SetPxPyPzE(fPxRec1, fPyRec1, fPzRec1, fE1);
286 // -----------> transverse momentum
287 Float_t pt1 = fV1.Pt();
288 // ----------->Rapidity
289 Float_t y1 = fV1.Rapidity();
291 if(muonTrack->GetMatchTrigger())
300 fhMUONVertex->Fill(zVertex) ;
301 fhMUONMult->Fill(Float_t(nTracks)) ;
303 } // loop over events
305 AliInfo(Form("Terminate %s:", GetName())) ;
307 effMatch=100*fnTrackTrig/ftracktot;
309 if(pdc06TriggerResponse)
311 printf("=================================================================\n") ;
312 printf("================ %s ESD SUMMARY ==============\n", GetName()) ;
314 printf(" Total number of processed events %d \n", nev) ;
317 printf("Table 1: \n") ;
318 printf(" Global Trigger output Low pt High pt All\n") ;
319 printf(" number of Single Plus :\t");
320 printf("%i\t%i\t%i\t", fSPLowpt, fSPHighpt, fSPAllpt) ;
322 printf(" number of Single Minus :\t");
323 printf("%i\t%i\t%i\t", fSMLowpt, fSMHighpt, fSMAllpt) ;
325 printf(" number of Single Undefined :\t");
326 printf("%i\t%i\t%i\t", fSULowpt, fSUHighpt, fSUAllpt) ;
328 printf(" number of UnlikeSign pair :\t");
329 printf("%i\t%i\t%i\t", fUSLowpt, fUSHighpt, fUSAllpt) ;
331 printf(" number of LikeSign pair :\t");
332 printf("%i\t%i\t%i\t", fLSLowpt, fLSHighpt, fLSAllpt) ;
334 printf("===================================================\n") ;
336 printf("matching efficiency with the trigger for single tracks = %2d %% \n", effMatch);
337 printf("================================================================\n") ; printf("\n") ;
339 }//if(pdc06TriggerResponse)
341 gSystem->cd(fkOutDir);
343 FILE *outtxt=fopen(fOutFileName.Data(),"a");
345 if(pdc06TriggerResponse){
346 fprintf(outtxt," \n");
347 fprintf(outtxt,"===================================================\n");
348 fprintf(outtxt,"================ ESD SUMMARY ==============\n");
349 fprintf(outtxt," \n");
350 fprintf(outtxt," Total number of processed events %d \n", nev);
351 fprintf(outtxt,"\n");
352 fprintf(outtxt,"\n");
353 fprintf(outtxt,"Table 1: \n");
354 fprintf(outtxt," Global Trigger output Low pt High pt All\n");
355 fprintf(outtxt," number of Single Plus :\t");
356 fprintf(outtxt,"%i\t%i\t%i\t",fSPLowpt,fSPHighpt,fSPAllpt);
357 fprintf(outtxt,"\n");
358 fprintf(outtxt," number of Single Minus :\t");
359 fprintf(outtxt,"%i\t%i\t%i\t",fSMLowpt,fSMHighpt,fSMAllpt);
360 fprintf(outtxt,"\n");
361 fprintf(outtxt," number of Single Undefined :\t");
362 fprintf(outtxt,"%i\t%i\t%i\t",fSULowpt,fSUHighpt,fSUAllpt);
363 fprintf(outtxt,"\n");
364 fprintf(outtxt," number of UnlikeSign pair :\t");
365 fprintf(outtxt,"%i\t%i\t%i\t",fUSLowpt,fUSHighpt,fUSAllpt);
366 fprintf(outtxt,"\n");
367 fprintf(outtxt," number of LikeSign pair :\t");
368 fprintf(outtxt,"%i\t%i\t%i\t",fLSLowpt,fLSHighpt, fLSAllpt);
369 fprintf(outtxt,"\n");
370 fprintf(outtxt,"===================================================\n");
371 fprintf(outtxt,"\n");
372 fprintf(outtxt,"matching efficiency with the trigger for single tracks = %2d %% \n", effMatch);
373 }//if(pdc06TriggerResponse)
377 fprintf(outtxt," \n");
378 fprintf(outtxt,"===================================================\n");
379 fprintf(outtxt,"================ ESD SUMMARY ==============\n");
380 fprintf(outtxt," \n");
381 fprintf(outtxt," Total number of processed events %d \n", nev);
382 fprintf(outtxt,"\n");
383 fprintf(outtxt,"\n");
384 fprintf(outtxt,"Table 1: \n");
385 fprintf(outtxt," Global Trigger output Low pt High pt \n");
386 fprintf(outtxt," number of Single :\t");
387 fprintf(outtxt,"%i\t%i\t",fSLowpt,fSHighpt);
388 fprintf(outtxt,"\n");
389 fprintf(outtxt," number of UnlikeSign pair :\t");
390 fprintf(outtxt,"%i\t%i\t",fUSLowpt,fUSHighpt);
391 fprintf(outtxt,"\n");
392 fprintf(outtxt," number of LikeSign pair :\t");
393 fprintf(outtxt,"%i\t%i\t",fLSLowpt,fLSHighpt);
394 fprintf(outtxt,"\n");
395 fprintf(outtxt,"===================================================\n");
396 fprintf(outtxt,"\n");
397 fprintf(outtxt,"matching efficiency with the trigger for single tracks = %2d %% \n", effMatch);
401 TCanvas * c1 = new TCanvas("c1", "ESD", 400, 10, 600, 700) ;
404 fhMUONVertex->Draw() ;
407 c1->Print("VertexAndMul.eps") ;
408 TCanvas *c2 = new TCanvas("c2","ESD",400,10,600,700);
414 c2->Print("YandPt.eps") ;
417 //_____________________________________________________________________________
419 AliMUONCheck::CheckKine()
423 AliMUONMCDataInterface diSim(fFileNameSim.Data());
424 if (!diSim.IsValid()) return;
426 Int_t fnevents = diSim.NumberOfEvents();
428 Int_t endOfLoop = fLastEvent+1;
430 if ( fLastEvent == -1 ) endOfLoop = fnevents;
437 for ( Int_t ievent = fFirstEvent; ievent < endOfLoop; ++ievent )
442 AliStack* stack = diSim.Stack(ievent);
443 Int_t npa = stack->GetNprimary();
444 Int_t npb = stack->GetNtrack();
445 printf("Primary particles %i \n",npa);
446 printf("Sec particles %i \n",npb);
447 printf("=================================================================\n") ;
448 printf("Primary particles listing: \n");
449 printf("=================================================================\n") ;
450 for (Int_t i=0; i<npa; ++i)
452 TParticle *p = stack->Particle(i);
454 Int_t pdg=p->GetPdgCode();
461 printf("=================================================================\n") ;
462 printf("=================================================================\n") ;
464 printf("Secondaries particles listing: \n");
465 printf("=================================================================\n") ;
466 for (Int_t i=npa; i<npb; ++i)
468 stack->Particle(i)->Print("");
471 printf("=================================================================\n") ;
472 printf(">>> Event %d, Number of primary particles is %d \n",ievent, npa);
473 printf(">>> Event %d, Number of secondary articles is %d \n",ievent, npb-npa);
474 printf("=================================================================\n");
477 printf(">>> Okay!!! Event %d with at least one muon on primary stack! \n",ievent);
483 printf(">>> Warning!!! Event %d without muon on primary stack! \n",ievent);
489 printf(">>> Okay!!! Event %d with at least two muons on primary stack! \n",ievent);
492 printf("=================================================================\n");
497 printf("=================================================================\n") ;
498 printf(" Total number of processed events %d \n", nev) ;
503 printf("---> WARNING!!! <---\n");
504 printf(" %i events without muon on primary stack \n",nmu);
509 printf("---> OKAY!!! <---\n");
510 printf(" %i events generated with at least one muon on primary stack \n",nonemu);
515 printf("---> OKAY!!! <---\n");
516 printf(" %i events generated with at least two muons on primary stack \n",ndimu);
520 printf("*** Leaving MuonKine() *** \n");
521 printf("**************************************************************** \n");
523 gSystem->cd(fkOutDir);
524 FILE *outtxt=fopen(fOutFileName.Data(),"a");
525 fprintf(outtxt," \n");
526 fprintf(outtxt,"=================================================================\n");
527 fprintf(outtxt,"================ MUONkine SUMMARY ================\n");
528 fprintf(outtxt,"\n");
529 fprintf(outtxt,"=================================================================\n");
530 fprintf(outtxt," Total number of processed events %d \n", nev) ;
531 fprintf(outtxt," \n");
535 fprintf(outtxt," ---> WARNING!!! <--- \n");
536 fprintf(outtxt," %i events without muon on primary stack \n",nmu);
541 fprintf(outtxt," ---> OKAY!!! <--- \n");
542 fprintf(outtxt," %i events generated with at least one muon on primary stack \n",nonemu);
547 fprintf(outtxt," ---> OKAY!!! <--- \n");
548 fprintf(outtxt," %i events generated with at least two muons on primary stack \n",ndimu);
551 fprintf(outtxt," \n") ;
552 fprintf(outtxt,"*** Leaving MuonKine() *** \n");
553 fprintf(outtxt,"**************************************************************** \n");
557 //_____________________________________________________________________________
559 AliMUONCheck::CheckTrackRef()
561 /// Check TrackRef files
563 AliMUONMCDataInterface diSim(fFileNameSim.Data());
564 if ( !diSim.IsValid() ) return;
566 Int_t flag11=0,flag12=0,flag13=0,flag14=0;
568 TH1F *tof01= new TH1F("tof01","TOF for first tracking plane",100,0.,100);
569 tof01->SetXTitle("tof (ns)");
570 TH1F *tof14= new TH1F("tof14","TOF for MT22",100,0.,100);
571 tof14->SetXTitle("tof (ns)");
574 hitDensity[0] = new TH1F("TR_dhits01","",30,0,300);
575 hitDensity[0]->SetFillColor(3);
576 hitDensity[0]->SetXTitle("R (cm)");
577 hitDensity[1] = new TH1F("TR_dhits10","",30,0,300);
578 hitDensity[1]->SetFillColor(3);
579 hitDensity[1]->SetXTitle("R (cm)");
580 hitDensity[2] = new TH1F("TR_dhits11","",30,0,300);
581 hitDensity[2]->SetFillColor(3);
582 hitDensity[2]->SetXTitle("R (cm)");
583 hitDensity[3] = new TH1F("TR_dhits14","",30,0,300);
584 hitDensity[3]->SetFillColor(3);
585 hitDensity[3]->SetXTitle("R (cm)");
587 Int_t fnevents = diSim.NumberOfEvents();
589 Int_t endOfLoop = fLastEvent+1;
591 if ( fLastEvent == -1 ) endOfLoop = fnevents;
594 Int_t ntot=fLastEvent+1-fFirstEvent;
596 for ( Int_t ievent = fFirstEvent; ievent < endOfLoop; ++ievent )
601 Int_t nentries = diSim.NumberOfTrackRefs(ievent);
603 for ( Int_t l=0; l<nentries; ++l )
605 TClonesArray* trackRefs = diSim.TrackRefs(ievent,l);
606 if (!trackRefs) continue;
608 Int_t nnn = trackRefs->GetEntriesFast();
610 for ( Int_t k=0; k<nnn; ++k )
612 AliTrackReference *tref = static_cast<AliTrackReference*>(trackRefs->UncheckedAt(k));
613 Int_t label = tref->GetTrack();
614 Float_t x = tref->X(); // x-pos of hit
615 Float_t y = tref->Y(); // y-pos
616 Float_t z = tref->Z();
618 Float_t r=TMath::Sqrt(x*x+y*y);
619 Float_t time = tref->GetTime();
621 Float_t wgt=1/(2*10*TMath::Pi()*r)/(ntot);
634 if (z<=-521&& z>=-531&&flag11==0){
636 hitDensity[0]->Fill(r,wgt);
637 tof01->Fill(1000000000*time,1);
641 if (z<=-1432&&z>=-1442&&flag12==0){
643 hitDensity[1]->Fill(r,wgt);
647 if (z<=-1598&& z>=-1608&&flag13==0){
649 hitDensity[2]->Fill(r,wgt);
653 if(z<=-1715&&z>=-1725&&flag14==0){
655 hitDensity[3]->Fill(r,wgt);
656 tof14->Fill(1000000000*time,1);
667 gSystem->cd(fkOutDir);
668 TCanvas *c6 = new TCanvas("c6","TOF",400,10,600,700);
675 c6->Print("tof_on_trigger.ps");
677 TCanvas *c5 = new TCanvas("c5","TRef:Hits Density",400,10,600,700);
680 hitDensity[0]->Draw();
682 hitDensity[1]->Draw();
684 hitDensity[2]->Draw();
686 hitDensity[3]->Draw();
687 c5->Print("TR_Hit_densities.ps");
688 printf("=================================================================\n") ;
689 printf("================ %s Tref SUMMARY ==============\n", GetName()) ;
691 printf(" Total number of processed events %d \n", nev) ;
692 printf("*** Leaving TRef() *** \n");
693 printf("*************************************************** \n");
696 //_____________________________________________________________________________
698 AliMUONCheck::CheckOccupancy(Bool_t perDetEle) const
700 /// Check occupancy for the first event selected
702 Int_t dEoccupancyBending[14][26];
703 Int_t dEoccupancyNonBending[14][26];
704 Int_t cHoccupancyBending[14];
705 Int_t cHoccupancyNonBending[14];
706 Int_t totaloccupancyBending =0;
707 Int_t totaloccupancyNonBending =0;
709 Int_t dEchannelsBending[14][26];
710 Int_t dEchannelsNonBending[14][26];
711 Int_t cHchannelsBending[14];
712 Int_t cHchannelsNonBending[14];
713 Int_t totalchannelsBending =0;
714 Int_t totalchannelsNonBending =0;
716 Int_t nchambers = AliMUONConstants::NCh();
718 AliMUONDataInterface di(fFileNameSim);
720 AliMUONVDigitStore* digitStore = di.DigitStore(fFirstEvent);
723 for (Int_t ichamber=0; ichamber<nchambers; ++ichamber)
725 cHchannelsBending[ichamber]=0;
726 cHchannelsNonBending[ichamber]=0;
727 cHoccupancyBending[ichamber]=0;
728 cHoccupancyNonBending[ichamber]=0;
730 for (Int_t idetele=0; idetele<26; idetele++)
732 Int_t detele = 100*(ichamber +1)+idetele;
734 if ( AliMpDEManager::IsValidDetElemId(detele) )
738 const AliMpVSegmentation* segbend = AliMpSegmentation::Instance()
739 ->GetMpSegmentation(detele, AliMp::kCath0);
740 const AliMpVSegmentation* segnonbend = AliMpSegmentation::Instance()
741 ->GetMpSegmentation(detele, AliMp::kCath1);
743 if (AliMpDEManager::GetPlaneType(detele, AliMp::kCath0) != AliMp::kBendingPlane )
745 const AliMpVSegmentation* tmp = segbend;
746 segbend = segnonbend;
751 Int_t nchannels = segbend->NofPads();
752 Int_t ndigits = digitStore->GetSize(detele,cathode);
753 dEchannelsBending[ichamber][idetele] = nchannels;
754 dEoccupancyBending[ichamber][idetele] = ndigits;
755 cHchannelsBending[ichamber] += nchannels;
756 cHoccupancyBending[ichamber] += ndigits;
757 totalchannelsBending += nchannels;
758 totaloccupancyBending += ndigits;
760 nchannels = segnonbend->NofPads();
761 ndigits = digitStore->GetSize(detele,1-cathode);
763 dEchannelsNonBending[ichamber][idetele] = nchannels;
764 dEoccupancyNonBending[ichamber][idetele] = ndigits;
765 cHchannelsNonBending[ichamber] += nchannels;
766 cHoccupancyNonBending[ichamber] += ndigits;
767 totalchannelsNonBending += nchannels;
768 totaloccupancyNonBending += ndigits;
772 printf(">>> Detection element %4d has %5d channels in bending and %5d channels in nonbending \n",
773 detele, dEchannelsBending[ichamber][idetele], dEchannelsNonBending[ichamber][idetele] );
776 printf(">>> Chamber %2d has %6d channels in bending and %6d channels in nonbending \n",
777 ichamber+1, cHchannelsBending[ichamber], cHchannelsNonBending[ichamber]);
779 printf(">>Spectrometer has %7d channels in bending and %7d channels in nonbending \n",
780 totalchannelsBending, totalchannelsNonBending);
784 for ( Int_t ichamber = 0; ichamber < nchambers; ++ichamber )
786 printf(">>> Chamber %2d nChannels Bending %5d nChannels NonBending %5d \n",
788 cHoccupancyBending[ichamber],
789 cHoccupancyNonBending[ichamber]);
790 printf(">>> Chamber %2d Occupancy Bending %5.2f %% Occupancy NonBending %5.2f %% \n",
792 100.*((Float_t) cHoccupancyBending[ichamber])/((Float_t) cHchannelsBending[ichamber]),
793 100.*((Float_t) cHoccupancyNonBending[ichamber])/((Float_t) cHchannelsBending[ichamber]) );
797 for(Int_t idetele=0; idetele<26; idetele++)
799 Int_t detele = idetele + 100*(ichamber+1);
800 if ( AliMpDEManager::IsValidDetElemId(detele) )
802 printf(">>> DetEle %4d nChannels Bending %5d nChannels NonBending %5d \n",
803 idetele+100*(ichamber+1),
804 dEoccupancyBending[ichamber][idetele],
805 dEoccupancyNonBending[ichamber][idetele]);
806 printf(">>> DetEle %4d Occupancy Bending %5.2f %% Occupancy NonBending %5.2f %% \n",
807 idetele+100*(ichamber+1),
808 100.*((Float_t) dEoccupancyBending[ichamber][idetele])/((Float_t) dEchannelsBending[ichamber][idetele]),
809 100.*((Float_t) dEoccupancyNonBending[ichamber][idetele])/((Float_t) dEchannelsBending[ichamber][idetele]));
815 printf(">>> Muon Spectrometer Occupancy Bending %5.2f %% Occupancy NonBending %5.2f %% \n",
816 100.*((Float_t) totaloccupancyBending)/((Float_t) totalchannelsBending),
817 100.*((Float_t) totaloccupancyNonBending)/((Float_t) totalchannelsNonBending) );
821 //_____________________________________________________________________________
822 void AliMUONCheck::SetEventsToCheck(Int_t firstEvent, Int_t lastEvent)
824 /// Set first and last event number to check
826 fFirstEvent = firstEvent;
827 fLastEvent = lastEvent;