| 
    LCFIPlus
    0.6.5
    
   | 
 
#include <LCIOStorer.h>
  
 Public Member Functions | |
| LCIOStorer (const char *inputfile=NULL, const char *outputfile=NULL, bool autoread=true, bool autowrite=false, const char *outPrefix=0) | |
| virtual | ~LCIOStorer () | 
| bool | Next (bool autovertex=false, bool autojet=false) | 
| void | SetEvent (lcio::LCEvent *event) | 
| void | SetColorSinglets (vector< MCParticle * > &mcps, vector< MCColorSinglet * > &mccs) | 
| void | InitMCPPFOCollections (const char *pfoColName, const char *mcColName, const char *mcpfoColName) | 
| void | InitPFOCollections (const char *pfoColName) | 
| void | InitVertexCollection (const char *lcioName, const char *flavtagName, bool readnow=true) | 
| void | InitJetCollection (const char *lcioName, const char *flavtagName, bool readnow=true, bool readvtx=true, const char *vtxname=0) | 
| void | ReadVertices (const char *vtxname, vector< const Vertex * > *lcficol) | 
| void | ReadJets (const char *jetname, vector< const Jet * > *lcficol, const char *vtxrelname=0) | 
| void | WriteVertices (const char *vertexName, const char *outName=0, const char *outRPName=0) | 
| void | WriteVertices (VertexVec *pvvtx, const char *newName, const char *newRPName=0) | 
| void | WriteJets (const char *jetName, const char *outName=0, bool writeVertex=true, const char *vtxName=0, const char *relName=0) | 
| void | WritePID (lcio::LCCollection *lciocol, lcio::ReconstructedParticle *lciojet, const lcfiplus::Jet *lcfijet, const char *paramname) | 
| void | WriteAllPIDs (lcio::LCCollection *lciocol, lcio::ReconstructedParticle *lciojet, const lcfiplus::Jet *lcfijet) | 
| void | WriteEvent () | 
| void | AutoConvert () | 
| void | setReadSubdetectorEnergies (bool flag) | 
| void | setTrackHitOrdering (int flag) | 
| void | setUpdateVertexRPDaughters (bool flag) | 
| void | setIgnoreLackOfVertexRP (bool flag) | 
| void | setParticleIDAlgorithmName (const char *algoName) | 
| bool | getReadSubdetectorEnergies () const | 
| int | getTrackHitOrdering () const | 
| bool | getUpdateVertexRPDaughters () const | 
| bool | getIgnoreLackOfVertexRP () const | 
| const char * | getParticleIDAlgorithmName () | 
| virtual void | GetCallback (const char *name, const char *classname) | 
  Public Member Functions inherited from lcfiplus::EventStoreObserver | |
| EventStoreObserver () | |
| virtual | ~EventStoreObserver () | 
| virtual void | RegisterCallback (const char *, const char *, int) | 
Static Public Member Functions | |
| static bool | energy_sort_pfo (lcio::ReconstructedParticle *a, lcio::ReconstructedParticle *b) | 
| lcfiplus::LCIOStorer::LCIOStorer | ( | const char * | inputfile = NULL,  | 
        
| const char * | outputfile = NULL,  | 
        ||
| bool | autoread = true,  | 
        ||
| bool | autowrite = false,  | 
        ||
| const char * | outPrefix = 0  | 
        ||
| ) | 
References lcfiplus::Event::Instance(), and lcfiplus::EventStore::RegisterObserver().
      
  | 
  virtual | 
| void lcfiplus::LCIOStorer::AutoConvert | ( | ) | 
References lcfiplus::EventStore::GetObjectMap(), lcfiplus::Event::Instance(), lcfiplus::EventStore::JET_WRITE_VERTEX, lcfiplus::EventStore::PERSIST, WriteJets(), and WriteVertices().
Referenced by WriteEvent().
      
  | 
  static | 
Referenced by SetEvent().
      
  | 
  virtual | 
Reimplemented from lcfiplus::EventStoreObserver.
References InitJetCollection(), InitVertexCollection(), and lcfiplus::Event::Instance().
      
  | 
  inline | 
Referenced by LcfiplusProcessor::init().
      
  | 
  inline | 
      
  | 
  inline | 
Referenced by LcfiplusProcessor::init().
      
  | 
  inline | 
Referenced by LcfiplusProcessor::init().
      
  | 
  inline | 
Referenced by LcfiplusProcessor::init().
| void lcfiplus::LCIOStorer::InitJetCollection | ( | const char * | lcioName, | 
| const char * | flavtagName, | ||
| bool | readnow = true,  | 
        ||
| bool | readvtx = true,  | 
        ||
| const char * | vtxname = 0  | 
        ||
| ) | 
References lcfiplus::constVector(), InitVertexCollection(), lcfiplus::Event::Instance(), ReadJets(), and lcfiplus::EventStore::Register().
Referenced by GetCallback(), and testSuehara().
| void lcfiplus::LCIOStorer::InitMCPPFOCollections | ( | const char * | pfoColName, | 
| const char * | mcColName, | ||
| const char * | mcpfoColName | ||
| ) | 
References lcfiplus::Event::Instance().
Referenced by LcfiplusProcessor::init().
| void lcfiplus::LCIOStorer::InitPFOCollections | ( | const char * | pfoColName | ) | 
References lcfiplus::Event::Instance().
Referenced by LcfiplusProcessor::init().
| void lcfiplus::LCIOStorer::InitVertexCollection | ( | const char * | lcioName, | 
| const char * | flavtagName, | ||
| bool | readnow = true  | 
        ||
| ) | 
References lcfiplus::constVector(), lcfiplus::Event::Instance(), ReadVertices(), and lcfiplus::EventStore::Register().
Referenced by GetCallback(), InitJetCollection(), and testSuehara().
| bool lcfiplus::LCIOStorer::Next | ( | bool | autovertex = false,  | 
        
| bool | autojet = false  | 
        ||
| ) | 
References SetEvent().
Referenced by lcfiplus::EventNavigator::EventNavigator(), lcfiplus::EventNavigator::Fwd(), testSuehara(), and testTomohiko().
| void lcfiplus::LCIOStorer::ReadJets | ( | const char * | jetname, | 
| vector< const Jet * > * | lcficol, | ||
| const char * | vtxrelname = 0  | 
        ||
| ) | 
References lcfiplus::Parameters::add(), lcfiplus::Jet::add(), lcfiplus::Jet::addParam(), and lcfiplus::Jet::setId().
Referenced by InitJetCollection(), and SetEvent().
| void lcfiplus::LCIOStorer::ReadVertices | ( | const char * | vtxname, | 
| vector< const Vertex * > * | lcficol | ||
| ) | 
References lcfiplus::Vertex::add(), lcfiplus::Vertex::setId(), and lcfiplus::Vertex::setVertexingName().
Referenced by InitVertexCollection(), and SetEvent().
| void LCIOStorer::SetColorSinglets | ( | vector< MCParticle * > & | mcps, | 
| vector< MCColorSinglet * > & | mccs | ||
| ) | 
References lcfiplus::MCColorSinglet::_finalcolorsinglets, lcfiplus::MCColorSinglet::_finalstrings, lcfiplus::MCColorSinglet::_initials, lcfiplus::MCColorSinglet::_mcp, lcfiplus::MCColorSinglet::_qqgluons, lcfiplus::MCColorSinglet::_realparticles, lcfiplus::constVector(), lcfiplus::MCParticle::getColorSinglet(), lcfiplus::MCParticle::getDaughters(), lcfiplus::MCParticle::getParent(), lcfiplus::MCParticle::getPDG(), and lcfiplus::MCParticle::isParent().
Referenced by SetEvent().
| void lcfiplus::LCIOStorer::SetEvent | ( | lcio::LCEvent * | event | ) | 
References lcfiplus::EventStore::ClearObjects(), lcfiplus::tpar::covN, lcfiplus::tpar::d0, energy_sort_pfo(), lcfiplus::tpar::ETD, lcfiplus::tpar::FTD, lcfiplus::Globals::getBField(), lcfiplus::tpar::hitN, lcfiplus::Globals::Instance(), lcfiplus::Event::Instance(), lcfiplus::tpar::om, lcfiplus::tpar::parN, lcfiplus::tpar::ph, ReadJets(), ReadVertices(), lcfiplus::tpar::SET, lcfiplus::Neutral::setCaloEdep(), lcfiplus::Neutral::setClusters(), SetColorSinglets(), lcfiplus::Track::setId(), lcfiplus::Neutral::setId(), lcfiplus::Neutral::setMcp(), lcfiplus::MCParticle::setParent(), lcfiplus::Neutral::setPDG(), lcfiplus::Neutral::setV0(), lcfiplus::tpar::SIT, lcfiplus::tpar::td, lcfiplus::tpar::TPC, lcfiplus::tpar::VTX, and lcfiplus::tpar::z0.
Referenced by Next().
      
  | 
  inline | 
Referenced by LcfiplusProcessor::init().
      
  | 
  inline | 
Referenced by LcfiplusProcessor::init().
      
  | 
  inline | 
Referenced by LcfiplusProcessor::init().
      
  | 
  inline | 
Referenced by LcfiplusProcessor::init().
      
  | 
  inline | 
Referenced by LcfiplusProcessor::init().
| void LCIOStorer::WriteAllPIDs | ( | lcio::LCCollection * | lciocol, | 
| lcio::ReconstructedParticle * | lciojet, | ||
| const lcfiplus::Jet * | lcfijet | ||
| ) | 
References lcfiplus::Jet::params(), and WritePID().
Referenced by WriteJets().
| void lcfiplus::LCIOStorer::WriteEvent | ( | ) | 
References AutoConvert().
| void lcfiplus::LCIOStorer::WriteJets | ( | const char * | jetName, | 
| const char * | outName = 0,  | 
        ||
| bool | writeVertex = true,  | 
        ||
| const char * | vtxName = 0,  | 
        ||
| const char * | relName = 0  | 
        ||
| ) | 
References lcfiplus::EventStore::Get(), lcfiplus::Track::getCharge(), lcfiplus::Jet::getNeutrals(), lcfiplus::Vertex::getTracks(), lcfiplus::Jet::getTracks(), lcfiplus::Jet::getVertices(), lcfiplus::Event::Instance(), lcfiplus::Jet::setId(), WriteAllPIDs(), and WriteVertices().
Referenced by AutoConvert().
| void LCIOStorer::WritePID | ( | lcio::LCCollection * | lciocol, | 
| lcio::ReconstructedParticle * | lciojet, | ||
| const lcfiplus::Jet * | lcfijet, | ||
| const char * | paramname | ||
| ) | 
References lcfiplus::Parameters::get(), lcfiplus::Jet::getParam(), and lcfiplus::Parameters::paramMap().
Referenced by WriteAllPIDs().
| void lcfiplus::LCIOStorer::WriteVertices | ( | const char * | vertexName, | 
| const char * | outName = 0,  | 
        ||
| const char * | outRPName = 0  | 
        ||
| ) | 
References lcfiplus::EventStore::Get(), and lcfiplus::Event::Instance().
Referenced by AutoConvert(), and WriteJets().
| void lcfiplus::LCIOStorer::WriteVertices | ( | VertexVec * | pvvtx, | 
| const char * | newName, | ||
| const char * | newRPName = 0  | 
        ||
| ) | 
References lcfiplus::Track::getCharge(), lcfiplus::Vertex::getChi2(), lcfiplus::Vertex::getCov(), lcfiplus::Vertex::getProb(), lcfiplus::Vertex::getTracks(), lcfiplus::Vertex::getVertexingName(), lcfiplus::Vertex::getX(), lcfiplus::Vertex::getY(), lcfiplus::Vertex::getZ(), lcfiplus::Vertex::isPrimary(), and lcfiplus::Vertex::setId().
 1.8.6