#include "CalDetDisplay.C"Go to the source code of this file.
Functions | |
| int | ShowEvent (int num, bool fshowme=true) |
| int | ShowQIE (int index) |
| void | Help () |
|
|
Definition at line 144 of file DrawDisplay.cxx. 00145 {
00146 cout<<"Start by using the command:"<<endl
00147 <<"> loon SetUpDisplay.C"<<endl
00148 <<"Any event can be displayed by doing:"<<endl
00149 <<"loon [1] ShowEvent(x)"<<endl;
00150 }
|
|
||||||||||||
|
Definition at line 5 of file DrawDisplay.cxx. References CDXTalkHitInfo::GetCharge(), CDTrackedHitInfo::GetCharge(), CDXTalkHitInfo::GetEnd(), CDTrackedHitInfo::GetEnd(), CDTruthHitInfo::GetMainParticle(), CDTruthHitInfo::GetPlane(), CDXTalkHitInfo::GetPlane(), CDTrackedHitInfo::GetPlane(), CDTruthHitInfo::GetStrip(), CDXTalkHitInfo::GetStrip(), CDTrackedHitInfo::GetStrip(), and CDTrackedHitInfo::GetTime(). Referenced by ShowQIE(). 00005 {
00006
00007 chain->GetEvent(num);
00008 cout << "Tree Entry: " << num << " (Snarl: " << snarl << ")" << endl;
00009 float event[60][48] = {0};
00010 float mcpart[60][48] = {0};
00011 float track[60][48] = {0};
00012 float xtalk[60][48] = {0};
00013 double trTime[60][48] = {0};
00014
00015 bool ND = false;
00016
00017 if(clonearray){
00018 TClonesArray &c = *clonearray;
00019 int clonesize = clonearray->GetEntries();
00020 int ind = 0;
00021 while(ind<clonesize) {
00022 CDTrackedHitInfo *cdthi = (CDTrackedHitInfo*) c[ind];
00023 event[cdthi->GetPlane()][(cdthi->GetEnd()-1)*24+
00024 cdthi->GetStrip()]=cdthi->GetCharge(digiType);
00025 track[cdthi->GetPlane()][(cdthi->GetEnd()-1)*24+
00026 cdthi->GetStrip()]=1;
00027
00028 trTime[cdthi->GetPlane()][(cdthi->GetEnd()-1)*24+cdthi->GetStrip()]
00029 = 1e9*(cdthi->GetTime() - cdti->GetAbsTime());// - 1.5625e-9*cdti->GetTriggerTime();
00030
00031 cout << cdthi->GetEnd() << " "
00032 << cdthi->GetPlane() << " "
00033 << cdthi->GetStrip() << " "
00034 << cdthi->GetTime() << " "
00035 << cdthi->GetTime() + cdti->GetAbsTime() - 1.5625e-9*cdti->GetTriggerTime() << endl;
00036 ind++;
00037 }
00038 }
00039
00040 if(clonearray_un){
00041 TClonesArray &unc = *clonearray_un;
00042 int clonesize = clonearray_un->GetEntries();
00043 int ind = 0;
00044 while(ind<clonesize) {
00045 CDTrackedHitInfo *cdthi = (CDTrackedHitInfo*) unc[ind];
00046 event[cdthi->GetPlane()][(cdthi->GetEnd()-1)*24+cdthi->GetStrip()]
00047 =cdthi->GetCharge(digiType);
00048
00049 trTime[cdthi->GetPlane()][(cdthi->GetEnd()-1)*24+cdthi->GetStrip()]
00050 = 1e9*(cdthi->GetTime() - cdti->GetAbsTime());
00051 ind++;
00052 }
00053 }
00054
00055 if(clonearray_x){
00056 TClonesArray &xc = *clonearray_x;
00057 int clonesize = clonearray_x->GetEntries();
00058 int ind = 0;
00059 while(ind<clonesize) {
00060 CDXTalkHitInfo *cdxhi = (CDXTalkHitInfo*) xc[ind];
00061 int xdigiType = 1;
00062 if(digiType==1) xdigiType=3;
00063 event[cdxhi->GetPlane()][(cdxhi->GetEnd()-1)*24+cdxhi->GetStrip()]
00064 = cdxhi->GetCharge(digiType);
00065 xtalk[cdxhi->GetPlane()][(cdxhi->GetEnd()-1)*24+cdxhi->GetStrip()]
00066 =1;
00067
00068 trTime[cdthi->GetPlane()][(cdthi->GetEnd()-1)*24+cdthi->GetStrip()]
00069 = 1e9*(cdthi->GetTime() - cdti->GetAbsTime());
00070 ind++;
00071 }
00072 }
00073
00074 if(clonearray_mc){
00075 TClonesArray &mcc = *clonearray_mc;
00076 int clonesize = clonearray_mc->GetEntries();
00077 int ind = 0;
00078 while(ind<clonesize) {
00079 CDTruthHitInfo *cdtru = (CDTruthHitInfo*) mcc[ind];
00080 mcpart[cdtru->GetPlane()][cdtru->GetStrip()]=cdtru->GetMainParticle();
00081 mcpart[cdtru->GetPlane()][cdtru->GetStrip()+24]=cdtru->GetMainParticle();
00082 ind++;
00083 }
00084 }
00085
00086 int ncol = 5;
00087 int col[5];
00088
00089 string colorScheme="jjh";
00090 if (colorScheme=="cbs"){
00091 col[0]=3;
00092 col[1]=7;
00093 col[2]=6;
00094 col[3]=2;
00095 col[4]=4;
00096 //col[5]=13;
00097 //col[6]=14;
00098 //col[7]=15;
00099 //col[8]=16;
00100 //col[9]=17;
00101 }
00102 else if (colorScheme=="jjh"){
00103 col[0]=5;//yellow
00104 col[1]=7;//turquoise
00105 col[2]=3;//green
00106 col[3]=6;//pink
00107 col[4]=2;//red
00108
00109 col[0]=3;//green
00110 col[1]=7;//turquoise
00111 col[2]=6;//pink
00112 col[3]=2;//red
00113 col[4]=1;//black
00114 }
00115 else{
00116 col[0]=3;//green
00117 col[1]=7;//turquoise
00118 col[2]=6;//pink
00119 col[3]=2;//red
00120 col[4]=4;//blue
00121 }
00122
00123 if(fshowme){
00124 Int_t thresh=0;
00125 EvDisplay(event,track,xtalk,mcpart,col,ncol,maxscale,thresh);
00126 TimeDisplay(trTime,track,xtalk);
00127 if(cdti->GetResult(0)==1 && cdti->GetResult(1)==1){
00128 cout << "Event Passed" << endl;
00129 }
00130 return 1;
00131 }
00132 return 0;
00133 }
|
|
|
Definition at line 137 of file DrawDisplay.cxx. References ShowEvent(). 00137 {
00138 while(!ShowEvent(index,false)) index++;
00139 return ++index;
00140 }
|
1.3.9.1