42static void setBit(
unsigned char &field,
unsigned num,
bool val )
50static bool getBit(
unsigned char field,
unsigned num )
52 return (field & (1 << num)) ? true :
false;
57 MsgStream &
msg )
const
70 std::vector<std::pair<TauJetParameters::TauID, double> > params;
71 params.reserve(pers->
m_params.size());
72 for (
const auto& p : pers->
m_params) {
117 CLHEP::HepLorentzVector hlv;
132 MsgStream &
msg )
const
148 if( trans->
tauID() ) {
156 pers->
m_params.emplace_back (
static_cast<int>( p.first ), p.second);
This file contains the class definition for the ElementLinkCnv_p3 class.
This file contains the class definition for the ElementLinkVectorCnv_p1 class.
static const P4ImplPxPyPzECnv_p1 momCnv
static const JetCnv_p1 jetCnv
static const ClusterLinkCnv_t clusterCnv
static const ParticleBaseCnv_p1 partBaseCnv
Declaration of tau jet transient class.
static const HepLorentzVectorCnv_p1 hepLorentzVectorCnv
Converter for Hep lorentz vector.
static const ElementLinkVectorCnv_p1< ElementLinkVector< Rec::TrackParticleContainer > > tracksCnv
static const ElementLinkVectorCnv_p1< ElementLinkVector< Rec::TrackParticleContainer > > conversionTracksCnv
static void setBit(unsigned char &field, unsigned num, bool val)
static bool getBit(unsigned char field, unsigned num)
static const ElementLinkVectorCnv_p1< ElementLinkVector< Analysis::TauDetailsContainer > > detailsCnv
static const ElementLinkVectorCnv_p1< ElementLinkVector< Rec::TrackParticleContainer > > seedTrk_tracksCnv
static const ElementLinkVectorCnv_p1< ElementLinkVector< Rec::TrackParticleContainer > > seedCalo_tracksCnv
static void setBit(unsigned char &field, unsigned num, bool val)
static bool getBit(unsigned char field, unsigned num)
Implementation of transient<->persistent converter for Analysis::TauJet v5.
Object for taus common for ESD and AOD.
const ElementLink< CaloClusterContainer > cellClusterLink() const
ElementLink to cell CaloCluster, might be invalid the ID variables are calculated from this cluster i...
void setROIWord(unsigned int RoiWord)
Set ROI Word (trigger purposes)
const ElementLinkVector< Rec::TrackParticleContainer > & trackLinkVector() const
Get track link vector.
void setNumberOfTracks(unsigned int numberOfTracks)
Set number of tracks.
const ElementLink< CaloClusterContainer > clusterLink() const
ElementLink to seed CaloCluster, DEPRECATED as of release 13
const ElementLink< JetCollection > jetLink() const
ElementLink to seed Jet, might be invalid if not seeded from a Jet
const ElementLinkVector< Rec::TrackParticleContainer > & seedCalo_trackLinkVector() const
Get seed calo track link vector.
unsigned int ROIWord() const
Retrieve ROI Word (trigger purposes)
void setTauID(TauPID *tauID)
Set TauPID object that contains discriminant values.
void storeHLV(TauJetParameters ::TauCalibType type, CLHEP ::HepLorentzVector hlv)
const ElementLinkVector< Rec::TrackParticleContainer > & conversionTrackLinkVector() const
Get conversion track element link vector (const)
const ElementLinkVector< Rec::TrackParticleContainer > & seedTrk_trackLinkVector() const
Get seed trk track link vector.
unsigned int numberOfTracks() const
Get number of tracks.
CLHEP::HepLorentzVector getHLV(TauJetParameters ::TauCalibType type) const
const TauPID * tauID() const
Get TauPID object containing discriminant values.
ElementLinkVector< TauDetailsContainer > & tauDetailLinkVector()
bool hasAuthor(const TauJetParameters ::Author &author) const
check if this object has Author author (can be more than one)
void setAuthor(const TauJetParameters ::Author &author)
set the author flag to true
Class containing discriminants produced by identification algorithms.
const std::bitset< 32 > & vetoFlags() const
const std::vector< std::pair< TauJetParameters::TauID, double > > & params() const
const std::bitset< 32 > & isTauFlags() const
ElementLink implementation for ROOT usage.
const momentum_type & momentumBase() const
access to underlying base type (I4Momentum-like)
const particle_type & particleBase() const
access to underlying base type (IParticle-like)
void persToTrans(const TauJet_p5 *pers, Analysis::TauJet *trans, MsgStream &msg) const
Fills a transient object from a persistent object.
void transToPers(const Analysis::TauJet *trans, TauJet_p5 *pers, MsgStream &msg) const
Fills a persistent object from a transient object.
ElementLinkInt_p3 m_cellCluster
ElementLinkIntVector_p1 m_seedTrk_tracks
ElementLinkIntVector_p1 m_conversionTracks
unsigned long m_vetoFlags
ElementLinkIntVector_p1 m_seedCalo_tracks
HepLorentzVector_p1 m_tauHLV_etaaxis
HepLorentzVector_p1 m_tauHLV_jetseed
P4EEtaPhiMFloat_p2 m_momentum
ElementLinkIntVector_p1 m_tauDetails
ElementLinkIntVector_p1 m_tracks
unsigned long m_isTauFlags
HepLorentzVector_p1 m_tauHLV_detaxis
HepLorentzVector_p1 m_tauHLV_tesaxis
unsigned long m_numberOfTracks
ElementLinkInt_p3 m_cluster
std ::vector< std ::pair< int, float > > m_params
ParticleBase_p2 m_particleBase
HepLorentzVector_p1 m_tauHLV_intaxis
TauID
Enum for discriminants.