file input/output and histogram

From: Mushtari Afroz <smassive_neutrino_at_yahoo.ca>
Date: Thu, 20 Jul 2006 10:12:36 -0400 (EDT)


Hi,   

  I am at the beginner stage of C++. I am not quite sure how I can extract the fields from the following file and then do the same for 100 files of the same structure. The fields will be used to fill 1D histograms, so after the extraction the fields need to be quantified(for instance, on line 5: Level = Debug, I can assign "1" to Debug) and put them in different columns of an output file. Then use those columns to fill a histogram which can be accessed from a ROOT session.   

  If anyone can help me with this I would highly appreciate it.   

  The file format is as follows :   

  STARTLOG
  Message="FEC: Create a VME FEC"
  Origin="ch.cern.cmstkint04.CrateController.instance(0)"   Timestamp="1149861348958"
  Thread="3044891568"
  Level="DEBUG"

  File="/exports/xdaq/dev35/TriDAS/DiagSystem/tools/diagbag/src/common/DiagBagWizard.cc"
  Line="3200"
  NDC=""
  Text="LOGDB"

  ErrorCode="0"
  FaultState="ACTION"
  SystemID="TRACKER"
  SubSystemID="FEC"
  ClassName="CrateController"
  Instance="0"
  LocalID="14"
  ErrorDispatcherTimestamp="1149861348960"   Lvl1Name="DummySupervisorDiagLvlOne"
  Lvl1Instance="0"
  RouteToErrorManager="false"
  DatabaseLogLevel="TRACE"
  ChainsawLogLevel="TRACE"
  ConsoleLogLevel="TRACE"
  ForceDatabaseLogging="false"
  ForceChainsawLogging="false"
  ForceConsoleLogging="false"
  GlobalLogLevel="TRACE"
  EDReconfStatus="false"
  ENDLOG          Mushtari Afroz
Hons. BSc. Program
Trinity College, University of Toronto
Toronto, Canada.                  

Share your photos with the people who matter at Yahoo! Canada Photos Received on Thu Jul 20 2006 - 16:12:47 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:00 MET