3 #include "MUONDigitsInfo.h"
5 #include <AliMUONDigit.h>
6 #include <AliMUONGlobalTrigger.h>
7 #include <AliMUONLocalTrigger.h>
10 using namespace Alieve;
13 ClassImp(MUONDigitsInfo)
15 /**************************************************************************/
16 void MUONDigitsInfo::SetDTree(TTree* tree)
19 static const Exc_t eH("MUONDigitsInfo::SetDTree ");
25 /**************************************************************************/
26 void MUONDigitsInfo::SetRTree(TTree* tree)
29 static const Exc_t eH("MUONDigitsInfo::SetRTree ");
35 /**************************************************************************/
36 void MUONDigitsInfo::SetTTree(TTree* tree)
39 static const Exc_t eH("MUONDigitsInfo::SetTTree ");
45 /**************************************************************************/
46 TClonesArray* MUONDigitsInfo::GetDigits(Int_t chamber)
49 Char_t branchname[30];
51 sprintf(branchname,"MUONDigits%d",chamber);
52 TClonesArray *digits = 0;
53 fDTree->SetBranchAddress(branchname,&digits);
54 fDTree->GetEntry(0); // load event 0
60 /**************************************************************************/
61 TClonesArray* MUONDigitsInfo::GetClusters(Int_t chamber)
64 if (chamber > 10) return 0;
66 Char_t branchname[30];
68 sprintf(branchname,"MUONRawClusters%d",chamber);
69 TClonesArray *clusters = 0;
70 fRTree->SetBranchAddress(branchname,&clusters);
71 fRTree->GetEntry(0); // load event 0
77 /**************************************************************************/
78 TClonesArray* MUONDigitsInfo::GetTracks()
81 Char_t branchname[30];
83 sprintf(branchname,"MUONTrack");
84 TClonesArray *tracks = 0;
85 fTTree->SetBranchAddress(branchname,&tracks);
86 fTTree->GetEntry(0); // load event 0
92 /*****************************************************************************/
93 void MUONDigitsInfo::CreateColors()
95 // Create the colors palette used to display clusters
111 new TColor(color,r,g,b);
121 new TColor(color,r,g,b);
131 new TColor(color,r,g,b);
141 new TColor(color,r,g,b);
151 new TColor(color,r,g,b);