|
ATLAS Offline Software
|
Go to the documentation of this file.
42 MsgStream&
msg )
const
72 #if __FLT_EVAL_METHOD__ == 2
163 if( !(pers)->m_shapeStore.empty() ){
164 if( momentNames.size() < (pers)->m_shapeStore.size() ) {
if( ! pers->
m_usedForTrigger ) {
165 msg << MSG::WARNING <<
" JetCnv_p5 can't convert moments ! num max keys = "<< momentNames.size() <<
" persistant jet has n= "<< (pers)->m_shapeStore.size() <<
endmsg; }
168 for(
size_t i=0;
i<(pers)->m_shapeStore.size();
i++){
169 trans->
setMoment(momentNames[
i], (pers)->m_shapeStore[
i],
true);
175 double jetQuality = ((pers->
m_recoStatus & 65535) >> 3)*(1./8191.);
179 trans->
setMoment(
"LArQuality", jetQuality);
181 const_cast<Jet_p5*
>(pers)->m_shapeStore.clear();
198 vector<const JetTagInfoBase *> *ptags =
200 if (ptags !=
nullptr) {
201 vector<const JetTagInfoBase*> &
tags (*ptags);
202 for (
unsigned int i = 0;
i <
tags.size();
i++) {
222 trans->
m_assocStore =
new vector<const JetAssociationBase*> ();
223 vector<const JetAssociationBase *> *pass =
226 if (pass !=
nullptr) {
227 vector<const JetAssociationBase *> &
ass (*pass);
229 for (
unsigned int i = 0;
i <
ass.size();
i++) {
253 MsgStream&
msg )
const
261 if( ! s_write0constit) {
280 <<
" skipping constituent : "<< s_write0constit <<
endmsg;
301 const std::vector<JetMoment::MomentData> *rec = map->
getRecord(trans->
m_jetId);
304 (pers)->m_shapeStore.resize(
keys.size());
305 for(
size_t i=0;
i< rec->size();++
i){
306 (pers)->m_shapeStore[
i] = rec->operator[](
i).moment();
322 vector<const JetTagInfoBase*> goodTagInfo;
323 const vector<const JetTagInfoBase*> &tagInfo(*(trans->
m_tagInfoStore));
324 for (
unsigned int i = 0;
i < tagInfo.size();
i++) {
325 if (tagInfo[
i] !=
nullptr) {
326 goodTagInfo.push_back(tagInfo[
i]);
337 vector<const JetAssociationBase*> goodAssInfo;
338 const vector<const JetAssociationBase*> &assInfo(*trans->
m_assocStore);
340 for (
unsigned int i = 0;
i < assInfo.size();
i++) {
341 if (assInfo[
i] !=
nullptr) {
342 goodAssInfo.push_back(assInfo[
i]);
virtual void setE(double e)
Kinematics are now handled by the base class, except for the following.
virtual double py() const
y component of momentum
virtual state_t signalState() const
Retrieve current signal state.
virtual CLHEP::HepLorentzVector hlv() const
CLHEP HepLorentzVector.
virtual void setPz(double pz)
const shape_map_t * getMomentMap(bool addIfMissing) const
virtual void persToTrans(const Jet_p5 *persObj, Jet *transObj, MsgStream &msg) const override
Method creating the transient representation of Jet from its persistent representation Jet_p5.
virtual double e() const
energy
Basic data class defines behavior for all Jet objects The Jet class is the principal data class for...
virtual void transToPers(const Jet *transObj, Jet_p5 *persObj, MsgStream &msg) const override
Method creating the persistent representation Jet_p5 from its transient representation Jet.
virtual void setPx(double Px)
virtual double px() const
We re-define here extra class routines that will allow direct access to signal state kinematics witho...
static const key_t ShapeCat
Index category for jet shapes.
void setCScalePz(double pz)
Sets uncalibrated .
ParticleBase_p1 m_partBase
The Particle base stuff – since Jet now inherits from particle base.
const particle_type & particleBase() const
access to underlying base type (IParticle-like)
void setCScalePx(double px)
Sets uncalibrated .
double getCScaleE() const
void setCScaleE(double e)
Sets uncalibrated
void persToTrans(const PersNavigable_t &pers, Navigable_t &trans, MsgStream &log) const
static JetKeyDescriptorInstance * instance()
virtual double m() const
mass
virtual void persToTrans(const ParticleBase_p1 *persObj, ParticleBase *transObj, MsgStream &msg) const final
Method creating the transient representation of ParticleBase from its persistent representation Parti...
std::vector< TPObjRef > m_tagJetInfo
JetTagInfoBase objects.
void setRawPy(double py)
Sets uncalibrated .
std::vector< std::string > tags
hlv_t constituent_sum4Mom() const
Sum of weighted constituent four-momentums.
void setRawE(double e)
Sets uncalibrated
Navigable_p1< uint32_t, double > m_nav
the navigable part
unsigned int m_recoStatus
we store the recoStatus for jets here
std::vector< TPObjRef > m_associations
JetAssociationBase objects.
std::string jetAuthor() const
Author and calibration history are encoded in a simple way inside the jet object.
tagstore_t * m_tagInfoStore
Tag info store.
void setRawPz(double pz)
Sets uncalibrated .
const navigable_type & navigableBase() const
access to underlying base type (INavigable-like)
const std::vector< key_t > & getKeys(const category_t &cat) const
size_t m_jetAuthor
Jet author store.
void setCScalePy(double py)
Sets uncalibrated .
JetConverterTypes::momentum decompress(const JetConverterTypes::signalState_pers_t &ps, JetConverterTypes::momentum momCal, MsgStream &msg) const
CLHEP::HepLorentzVector hlv_t
JetConverterTypes::signalState_pers_t m_rawSignal
signalstate_t m_constituentSigState
Constituent Signal State.
void transToPers(const Navigable_t &trans, PersNavigable_t &pers, const SG::ThinningCache *cache, MsgStream &log) const
assostore_t * m_assocStore
key descriptor for all jet stores
signalstate_t constituentSignalState() const
Get the current Signal state of the jet constituents.
void addInfo(const TAGINFO *tag)
Add tag info object.
unsigned int m_author
storing what jet algorithm the jet belongs to
virtual bool setSignalState(state_t s)
set the current signal state
size_t m_jetId
the identifier of this jet within its collection.
virtual const record_t * getRecord(size_t jetIndex) const
get the full record for a given jet
void setMoment(const mkey_t &shapeName, shape_t shape, bool addIfMissing=true) const
Alias for setShape.
virtual void transToPers(const ParticleBase *transObj, ParticleBase_p1 *persObj, MsgStream &msg) const final
Method creating the persistent representation ParticleBase_p1 from its transient representation Parti...
virtual void setPy(double py)
This file contains the class definition for the NavigableCnv_p1 class. NOTE: it should be included fi...
JetConverterTypes::momentum m_momentum
the 4-mom part
virtual double pz() const
z component of momentum
numconstit_t m_constituentsN
void setRawPx(double px)
Sets uncalibrated .
make the histogram assessment part of the config
unsigned int m_constituentsN
virtual void set4Mom(const I4Momentum &p4)
set 4Momentum (will throw exception if cannot be implemented)