/[PAMELA software]/chewbacca/PamOffLineSW/techmodel/PhysicsReader.cpp
ViewVC logotype

Diff of /chewbacca/PamOffLineSW/techmodel/PhysicsReader.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by mocchiut, Thu Dec 24 10:31:15 2009 UTC revision 1.5 by mocchiut, Thu Feb 11 09:02:12 2010 UTC
# Line 1  Line 1 
1   /** @file   /** @file
2   * $Source: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/PamOffLineSW/techmodel/PhysicsReader.cpp,v $   * $Source: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/PamOffLineSW/techmodel/PhysicsReader.cpp,v $
3   * $Id: PhysicsReader.cpp,v 1.2 2008/12/12 15:58:51 mocchiut Exp $   * $Id: PhysicsReader.cpp,v 1.4 2009/12/24 11:20:54 mocchiut Exp $
4   * $Author: mocchiut $   * $Author: mocchiut $
5   *   *
6   * Implementation of the LogReader class.   * Implementation of the LogReader class.
# Line 51  PhysicsReader::PhysicsReader(void): Line 51  PhysicsReader::PhysicsReader(void):
51   */   */
52  void PhysicsReader::Init(PamelaRun *run)  void PhysicsReader::Init(PamelaRun *run)
53  {            {          
54      //    printf(" physics reader in \n");
55          trackerReader->Init(run);          trackerReader->Init(run);
56      anticounterReader->Init(run);      anticounterReader->Init(run);
57      calorimeterReader->Init(run);      calorimeterReader->Init(run);
# Line 58  void PhysicsReader::Init(PamelaRun *run) Line 59  void PhysicsReader::Init(PamelaRun *run)
59      s4Reader->Init(run);      s4Reader->Init(run);
60      tofReader->Init(run);      tofReader->Init(run);
61      triggerReader->Init(run);        triggerReader->Init(run);  
62        //  printf(" physics reader out \n");
63      ////run->WriteSubPacket(this, &physicsEvent, physicsEvent->Class());      ////run->WriteSubPacket(this, &physicsEvent, physicsEvent->Class());
64  }  }
65    
# Line 69  void PhysicsReader::PKT_RunEvent(char* s Line 71  void PhysicsReader::PKT_RunEvent(char* s
71          int EventNumber = 0;          int EventNumber = 0;
72      /*-----------------*/      /*-----------------*/
73      //passo packetData a tutti i reader dei vari rivelatori      //passo packetData a tutti i reader dei vari rivelatori
74          cout << " 1" << endl;          //      cout << " 1" << endl;
75      triggerReader->RunEvent(EventNumber, subData, dataLenght);          triggerReader->RunEvent(EventNumber, subData, dataLenght);    
76          cout << " 2" << endl;      //  cout << " 2" << endl;
77      tofReader->RunEvent(EventNumber, subData, dataLenght);      tofReader->RunEvent(EventNumber, subData, dataLenght);
78          cout << " 3" << endl;      //  cout << " 3" << endl;
79      trackerReader->RunEvent(EventNumber, subData, dataLenght);      trackerReader->RunEvent(EventNumber, subData, dataLenght);
80          cout << " 4" << endl;      //  cout << " 4" << endl;
81      anticounterReader->RunEvent(EventNumber, subData, dataLenght);      anticounterReader->RunEvent(EventNumber, subData, dataLenght);
82          cout << " 5" << endl;      //  cout << " 5" << endl;
83      calorimeterReader->RunEvent(EventNumber, subData, dataLenght);      calorimeterReader->RunEvent(EventNumber, subData, dataLenght);
84          cout << " 6" << endl;      //  cout << " 6" << endl;
85      neutronReader->RunEvent(EventNumber, subData, dataLenght); // Emiliano!      neutronReader->RunEvent(EventNumber, subData, dataLenght); // Emiliano!
86          cout << " 7" << endl;      //  cout << " 7" << endl;
87      s4Reader->RunEvent(EventNumber, subData, dataLenght);      s4Reader->RunEvent(EventNumber, subData, dataLenght);
88          cout << " 8" << endl;      //  cout << " 8" << endl;
89    //  if(...)    //  if(...)
90     //   throw WrongCRCException_PKTUsed("asdsadas");     //   throw WrongCRCException_PKTUsed("asdsadas");
91    
# Line 94  void PhysicsReader::PKT_RunEvent(char* s Line 96  void PhysicsReader::PKT_RunEvent(char* s
96   */   */
97  std::string PhysicsReader::GetVersionInfo(void) const {  std::string PhysicsReader::GetVersionInfo(void) const {
98    return    return
99      "$Header: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/PamOffLineSW/techmodel/PhysicsReader.cpp,v 1.2 2008/12/12 15:58:51 mocchiut Exp $\n";      "$Header: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/PamOffLineSW/techmodel/PhysicsReader.cpp,v 1.4 2009/12/24 11:20:54 mocchiut Exp $\n";
100  }  }
101    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.23