Changeset 1920 in Sophya


Ignore:
Timestamp:
Mar 6, 2002, 5:50:30 PM (24 years ago)
Author:
perderos
Message:

1) ajout de commande pour trace de champ de vecteur
2) modif pour compil sous peida (pawexecut.cc) OP 06/03/2002

Location:
trunk/SophyaPI/PIext
Files:
4 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/contmodex.cc

    r1828 r1920  
    2424  cout << " registration of contour commands "<<endl;
    2525  string hgrp,kw,usage;
    26   hgrp = "OlivierCmd";
     26 
     27  hgrp = "Obj. Display";
    2728 
    2829  kw = "contour";
     
    3132  mpiac->RegisterCommand(kw, usage, this, hgrp);
    3233 
     34  hgrp = "Obj. Display";
    3335  kw = "ntcont";
    3436  usage = "Creates and displays a ContourDrawer (from a NTuple)";
  • trunk/SophyaPI/PIext/pawexecut.cc

    r1913 r1920  
    8282piac->RegisterCommand(kw,usage,this,hgrp);
    8383
     84//#ifndef SANS_EVOLPLANCK
    8485kw = "v/integ";
    85 usage = "Integrate a TVector";
     86usage = "Integrate a TVector / vector";
    8687usage += "\n v/integ namevec [norm]";
    8788usage += "\n norm<=0 means no normalisation (def norm=0)";
    8889usage += "\n  Related commands: h/integ h/deriv v/deriv";
    8990piac->RegisterCommand(kw,usage,this,hgrp);
     91//#endif
    9092
    9193kw = "h/deriv";
     
    9597piac->RegisterCommand(kw,usage,this,hgrp);
    9698
     99//#ifndef SANS_EVOLPLANCK
    97100kw = "v/deriv";
    98 usage = "Derivate a TVector";
     101usage = "Derivate a TVector / vector";
    99102usage += "\n v/deriv namevec [deriv_option]";
    100103usage += "\n deriv_option -1 replace v[i] with v[i]-v[i-1]";
     
    103106usage += "\n  Related commands: h/integ h/deriv v/integ";
    104107piac->RegisterCommand(kw,usage,this,hgrp);
     108//#endif
    105109
    106110kw = "h/rebin";
     
    231235} else if(kw == "h/integ") {
    232236  h_integ(tokens); return(0);
     237  //#ifndef SANS_EVOLPLANCK
    233238} else if(kw == "v/integ") {
    234239  v_integ(tokens); return(0);
     240  //#endif
    235241} else if(kw == "h/deriv") {
    236242  h_deriv(tokens); return(0);
     243  //#ifndef SANS_EVOLPLANCK
    237244} else if(kw == "v/deriv") {
    238245  v_deriv(tokens); return(0);
     246  //#endif
    239247} else if(kw == "h/rebin") {
    240248  h_rebin(tokens); return(0);
     
    586594r_8 norm=-1.;
    587595if(tokens.size()>=2) norm = atof(tokens[1].c_str());
     596#ifdef SANS_EVOLPLANCK
     597Vector* v = dynamic_cast<Vector*>(mobj);
     598#else
    588599TVector<r_8>* v = dynamic_cast<TVector<r_8>*>(mobj);
     600#endif
     601
    589602if(!v)
    590   {cout<<"PAWExecutor::v_integ Error: "<<tokens[0]<<" not a TVector"<<endl;
    591   return;}
     603  {cout<<"PAWExecutor::v_integ Error: "<<tokens[0]<<" not a TVector/Vector"<<endl;
     604  return;}
     605
     606#ifdef SANS_EVOLPLANCK
     607uint_4 n = v->NElts();
     608#else
    592609uint_4 n = v->Size();
     610#endif
     611
    593612if(n==0)
    594613  {cout<<"PAWExecutor::v_integ Error: "<<tokens[0]<<" is an empty vector"<<endl;
     
    636655int_4 deriv_option = 0;
    637656if(tokens.size()>=2) deriv_option = atoi(tokens[1].c_str());
     657
     658#ifdef SANS_EVOLPLANCK
     659Vector* v = dynamic_cast<Vector*>(mobj);
     660#else
    638661TVector<r_8>* v = dynamic_cast<TVector<r_8>*>(mobj);
     662#endif
     663
    639664if(!v)
    640   {cout<<"PAWExecutor::v_deriv Error: "<<tokens[0]<<" not a TVector"<<endl;
    641   return;}
     665  {cout<<"PAWExecutor::v_deriv Error: "<<tokens[0]<<" not a TVector/Vector"<<endl;
     666  return;}
     667
     668
     669#ifdef SANS_EVOLPLANCK
     670uint_4 n = v->NElts();
     671#else
    642672uint_4 n = v->Size();
     673#endif
     674
    643675if(n==0)
    644676  {cout<<"PAWExecutor::v_deriv Error: "<<tokens[0]<<" is an empty vector"<<endl;
    645677  return;}
    646678if(n<=1) return;
     679
     680#ifdef SANS_EVOLPLANCK
     681Vector vsave(*v);
     682#else
    647683TVector<r_8> vsave(*v,false);
     684#endif
     685
    648686if(deriv_option<0) {
    649687  for(uint_4 i=1;i<n;i++) (*v)(i) = vsave(i)-vsave(i-1);
     
    658696}
    659697}
     698
    660699
    661700/* methode */
  • trunk/SophyaPI/PIext/piacmd.cc

    r1828 r1920  
    1818#include "cxxexecwin.h"
    1919#include "contmodex.h"
     20#include "flowmodex.h"
    2021
    2122#include PISTDWDG_H
     
    337338ContModExecutor *cntxx = new ContModExecutor(this, app);//_OP_
    338339cntexec = cntxx; //_OP_
     340FlowModExecutor *flwxx = new FlowModExecutor(this, app);//_OP_
     341flwexec = flwxx; //_OP_
    339342
    340343cxxoptwin = new  CxxOptionWind(app, cxxe);
  • trunk/SophyaPI/PIext/piacmd.h

    r1828 r1920  
    1818#include "dlftypes.h"
    1919#include "pdlmgr.h"
     20#include "ctimer.h"
    2021
    2122// Classe definissant l'interface pour un executeur de commande
     
    117118
    118119  CmdExecutor *cntexec; // contour executor _OP_
     120  CmdExecutor *flwexec; // flow chart executor _OP_
    119121 
    120122// Pour enregistrer la liste de commandes et leurs executeurs et le help
  • trunk/SophyaPI/PIext/pintuple.cc

    r1905 r1920  
    160160if (wK >= 0)  mrk = (mmrk != PI_NotDefMarker) ? mmrk : PI_CircleMarker;
    161161else   mrk = (mmrk != PI_NotDefMarker) ? mmrk : PI_DotMarker;
    162 msz = GetGraphicAtt().GetMarkerSz();;
     162 msz = GetGraphicAtt().GetMarkerSz();
    163163if (msz < 1) msz = 1;
    164164g->SelMarker(msz, mrk);
  • trunk/SophyaPI/PIext/pistlist.cc

    r686 r1920  
    113113double ymax2 = uymax;
    114114
    115 int msz = mMSz;
     115// int msz = mMSz; //OP
     116int  msz = GetGraphicAtt().GetMarkerSz();
     117
    116118if (msz < 1) msz = 1;
    117 PIMarker mrk = (mMrk != PI_NotDefMarker) ? mMrk : PI_FCircleMarker;
     119//PIMarker mrk = (mMrk != PI_NotDefMarker) ? mMrk : PI_FCircleMarker; //OP
     120PIMarker mmrk = GetGraphicAtt().GetMarker();
     121PIMarker mrk = (mmrk != PI_NotDefMarker) ? mmrk : PI_FCircleMarker;
     122
    118123// g->SelFont();
    119124nok = 0;  nl2 = mNLev*2-1;
Note: See TracChangeset for help on using the changeset viewer.