Ignore:
Timestamp:
Nov 27, 2008, 4:56:05 PM (16 years ago)
Author:
garnier
Message:

make 3.80 added because 3.81 is bad

Location:
trunk/examples/novice/gemc/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/novice/gemc/src/evio_output.cc

    r807 r893  
    4040    // inserting bitId in bankevent >> TAG=bankID NUM=1 <<
    4141    // hit size should be the same as bitId size
    42     if(NHITS != bitId.size()) cout << " Alarm! " << NHITS << " " << bitId.size() << endl;
    43     *bankevent << evioDOMNode::createEvioDOMNode(bankID, 1, bitId);
     42//     if(NHITS != bitId.size()) cout << " Alarm! " << NHITS << " " << bitId.size() << endl;
     43//     //    *bankevent << evioDOMNode::createEvioDOMNode(bankID, 1, bitId);
    4444
    45     // creating dgthitbank, inserting it in bankevent  >> TAG=bankID NUM=100 <<
    46     if(NVARSD)
    47     {
    48       evioDOMNodeP dgtbankhit = evioDOMNode::createEvioDOMNode(bankID, 100);
    49       *bankevent << dgtbankhit;
     45//     // creating dgthitbank, inserting it in bankevent  >> TAG=bankID NUM=100 <<
     46//     if(NVARSD)
     47//     {
     48//       //      evioDOMNodeP dgtbankhit = evioDOMNode::createEvioDOMNode(bankID, 100);
     49//       *bankevent << dgtbankhit;
    5050
    51        for(int d=0; d<NVARSD; d++)
    52     *dgtbankhit << evioDOMNode::createEvioDOMNode(bankID, mbank.id[d+NVARSR], dgtinfv[d]);
    53     }
     51//        for(int d=0; d<NVARSD; d++)
     52//          //    *dgtbankhit << evioDOMNode::createEvioDOMNode(bankID, mbank.id[d+NVARSR], dgtinfv[d]);
     53//     }
    5454
    55     // creating rawhitbank, inserting it in bankevent  >> TAG=bankID NUM=200 <<
    56     if(NVARSR)
    57     {
    58        evioDOMNodeP rawbankhit = evioDOMNode::createEvioDOMNode(bankID, 200);
    59       *bankevent << rawbankhit;
     55//     // creating rawhitbank, inserting it in bankevent  >> TAG=bankID NUM=200 <<
     56//     if(NVARSR)
     57//     {
     58//       //       evioDOMNodeP rawbankhit = evioDOMNode::createEvioDOMNode(bankID, 200);
     59//       *bankevent << rawbankhit;
    6060
    61        for(int r=0; r<NVARSR; r++)
    62        *rawbankhit << evioDOMNode::createEvioDOMNode(bankID, mbank.id[r], rawinfv[r]);
    63     }
     61//        for(int r=0; r<NVARSR; r++)
     62//          //       *rawbankhit << evioDOMNode::createEvioDOMNode(bankID, mbank.id[r], rawinfv[r]);
     63//     }
    6464 }
    6565
     
    7070void evio_output :: WriteEvent(MOutputs* output)
    7171{
    72  output->pchan->write(*event);
    73  delete event;
     72// output->pchan->write(*event);
     73// delete event;
    7474}
    7575
    7676void evio_output :: SetOutpHeader(int evtn, MOutputs* output)
    7777{
    78  event = new evioDOMTree(1, 0);
     78  // event = new evioDOMTree(1, 0);
    7979
    8080 // creating and inserting head bank  >> TAG=1 NUM=1 <<
    81  evioDOMNodeP head = evioDOMNode::createEvioDOMNode(1,  1);
    82  *event << evioDOMNode::createEvioDOMNode(1, 1, &evtn, 1);
     81  // evioDOMNodeP head = evioDOMNode::createEvioDOMNode(1,  1);
     82  // *event << evioDOMNode::createEvioDOMNode(1, 1, &evtn, 1);
    8383}
    8484
     
    8989 double MAXP = output->gemcOpt.args["NGENP"].arg;
    9090 // creating and inserting generated particles bank  >> TAG=10 NUM=10 <<
    91  generatedp = evioDOMNode::createEvioDOMNode(10, 10);
     91 // generatedp = evioDOMNode::createEvioDOMNode(10, 10);
    9292 int NP = MGP.size();
    9393 vector< vector<double> > gensinfos;
     
    107107 }
    108108
    109  for(int p=0; p<gensinfos.size(); p++) *generatedp << evioDOMNode::createEvioDOMNode(1, 10*(p+1), gensinfos[p]);
    110  *event <<  generatedp;
     109 // for(int p=0; p<gensinfos.size(); p++) *generatedp << evioDOMNode::createEvioDOMNode(1, 10*(p+1), gensinfos[p]);
     110 // *event <<  generatedp;
    111111
    112112}
     
    116116void evio_output :: SetBankHeader(int bankid, string SDName, MOutputs* output)
    117117{
    118  bankID = bankid;
    119  bankevent = evioDOMNode::createEvioDOMNode(bankID, 0);
    120  *event << bankevent ;
     118// bankID = bankid;
     119//  // bankevent = evioDOMNode::createEvioDOMNode(bankID, 0);
     120// *event << bankevent ;
    121121}
    122122
  • trunk/examples/novice/gemc/src/evio_output.h

    r807 r893  
    3131   static MOutputBaseClass *createOutputClass() {return new evio_output;}
    3232
    33    evioDOMTree *event;
    34    evioDOMNodeP bankevent;
    35    evioDOMNodeP generatedp;
     33   //   evioDOMTree *event;
     34   //   evioDOMNodeP bankevent;
     35   //   evioDOMNodeP generatedp;
    3636   int bankID;
    3737   vector<vector<double> > rawinfos;
  • trunk/examples/novice/gemc/src/gemc.cc

    r807 r893  
    199199 msg = " Initializing Stepping Action...";
    200200 if(use_qt) splash->showMessage(msg.c_str()); gemc_gui.processEvents(); cout << hd_msg << msg << endl;
    201  MSteppingAction* SteppingAction = new MSteppingAction(gemcOpt);
    202  runManager->SetUserAction(SteppingAction);
     201// MSteppingAction* SteppingAction = new MSteppingAction(gemcOpt);
     202// runManager->SetUserAction(SteppingAction);
    203203
    204204 G4UIsession * session = NULL;
     
    228228 MOutputs MOutput(gemcOpt);
    229229
    230  map<string, MOutput_Factory> MProcessOutput_Map = Output_Map();
     230 // map<string, MOutput_Factory> MProcessOutput_Map = Output_Map();
    231231
    232232 event_action->MOut            = &MOutput;
    233  event_action->Out             = &MProcessOutput_Map;
     233 // event_action->Out             = &MProcessOutput_Map;
    234234 event_action->MProcessHit_Map = &MProcessHit_Map;
    235235 event_action->SeDe_Map        = ExpHall->SeDe_Map;
     
    281281    }
    282282
    283     QStyle *arthurStyle = new ArthurStyle();
     283    //    QStyle *arthurStyle = new ArthurStyle();
    284284    QList<QWidget *> widgets = qFindChildren<QWidget *>(&gemcW);
    285     foreach (QWidget *w, widgets)
    286         w->setStyle(arthurStyle);
     285//     foreach (QWidget *w, widgets)
     286//         w->setStyle(arthurStyle);
    287287
    288288    return gemc_gui.exec();
Note: See TracChangeset for help on using the changeset viewer.