Fork me on GitHub

Changeset 380 in svn for trunk/interface


Ignore:
Timestamp:
May 12, 2009, 9:47:12 AM (16 years ago)
Author:
Xavier Rouby
Message:

new PDG table

Location:
trunk/interface
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/interface/DataConverter.h

    r357 r380  
    3838#include <string>
    3939
     40#include "PdgParticle.h"
    4041#include "Utilities/ExRootAnalysis/interface/ExRootTreeBranch.h"
    4142#include "Utilities/ExRootAnalysis/interface/LHEF.h"
     
    4849
    4950  DataConverter() : Nevt(-1) {};
    50   DataConverter(const int &N) : Nevt(N) {};
     51  DataConverter(const PdgTable& table, const int &N) : Nevt(N), pdg_table(table) {};
    5152  virtual ~DataConverter() {};
    5253
    5354private:
    5455  int Nevt; // number of events to read; -1 means "all of them"
     56
     57public:
     58  PdgTable pdg_table;   // table of particles from PDG
    5559};
    5660
  • trunk/interface/HEPEVTConverter.h

    r357 r380  
    8888public:
    8989
    90   HEPEVTConverter(const string& inputFileList, const string& outputFileName, const int& Nevents=-1);
     90  HEPEVTConverter(const string& inputFileList, const string& outputFileName, const PdgTable& pdg, const int& Nevents=-1);
    9191
    9292};
  • trunk/interface/HepMCConverter.h

    r368 r380  
    4646class HepMCConverter : public DataConverter {
    4747  public:
    48     HepMCConverter(const string& inputFileList, const string& outputFileName, const int& Nevents=-1);
     48    HepMCConverter(const string& inputFileList, const string& outputFileName, const PdgTable& pdg, const int& Nevents=-1);
    4949    virtual ~HepMCConverter();
    5050
  • trunk/interface/LHEFConverter.h

    r357 r380  
    4949public:
    5050
    51   LHEFConverter(const string& inputFileList, const string& outputFileName, const int& Nevents=-1);
     51  LHEFConverter(const string& inputFileList, const string& outputFileName, const PdgTable& pdg, const int& Nevents=-1);
    5252  virtual ~LHEFConverter();
    5353
  • trunk/interface/STDHEPConverter.h

    r357 r380  
    4141class STDHEPConverter : public DataConverter {
    4242  public:
    43     STDHEPConverter(const string& inputFileList, const string& outputFileName, const int& Nevents=-1);
     43    STDHEPConverter(const string& inputFileList, const string& outputFileName, const PdgTable& pdg, const int& Nevents=-1);
    4444    virtual ~STDHEPConverter();
    4545
  • trunk/interface/SmearUtil.h

    r374 r380  
    4545#include "TSimpleArray.h"
    4646#include "PhysicsTower.hh"
     47#include "PdgParticle.h"
    4748
    4849using namespace std;
     
    213214 
    214215 int NEvents_Frog;
    215   float PT_QUARKS_MIN;    // minimal pt needed for quarks to reach the tracker, in GeV
     216 float PT_QUARKS_MIN;    // minimal pt needed for quarks to reach the tracker, in GeV
     217
     218 string PdgTableFilename;
     219 //map<int,PdgParticle> PdgTable;
     220 PdgTable PDGtable;
    216221
    217222  // to sort a vector
     
    221226  /// Reads the data card for the initialisation of the parameters
    222227  void ReadDataCard(const string datacard);
     228
     229  /// Reads the PDG table
     230  void ReadParticleDataGroupTable();
    223231 
    224232  /// Create the output log file
Note: See TracChangeset for help on using the changeset viewer.