]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/ITSSDDINJda.cxx
set reco param on an event by event basis
[u/mrichter/AliRoot.git] / ITS / ITSSDDINJda.cxx
index 1a3cabb3ea2b37e038b43a32f311d05bc7665f45..542be76ca648180076ae5b4d95699221cfb0a837 100644 (file)
@@ -1,6 +1,6 @@
 /*
 - Contact: - prino@to.infn.it
-- Link: -
+- Link: - alien:///alice/data/2009/LHC09c_SDD/000079098/raw/09000079098024.10.root
 - Run Type: - INJECTOR
 - DA Type: - LDC
 - Number of events needed: >20
@@ -244,6 +244,7 @@ int main(int argc, char **argv) {
        if(nWrittenEv[index]>0){
          injan[index]->FitMeanDriftSpeedVsAnode();
          injan[index]->WriteToASCII(0,timeSt,0);
+         injan[index]->WriteInjectorStatusToASCII();
          dspHistos->AddLast(injan[index]->GetMeanDriftSpeedVsPadHisto());
          sprintf(filnam,"SDDinj_ddl%02dc%02d_sid%d.data",iddl,imod,isid);
          sprintf(command,"tar -rf SDDinj_LDC.tar %s",filnam);
@@ -257,10 +258,10 @@ int main(int argc, char **argv) {
 
 #ifdef ALI_AMORE
   amore::da::AmoreDA amoreDA(amore::da::AmoreDA::kSender);
-  Int_t status =0;
-  status += amoreDA.Send("TimeInfo",&timeinfo);
-  status += amoreDA.Send("DriftSpeed",dspHistos);
-  if ( status )
+  Int_t statusamore =0;
+  statusamore += amoreDA.Send("TimeInfoInject",&timeinfo);
+  statusamore += amoreDA.Send("DriftSpeed",dspHistos);
+  if ( statusamore )
     printf("Warning: Failed to write Arrays in the AMORE database\n");
   else 
     printf("amoreDA.Send() OK\n");