/[PAMELA software]/yoda/techmodel/physics/TriggerReader.cpp
ViewVC logotype

Diff of /yoda/techmodel/physics/TriggerReader.cpp

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

revision 2.1 by kusanagi, Sat Jan 29 00:31:36 2005 UTC revision 6.1 by mocchiut, Tue Sep 12 08:56:31 2006 UTC
# Line 1  Line 1 
1  /** @file  /** @file
2   * $Source: /home/cvsmanager/yoda/techmodel/physics/CalorimeterReader.cpp,v $   * $Source: /afs/ba.infn.it/user/pamela/src/CVS/yoda/techmodel/physics/TriggerReader.cpp,v $
3   * $Id: CalorimeterReader.cpp,v 2.3 2004/10/18 14:28:03 kusanagi Exp $   * $Id: TriggerReader.cpp,v 6.0 2006/02/07 17:11:11 kusanagi Exp $
4   * $Author: kusanagi $   * $Author: kusanagi $
5   *   *
6   * Implementation of the CalorimeterReader class.   * Implementation of the CalorimeterReader class.
# Line 52  TriggerReader::TriggerReader(void): Line 52  TriggerReader::TriggerReader(void):
52   */   */
53  std::string TriggerReader::GetVersionInfo(void) const {  std::string TriggerReader::GetVersionInfo(void) const {
54    return    return
55      "$Header: /home/cvsmanager/yoda/techmodel/physics/TriggerReader.cpp,v 2.3 2004/10/18 14:28:03 kusanagi Exp $";      "$Header: /afs/ba.infn.it/user/pamela/src/CVS/yoda/techmodel/physics/TriggerReader.cpp,v 6.0 2006/02/07 17:11:11 kusanagi Exp $";
56  }  }
57    
58  /**  /**
# Line 95  void TriggerReader::RunEvent(int EventNu Line 95  void TriggerReader::RunEvent(int EventNu
95          char *errmsg;          char *errmsg;
96          switch (ERROR){          switch (ERROR){
97              case 1: errmsg = "GENERIC TRIGGER ERROR";              case 1: errmsg = "GENERIC TRIGGER ERROR";
98                break;
99                default: errmsg = "TRIGGER ERRROR CODE UNIDENTIFIED";
100          }          }
101          oss.flush();          oss.str("");
102          oss << "Fortran77 function triggerunpack: " <<  errmsg;          oss << "Fortran77 function triggerunpack: " <<  errmsg;
103          logger->warn(oss.str().c_str());          logger->warn(oss.str().c_str());
104      }      }
105      //  In case of "ERROR != 0" the calunpack will take care to set all      //  In case of "ERROR != 0" the calunpack will take care to set all
106      //  parameters to zero      //  parameters to zero
107      //} else {      //} else {
108        trigger->unpackError = (unsigned short)ERROR;
109      trigger->evcount   = trig_.evcount;      trigger->evcount   = trig_.evcount;
110      memcpy(trigger->pmtpl, trig_.pmtpl, sizeof(trigger->pmtpl));      memcpy(trigger->pmtpl, trig_.pmtpl, sizeof(trigger->pmtpl));
111      memcpy(trigger->trigrate, trig_.trigrate, sizeof(trigger->trigrate));      memcpy(trigger->trigrate, trig_.trigrate, sizeof(trigger->trigrate));
# Line 115  void TriggerReader::RunEvent(int EventNu Line 117  void TriggerReader::RunEvent(int EventNu
117      memcpy(trigger->patterntrig, trig_.patterntrig, sizeof(trigger->patterntrig));      memcpy(trigger->patterntrig, trig_.patterntrig, sizeof(trigger->patterntrig));
118      trigger->trigconf = trig_.trigconf;      trigger->trigconf = trig_.trigconf;
119    
120      delete[] data;      delete [] data;
121  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.23