Project
Loading...
Searching...
No Matches
AODMcProducerHelpers.h File Reference
#include <SimulationDataFormat/MCEventHeader.h>
#include <SimulationDataFormat/MCTrack.h>
#include <Framework/AnalysisDataModel.h>
#include <Framework/FunctionalHelpers.h>
#include <Framework/TableBuilder.h>
#include <string>
#include <vector>
#include <unordered_map>

Go to the source code of this file.

Classes

struct  o2::aodmchelpers::TableCursor< Table >
 

Namespaces

namespace  o2
 a couple of static helper functions to create timestamp values for CCDB queries or override obsolete objects
 
namespace  o2::aodmchelpers
 

Typedefs

using o2::aodmchelpers::CollisionCursor = TableCursor< aod::McCollisions >::type
 
using o2::aodmchelpers::ParticleCursor = TableCursor< aod::StoredMcParticles_001 >::type
 
using o2::aodmchelpers::XSectionCursor = TableCursor< aod::HepMCXSections >::type
 
using o2::aodmchelpers::PdfInfoCursor = TableCursor< aod::HepMCPdfInfos >::type
 
using o2::aodmchelpers::HeavyIonCursor = TableCursor< aod::HepMCHeavyIons >::type
 
using o2::aodmchelpers::TrackToIndex = std::unordered_map< int, int >
 

Enumerations

enum  o2::aodmchelpers::HepMCUpdate { o2::aodmchelpers::never , o2::aodmchelpers::always , o2::aodmchelpers::anyKey , o2::aodmchelpers::allKeys }
 

Functions

bool o2::aodmchelpers::hasKeys (o2::dataformats::MCEventHeader const &header, const std::vector< std::string > &keys, bool anyNotall=true)
 
template<typename T >
const T o2::aodmchelpers::getEventInfo (o2::dataformats::MCEventHeader const &header, std::string const &key, T const &def)
 
short o2::aodmchelpers::updateMCCollisions (const CollisionCursor &cursor, int bcId, float time, o2::dataformats::MCEventHeader const &header, short generatorId=0, int sourceId=0, unsigned int mask=0xFFFFFFF0)
 
bool o2::aodmchelpers::updateHepMCXSection (const XSectionCursor &cursor, int collisionID, short generatorID, o2::dataformats::MCEventHeader const &header, HepMCUpdate when=HepMCUpdate::anyKey)
 
bool o2::aodmchelpers::updateHepMCPdfInfo (const PdfInfoCursor &cursor, int collisionID, short generatorID, o2::dataformats::MCEventHeader const &header, HepMCUpdate when=HepMCUpdate::anyKey)
 
bool o2::aodmchelpers::updateHepMCHeavyIon (const HeavyIonCursor &cursor, int collisionID, short generatorID, o2::dataformats::MCEventHeader const &header, HepMCUpdate when=HepMCUpdate::anyKey)
 
void o2::aodmchelpers::updateParticle (const ParticleCursor &cursor, const TrackToIndex &toStore, int collisionID, o2::MCTrack const &track, std::vector< MCTrack > const &tracks, uint8_t flags=0, uint32_t weightMask=0xFFFFFFF0, uint32_t momentumMask=0xFFFFFFF0, uint32_t positionMask=0xFFFFFFF0)
 
uint32_t o2::aodmchelpers::updateParticles (const ParticleCursor &cursor, int collisionID, std::vector< MCTrack > const &tracks, TrackToIndex &preselect, uint32_t offset=0, bool filter=false, bool background=false, uint32_t weightMask=0xFFFFFFF0, uint32_t momentumMask=0xFFFFFFF0, uint32_t positionMask=0xFFFFFFF0)
 

Detailed Description

Author
Christian Holm Christensen cholm.nosp@m.@nbi.nosp@m..dk common helpers for AOD MC producers

Definition in file AODMcProducerHelpers.h.