/[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.1 by mocchiut, Tue Sep 23 07:20:25 2008 UTC revision 1.5 by mocchiut, Thu Feb 11 09:02:12 2010 UTC
# Line 1  Line 1 
1   /** @file   /** @file
2   * $Source: /repository/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.9 2008-03-04 18:09:31 messineo Exp $   * $Id: PhysicsReader.cpp,v 1.4 2009/12/24 11:20:54 mocchiut Exp $
4   * $Author: messineo $   * $Author: mocchiut $
5   *   *
6   * Implementation of the LogReader class.   * Implementation of the LogReader class.
7  * ToBeDone:  * ToBeDone:
# 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;
75      triggerReader->RunEvent(EventNumber, subData, dataLenght);          triggerReader->RunEvent(EventNumber, subData, dataLenght);    
76        //  cout << " 2" << endl;
77      tofReader->RunEvent(EventNumber, subData, dataLenght);      tofReader->RunEvent(EventNumber, subData, dataLenght);
78        //  cout << " 3" << endl;
79      trackerReader->RunEvent(EventNumber, subData, dataLenght);      trackerReader->RunEvent(EventNumber, subData, dataLenght);
80        //  cout << " 4" << endl;
81      anticounterReader->RunEvent(EventNumber, subData, dataLenght);      anticounterReader->RunEvent(EventNumber, subData, dataLenght);
82        //  cout << " 5" << endl;
83      calorimeterReader->RunEvent(EventNumber, subData, dataLenght);      calorimeterReader->RunEvent(EventNumber, subData, dataLenght);
84        //  cout << " 6" << endl;
85        neutronReader->RunEvent(EventNumber, subData, dataLenght); // Emiliano!
86        //  cout << " 7" << endl;
87      s4Reader->RunEvent(EventNumber, subData, dataLenght);      s4Reader->RunEvent(EventNumber, subData, dataLenght);
88        //  cout << " 8" << endl;
89    //  if(...)    //  if(...)
90     //   throw WrongCRCException_PKTUsed("asdsadas");     //   throw WrongCRCException_PKTUsed("asdsadas");
91    
# Line 85  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: /repository/PamOffLineSW/techmodel/PhysicsReader.cpp,v 1.9 2008-03-04 18:09:31 messineo 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.1  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.23