+/* HEAD11Jul06 */
+//////////////////////////////////////////////////////////////////////////
+// //
+// Access interface to the trees with digits, clusters, tracks //
+// //
+//////////////////////////////////////////////////////////////////////////
+
#include <TColor.h>
#include "MUONDigitsInfo.h"
ClassImp(MUONDigitsInfo)
+/**************************************************************************/
+MUONDigitsInfo::MUONDigitsInfo(const MUONDigitsInfo &dinfo) :
+ TObject(dinfo),
+ fDTree(dinfo.fDTree),
+ fRTree(dinfo.fRTree),
+ fTTree(dinfo.fTTree)
+{
+ //
+ // Copy constructor
+ //
+
+}
+
+/**************************************************************************/
+MUONDigitsInfo& MUONDigitsInfo::operator=(const MUONDigitsInfo &dinfo)
+{
+ //
+ // Assignment operator
+ //
+
+ if (this != &dinfo) {
+
+ fDTree = dinfo.fDTree;
+ fRTree = dinfo.fDTree;
+ fTTree = dinfo.fDTree;
+
+ }
+
+ return *this;
+
+}
+
/**************************************************************************/
void MUONDigitsInfo::SetDTree(TTree* tree)
{
-
+ //
+ // Tree with digits
+ //
+
static const Exc_t eH("MUONDigitsInfo::SetDTree ");
fDTree = tree;
/**************************************************************************/
void MUONDigitsInfo::SetRTree(TTree* tree)
{
-
+ //
+ // Tree with reconstructed points (clusters)
+ //
+
static const Exc_t eH("MUONDigitsInfo::SetRTree ");
fRTree = tree;
/**************************************************************************/
void MUONDigitsInfo::SetTTree(TTree* tree)
{
-
+ //
+ // Tree with reconstructed tracks (tracking chambers)
+ //
+
static const Exc_t eH("MUONDigitsInfo::SetTTree ");
fTTree = tree;
/**************************************************************************/
TClonesArray* MUONDigitsInfo::GetDigits(Int_t chamber)
{
+ //
+ // Return tree with digits
+ //
Char_t branchname[30];
/**************************************************************************/
TClonesArray* MUONDigitsInfo::GetClusters(Int_t chamber)
{
+ //
+ // Return tree with clusters
+ //
if (chamber > 10) return 0;
/**************************************************************************/
TClonesArray* MUONDigitsInfo::GetTracks()
{
+ //
+ // Return tree with tracks
+ //
Char_t branchname[30];
/*****************************************************************************/
void MUONDigitsInfo::CreateColors()
{
-// Create the colors palette used to display clusters
-
- Int_t k,i;
- Int_t color;
- Float_t r,g,b;
+ //
+ // Create the colors palette used to display clusters
+ //
+
+ Int_t k,i;
+ Int_t color;
+ Float_t r,g,b;
+
+ for (k=1;k<=5;k++) {
- for (k=1;k<=5;k++) {
-
- switch(k) {
- case 1:
- for (i=1;i<=5;i++) {
- r=1.;
- g=i*0.2;
- b=0.;
- color=i;
- color=260+23-color;
- new TColor(color,r,g,b);
- }
- break;
- case 2:
- for (i=1;i<=4;i++) {
- r=1.1-i*0.2;
- g=1.;
- b=0.;
- color=i+5;
- color=260+23-color;
- new TColor(color,r,g,b);
- }
- break;
- case 3:
- for (i=1;i<=4;i++) {
- r=0.;
- g=1.;
- b=i*0.2+0.2;
- color=i+9;
- color=260+23-color;
- new TColor(color,r,g,b);
- }
- break;
- case 4:
- for (i=1;i<=4;i++) {
- r=0.;
- g=1.1-i*0.2;
- b=1.;
- color=i+13;
- color=260+23-color;
- new TColor(color,r,g,b);
- }
- break;
- case 5:
- for (i=1;i<=5;i++) {
- r=i*0.2;
- g=0.;
- b=1.;
- color=i+17;
- color=260+23-color;
- new TColor(color,r,g,b);
- }
- break;
- }
-
+ switch(k) {
+ case 1:
+ for (i=1;i<=5;i++) {
+ r=1.;
+ g=i*0.2;
+ b=0.;
+ color=i;
+ color=260+23-color;
+ new TColor(color,r,g,b);
+ }
+ break;
+ case 2:
+ for (i=1;i<=4;i++) {
+ r=1.1-i*0.2;
+ g=1.;
+ b=0.;
+ color=i+5;
+ color=260+23-color;
+ new TColor(color,r,g,b);
+ }
+ break;
+ case 3:
+ for (i=1;i<=4;i++) {
+ r=0.;
+ g=1.;
+ b=i*0.2+0.2;
+ color=i+9;
+ color=260+23-color;
+ new TColor(color,r,g,b);
+ }
+ break;
+ case 4:
+ for (i=1;i<=4;i++) {
+ r=0.;
+ g=1.1-i*0.2;
+ b=1.;
+ color=i+13;
+ color=260+23-color;
+ new TColor(color,r,g,b);
+ }
+ break;
+ case 5:
+ for (i=1;i<=5;i++) {
+ r=i*0.2;
+ g=0.;
+ b=1.;
+ color=i+17;
+ color=260+23-color;
+ new TColor(color,r,g,b);
+ }
+ break;
}
-
+
+ }
+
}