Changeset 4117 for trunk/MagicSoft/Mars/mtemp/mifae/macros
- Timestamp:
- 05/21/04 17:28:02 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mifae/macros/alpha.C
r4094 r4117 13 13 { 14 14 // constants 15 const Int_t nbins = 18;15 const Int_t nbins = 9; 16 16 TString psname("alphaMrk.gif"); 17 17 // general settings … … 36 36 37 37 // ON data 38 ton->Add("/mnt/users/jrico/magic/mars/mars/mtemp/mifae/ programs/srcPosPrueba.root");38 ton->Add("/mnt/users/jrico/magic/mars/mars/mtemp/mifae/hillas/crab20040215OnRotateCalA-D.root"); 39 39 40 40 TChain* toff= new TChain("Parameters"); 41 41 42 42 // OFF data 43 toff->Add("/mnt/users/jrico/magic/mars/mars/mtemp/mifae/ programs/srcPosOffPrueba.root");43 toff->Add("/mnt/users/jrico/magic/mars/mars/mtemp/mifae/hillas/crab20040215OffRotateCalA-H.root"); 44 44 45 45 TCanvas *c1 = new TCanvas("c1","c1",800,500); … … 54 54 ton->SetAlias("event","MRawEvtHeader.fDAQEvtNumber"); 55 55 ton->SetAlias("alpha","abs(MHillasSrc.fAlpha)"); 56 ton->SetAlias("leakage","MNewImagePar.fInnerLeakage1"); 56 57 57 58 toff->SetAlias("length","MHillas.fLength*0.6/189"); … … 62 63 toff->SetAlias("event","MRawEvtHeader.fDAQEvtNumber"); 63 64 toff->SetAlias("alpha","abs(MHillasSrc.fAlpha)"); 64 65 toff->SetAlias("leakage","MNewImagePar.fInnerLeakage1"); 66 65 67 // define cut(s) 66 // const char* eventcut="event% 3==0 &&";68 // const char* eventcut="event%4==0 &&"; 67 69 const char* eventcut=""; 68 70 const char varcut[512]; 69 71 // sprintf(varcut,"size>%f && size<%f && length>%f &&length<%f && width>%f && width<%f",cutsize,upcutsize,lengthlowcut,lengthcut,widthlowcut,widthcut); 70 sprintf(varcut,"size>%f && size<%f && dist>0.2 && dist<1.1 && le ngth>%f &&length<%f && width>%f && width<%f",cutsize,upcutsize,lengthlowcut,lengthcut,widthlowcut,widthcut);72 sprintf(varcut,"size>%f && size<%f && dist>0.2 && dist<1.1 && leakage==0 && length>%f &&length<%f && width>%f && width<%f",cutsize,upcutsize,lengthlowcut,lengthcut,widthlowcut,widthcut); 71 73 // sprintf(varcut,"size>%f && dist>0.2 && dist<0.8 && length<0.21 && width<0.125",cutsize,upcutsize,lengthcut,widthcut); 72 74 // sprintf(varcut,"size>%f && size<%f && dist>0.2 && dist<0.8 && length<0.21 && width<0.125",cutsize,upcutsize);
Note:
See TracChangeset
for help on using the changeset viewer.