Ignore:
Timestamp:
05/21/04 17:28:02 (21 years ago)
Author:
rico
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtemp/mifae/macros/alpha.C

    r4094 r4117  
    1313{   
    1414    // constants
    15     const Int_t nbins = 18;
     15    const Int_t nbins = 9;
    1616    TString psname("alphaMrk.gif");
    1717    // general settings
     
    3636   
    3737    // 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");
    3939
    4040    TChain* toff= new TChain("Parameters");
    4141
    4242    // 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");
    4444   
    4545    TCanvas *c1 = new TCanvas("c1","c1",800,500);
     
    5454    ton->SetAlias("event","MRawEvtHeader.fDAQEvtNumber");
    5555    ton->SetAlias("alpha","abs(MHillasSrc.fAlpha)");
     56    ton->SetAlias("leakage","MNewImagePar.fInnerLeakage1");
    5657   
    5758    toff->SetAlias("length","MHillas.fLength*0.6/189");
     
    6263    toff->SetAlias("event","MRawEvtHeader.fDAQEvtNumber");
    6364    toff->SetAlias("alpha","abs(MHillasSrc.fAlpha)");
    64        
     65    toff->SetAlias("leakage","MNewImagePar.fInnerLeakage1");
     66
    6567    // define  cut(s)
    66 //    const char* eventcut="event%3==0 &&";
     68//    const char* eventcut="event%4==0 &&";
    6769    const char* eventcut="";
    6870    const char varcut[512];
    6971    //    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 && length>%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);
    7173//    sprintf(varcut,"size>%f && dist>0.2 && dist<0.8 && length<0.21 && width<0.125",cutsize,upcutsize,lengthcut,widthcut);
    7274//    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.