/[PAMELA software]/yoda/techmodel/PhysicsReader.cpp
ViewVC logotype

Diff of /yoda/techmodel/PhysicsReader.cpp

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

revision 2.1 by kusanagi, Fri Dec 3 22:08:01 2004 UTC revision 2.2 by kusanagi, Thu Dec 9 08:48:41 2004 UTC
# Line 1  Line 1 
1      /** @file      /** @file
2   * $Source: /home/cvsmanager/yoda/techmodel/PhysicsReader.cpp,v $   * $Source: /home/cvsmanager/yoda/techmodel/PhysicsReader.cpp,v $
3   * $Id: PhysicsReader.cpp,v 2.0 2004/09/21 20:50:54 kusanagi Exp $   * $Id: PhysicsReader.cpp,v 2.1 2004/12/03 22:08:01 kusanagi Exp $
4   * $Author: kusanagi $   * $Author: kusanagi $
5   *   *
6   * Implementation of the LogReader class.   * Implementation of the LogReader class.
# Line 28  using namespace pamela::tracker; Line 28  using namespace pamela::tracker;
28  using namespace pamela::anticounter;  using namespace pamela::anticounter;
29  using namespace pamela::calorimeter;  using namespace pamela::calorimeter;
30  using namespace pamela::neutron;  using namespace pamela::neutron;
31    using namespace pamela::S4;
32    
33  static log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(_T("pamela.techmodel.PhysicsReader"));  static log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(_T("pamela.techmodel.PhysicsReader"));
34    
# Line 37  static log4cxx::LoggerPtr logger = log4c Line 38  static log4cxx::LoggerPtr logger = log4c
38  PhysicsReader::PhysicsReader(void):  PhysicsReader::PhysicsReader(void):
39    TechmodelAlgorithm(PacketType::Physics, "TechmodelPhysicsReader") {    TechmodelAlgorithm(PacketType::Physics, "TechmodelPhysicsReader") {
40    logger->debug(_T("Constructor"));    logger->debug(_T("Constructor"));
41    trackerReader     = new TrackerReader();    trackerReader     = new TrackerReader;
42    anticounterReader = new AnticounterReader();    anticounterReader = new AnticounterReader;
43    calorimeterReader = new CalorimeterReader();    calorimeterReader = new CalorimeterReader;
44    neutronReader     = new NeutronDetectorReader();    neutronReader     = new NeutronDetectorReader;
45      s4Reader          = new S4Reader;
46  }  }
47    
48  /**  /**
# Line 48  PhysicsReader::PhysicsReader(void): Line 50  PhysicsReader::PhysicsReader(void):
50   */   */
51  std::string PhysicsReader::GetVersionInfo(void) const {  std::string PhysicsReader::GetVersionInfo(void) const {
52    return    return
53      "$Header: /home/cvsmanager/yoda/techmodel/PhysicsReader.cpp,v 2.0 2004/09/21 20:50:54 kusanagi Exp $\n";      "$Header: /home/cvsmanager/yoda/techmodel/PhysicsReader.cpp,v 2.1 2004/12/03 22:08:01 kusanagi Exp $\n";
54  }  }
55    
56  /**  /**
# Line 78  void PhysicsReader::RunEvent(int EventNu Line 80  void PhysicsReader::RunEvent(int EventNu
80          anticounterReader->RunEvent(EventNumber, subData, dataLenght);          anticounterReader->RunEvent(EventNumber, subData, dataLenght);
81          calorimeterReader->RunEvent(EventNumber, subData, dataLenght);          calorimeterReader->RunEvent(EventNumber, subData, dataLenght);
82          neutronReader->RunEvent(EventNumber, subData, dataLenght);          neutronReader->RunEvent(EventNumber, subData, dataLenght);
83            s4Reader->RunEvent(EventNumber, subData, dataLenght);
84          /*-----------------*/          /*-----------------*/
85      delete[] subData;      delete[] subData;
86  }  }

Legend:
Removed from v.2.1  
changed lines
  Added in v.2.2

  ViewVC Help
Powered by ViewVC 1.1.23