MUST2 SAMURAI_2018 S3-LEB-LPC SUPERNEMO MUGAST EXPAND SCALP GALATRON HiCARI VELO
  MUGAST, Page 45 of 132  Not logged in MUGAST
New entries since:Thu Jan 1 01:00:00 1970
Status ExpNbr Date Author Type Category Target-Source Subject
Fixede744s Tue Apr 16 23:38:04 2019 Fairouz JaromirRUNSoftware Script to watch efficiency CATS and VAMOS offline hour by hour
do

lpcgrit

in directory
/home/mugast/analysis/nptool/Projects/MUGAST

root offline/root_vamos/run_xxx.root
.x macros/EffCheck_fhjm.C
Attachment 1: EffCheck_fhjm.C
void chkef( ULong64_t low, ULong64_t high,   ULong64_t n ){
  cout<<endl;
  cout<< "=========================================================\n" ;
  cout<<"i... HOUR: "<<n<<endl; //"     "<<low<<" "<<high<<endl;
  string sep = "----------------------------\n" ;



  TTree *t1 = (TTree*) gROOT->FindObject("AD");

  TH1F * hc = new TH1F("hc","hc",2000,0.1,50);
  TH1F * ht = new TH1F("ht","ht",2000,0.1,50);


  TString cond=  Form("(((RTS<<32)+(VTS<<16)+LTS)>=%lld)&&(((RTS<<32)+(VTS<<16)+LTS)<%lld)",low,high);
  TString condad=Form("&&( (((RTS<<32)+(VTS<<16)+LTS)>=%lld)&&(((RTS<<32)+(VTS<<16)+LTS)<%lld) )",low,high);


  // cout<<cond<<endl<<condad<<endl;



      cout << "Forward (condition by before)" << endl; 
  for(int i =0; i<1;i++)
    {
      t1->Draw("T_FPMW_HF_C:T_FPMW_CATS2_C",cond.Data(),"goff"); 
      long long a=AD->GetSelectedRows();

      t1->Draw("T_FPMW_HF_C:T_FPMW_CATS2_C",Form("T_FPMW_CATS2_C<1 && T_FPMW_HF_C>2 && %s",cond.Data() ),"goff");
      long long b=AD->GetSelectedRows();

	cout << "CATS lost efficiency with resect to VAMOS" << 100.*b/a  << "%" << endl;

    }

  cout << sep ;




      cout << "Forward (condition by before)" << endl; 
  for(int i =0; i<4;i++)
    {
      t1->Draw(Form("IC[%d]>>ht",i+1),cond.Data() ,"goff");
      t1->Draw(Form("IC[%d]>>hc",i+1),Form("IC[%d]>0.1 %s",i,condad.Data() ),"goff");
      cout << "IC " << i << " " << hc->Integral()/ht->Integral()*100. << "%"<< endl;

    }

  cout << sep ;


  cout << "Backward  (condition by after)" << endl; 

  for(int i =0; i<4;i++)
    {
      t1->Draw(Form("IC[%d]>>ht",i),cond.Data() ,"goff");
      t1->Draw(Form("IC[%d]>>hc",i),Form("IC[%d]>0.1 %s",i+1,  condad.Data() ),"goff");
      cout << "IC " << i+1 << " " << hc->Integral()/ht->Integral()*100. << "%"<< endl;

    }
cout << sep ;

 cout << "DC  (condition by IC[0])" << endl; 

  for(int i =0; i<4;i++)
    {
      t1->Draw(Form("IC[0]>>ht"),cond.Data(),"goff");
      t1->Draw(Form("IC[0]>>hc"),Form("EWIRE_%d>100 %s",i, condad.Data() ),"goff");
      cout << "DC WIRE " << i << " " << hc->Integral()/ht->Integral()*100. << "%"<< endl;

    }
cout << sep ;

cout << "DC X  (condition by IC[0])" << endl; 

  for(int i =0; i<4;i++)
    {
      t1->Draw(Form("IC[0]>>ht"),cond.Data(),"goff");
      t1->Draw(Form("IC[0]>>hc"),Form("DC%d_X>-1500  %s",i, condad.Data() ),"goff");
      cout << "DCX" << i << " " << hc->Integral()/ht->Integral()*100. << "%"<< endl;

    }

cout << sep ;


cout << "Xf  (condition by IC[0])" << endl; 

      t1->Draw(Form("IC[0]>>ht"),cond.Data() ,"goff");
      t1->Draw(Form("IC[0]>>hc"),Form("Xf>-1500 %s", condad.Data() ),"goff");
      cout << "Xf " << hc->Integral()/ht->Integral()*100. << "%"<< endl;


cout << sep ;


 delete hc;
 delete ht;
}
//==============================================================end





/*
ORIGINAL NAME but  now the original code for VAMOS eff is above
 */
void EffCheck_fhjm()
{

  ULong64_t hour;
  ULong64_t LTSmin=-1;
  ULong64_t LTSmax=-1;
  ULong64_t LTS,VTS,RTS, tmin,tmax,tmp;
 
  cout<< "============================================================\n" ;
  cout<<"          "<<gFile->GetName()<<endl;
  cout<< "============================================================\n" ;


  cout<<"Looking for min and max time stamp... very slow"<<endl;
  TTree *tree= (TTree*)gDirectory->Get("AD");
  tree->SetBranchAddress("LTS",&LTS);
  tree->SetBranchAddress("VTS",&VTS);
  tree->SetBranchAddress("RTS",&RTS);
  
  
 for (int i=1;i<tree->GetEntries();i++){
   tree->GetEntry(i);
   tmp=(RTS<<32)+(VTS<<16)+LTS;
   if ((LTS>0)&&(tmp>1e+14)){  //================== kill some low values?
     if ((LTSmin>tmp) || (LTSmin==-1)){
       LTSmin=tmp;
     }
     if ((LTSmax<tmp) || (LTSmax==-1)){
       LTSmax=tmp;
     }
   }
 }


 //tree->Draw("(RTS<<32)+(VTS<<16)+LTS>>h(10000)","","");
 //  Long64_t LTSmin=AD->GetV1()[0];
 //  AD->Draw("RTS<<32+VTS<<16+LTS","LTS>0","goff", 1, AD->GetEntries()-1 );
 //  Long64_t LTSmax=AD->GetV1()[0];
 cout<<"min    "<<LTSmin<<" "<<endl;
 cout<<"max    "<<LTSmax<<" "<< endl;
 cout<<"delta  "<<LTSmax-LTSmin<<endl;
 cout<<"delta  "<<(LTSmax-LTSmin)/100/1e+6/3600/282162*4.3<<" hours  EMPIRICAL RUN LENGHT"<<endl;
 hour=143567947269965277/6.0775;
 cout<<"1hour=="<<hour<<endl<<endl<<endl;
 //==========================================================================================
//   MAIN LOOP OVER TIME STEPS
 ULong64_t n=0;
 int hourstep=2;
 for (ULong64_t i=LTSmin; i<LTSmax; i+=hour*hourstep){
   n=n+1;
   chkef( i, i+hour , n*hourstep);
 }

  return NULL;




}
FixedTEST Tue Apr 16 23:42:52 2019 OttoH.V.OTHERHardwareN/AHVM_ERROR
*** hvm watcher error ***
cats2 Slot: 13 (A1835 ) Channel:1 Vmon: 540.2 V Imon: 0.14 uA Status: OVER CURRENT

Fixede744s Tue Apr 16 23:46:39 2019 Fairouz & jaromirOFFLINEGeneralCH2Run 136 (First hour) CATS lost efficiency with respect to VAMOS
Attachment 1: run136-efficiencies-1.png
run136-efficiencies-1.png
FixedTEST Wed Apr 17 00:03:26 2019 OttoH.V.OTHERHardwareN/AHVM_ERROR
*** hvm watcher error ***
cats2 Slot: 13 (A1835 ) Channel:1 Vmon: 540.2 V Imon: 0.14 uA Status: OVER CURRENT

FixedTEST Wed Apr 17 00:48:06 2019 OttoH.V.OTHERHardwareN/AHVM_ERROR
*** hvm watcher error ***
cats2 Slot: 13 (A1835 ) Channel:1 Vmon: 525.5 V Imon: 0.9 uA Status: OVER CURRENT

Fixede744s Wed Apr 17 01:09:45 2019 mugastBEAMGeneralCH2Beam lost
About 1:00am we lost the beam.
We call pcp and they will fix in 15 min
At 01:20 we recover the beam
Fixede744s Wed Apr 17 01:36:01 2019 mugastBEAMGeneralCH2Beam lost

mugast wrote:
About 1:00am we lost the beam.
We call pcp and they will fix in 15 min
At 01:20 we recover the beam



At 01:30 we lost other time the beam for 5 min
FixedTEST Wed Apr 17 01:38:26 2019 OttoH.V.OTHERHardwareN/AHVM_ERROR
*** hvm watcher error ***
cats2 Slot: 13 (A1835 ) Channel:1 Vmon: 540.2 V Imon: 0.1 uA Status: OVER CURRENT

Fixede744s Wed Apr 17 01:53:04 2019 mugastONLINEGeneralCH2Log and scalers RUN 136 @01:40
Attachment 1: run136_scaler_01h41.png
run136_scaler_01h41.png
Attachment 2: run136_VAMOS_2_1.png
run136_VAMOS_2_1.png
Attachment 3: run136_VAMOS_2_2.png
run136_VAMOS_2_2.png
Attachment 4: run136_VAMOS_2_3.png
run136_VAMOS_2_3.png
Attachment 5: run136_VAMOS_2_4.png
run136_VAMOS_2_4.png
Attachment 6: run136_VAMOS_2_5.png
run136_VAMOS_2_5.png
Attachment 7: run136_VAMOS_2_6.png
run136_VAMOS_2_6.png
Attachment 8: run136_VAMOS_2_7.png
run136_VAMOS_2_7.png
Attachment 9: run136_VAMOS_2_8.png
run136_VAMOS_2_8.png
Attachment 10: run136_VAMOS_2_9.png
run136_VAMOS_2_9.png
Attachment 11: run136_VAMOS_2_10.png
run136_VAMOS_2_10.png
Attachment 12: run136_VAMOS_2_11.png
run136_VAMOS_2_11.png
Attachment 13: run136_Mugast_2_1.png
run136_Mugast_2_1.png
Attachment 14: run136_Mugast_2_2.png
run136_Mugast_2_2.png
Attachment 15: run136_Mugast_2_3.png
run136_Mugast_2_3.png
Attachment 16: run136_Mugast_2_4.png
run136_Mugast_2_4.png
Attachment 17: run136_Mugast_2_5.png
run136_Mugast_2_5.png
Attachment 18: run136_Mugast_2_6.png
run136_Mugast_2_6.png
Attachment 19: run136_Mugast_2_7.png
run136_Mugast_2_7.png
Attachment 20: run136_Mugast_2_8.png
run136_Mugast_2_8.png
Fixede744s Wed Apr 17 02:00:55 2019 mugastBEAMGeneralCH2Beam lost

mugast wrote:

mugast wrote:
About 1:00am we lost the beam.
We call pcp and they will fix in 15 min
At 01:20 we recover the beam



At 01:30 we lost other time the beam for 5 min


At 02:00 again and we recovered soon. Seems unstable
FixedTEST Wed Apr 17 02:02:21 2019 OttoH.V.OTHERHardwareN/AHVM_ERROR
*** hvm watcher error ***
cats2 Slot: 13 (A1835 ) Channel:1 Vmon: 528.6 V Imon: 0.84 uA Status: OVER CURRENT

Fixede744s Wed Apr 17 03:03:15 2019 mugastBEAMGeneralCH2No beam
No beam since 02:30
HV of C0 tripping all the time, pcp call someone to fix it
Fixede744s Wed Apr 17 04:06:28 2019 mugastRUNGeneralN/ARun 136_1 CATS lost efficiency with respect to VAMOS
Attachment 1: run135-efficiencies-2.png
run135-efficiencies-2.png
FixedTEST Wed Apr 17 04:21:56 2019 OttoH.V.OTHERHardwareN/AHVM_ERROR
*** hvm watcher error ***
FP_DC1_w1 Slot: 2 (A1821HMP) Channel:0 Vmon: 674.25 V Imon: 0 uA Status: OVER CURRENT

FixedTEST Wed Apr 17 04:24:16 2019 OttoH.V.OTHERHardwareN/AHVM_ERROR
*** hvm watcher error ***
FP_DC1_w1 Slot: 2 (A1821HMP) Channel:0 Vmon: 9.5 V Imon: 0 uA Status: INTERNAL TRIP

Fixede744s Wed Apr 17 05:14:15 2019 mugastBEAMGeneralCH2No beam

mugast wrote:
No beam since 02:30
HV of C0 tripping all the time, pcp call someone to fix it



We recover the beam at 05:05 with oscillations
FixedTEST Wed Apr 17 05:52:18 2019 OttoH.V.OTHERHardwareN/AHVM_ERROR
*** hvm watcher error ***
cats2 Slot: 13 (A1835 ) Channel:1 Vmon: 539.9 V Imon: 0.14 uA Status: OVER CURRENT

FixedTEST Wed Apr 17 06:18:44 2019 OttoH.V.OTHERHardwareN/AHVM_ERROR
*** hvm watcher error ***
cats2 Slot: 13 (A1835 ) Channel:1 Vmon: 540.3 V Imon: 0.82 uA Status: OVER CURRENT

FixedTEST Wed Apr 17 06:19:22 2019 OttoH.V.OTHERHardwareN/AHVM_ERROR
*** hvm watcher error ***
cats2 Slot: 13 (A1835 ) Channel:1 Vmon: 540.2 V Imon: 0.1 uA Status: OVER CURRENT

FixedTEST Wed Apr 17 06:42:47 2019 OttoH.V.OTHERHardwareN/AHVM_ERROR
*** hvm watcher error ***
cats2 Slot: 13 (A1835 ) Channel:1 Vmon: 535.9 V Imon: 0.24 uA Status: OVER CURRENT

ELOG Home Page