CMS 3D CMS Logo

Public Member Functions | Private Attributes

reco::TauImpactParameterInfo Class Reference

#include <TauImpactParameterInfo.h>

List of all members.

Public Member Functions

virtual TauImpactParameterInfoclone () const
float discriminator (double, double, double, bool, bool) const
float discriminator () const
const IsolatedTauTagInfoRef & getIsolatedTauTag () const
const TauImpactParameterTrackDatagetTrackData (const reco::TrackRef &) const
void setIsolatedTauTag (const IsolatedTauTagInfoRef &)
void storeTrackData (const reco::TrackRef &, const TauImpactParameterTrackData &)
 TauImpactParameterInfo ()
virtual ~TauImpactParameterInfo ()

Private Attributes

IsolatedTauTagInfoRef isolatedTaus
TrackTauImpactParameterAssociationCollection trackDataMap

Detailed Description

Definition at line 26 of file TauImpactParameterInfo.h.


Constructor & Destructor Documentation

reco::TauImpactParameterInfo::TauImpactParameterInfo ( ) [inline]

Definition at line 28 of file TauImpactParameterInfo.h.

Referenced by clone().

{}
virtual reco::TauImpactParameterInfo::~TauImpactParameterInfo ( ) [inline, virtual]

Definition at line 29 of file TauImpactParameterInfo.h.

{}

Member Function Documentation

virtual TauImpactParameterInfo* reco::TauImpactParameterInfo::clone ( void  ) const [inline, virtual]

Definition at line 31 of file TauImpactParameterInfo.h.

References TauImpactParameterInfo().

{ return new TauImpactParameterInfo( * this ); }
float reco::TauImpactParameterInfo::discriminator ( double  ip_min,
double  ip_max,
double  sip_min,
bool  use_sign,
bool  use3D 
) const

Definition at line 8 of file TauImpactParameterInfo.cc.

References reco::TauImpactParameterTrackData::ip3D, edm::Ref< C, T, F >::isNull(), Measurement1D::significance(), reco::TauImpactParameterTrackData::transverseIp, and Measurement1D::value().

Referenced by ImpactParameterAlgorithm::tag().

                                                                                                                           {

        double discriminator = isolatedTaus->discriminator();

        const TrackRef leadingTrack = isolatedTaus->leadingSignalTrack(0.4,1.);

        if(! leadingTrack.isNull()){
          const TauImpactParameterTrackData* ipData = getTrackData(leadingTrack);
          Measurement1D ip = ipData->transverseIp;
          if(use3D) ip = ipData->ip3D;

          if( ip.value() < ip_min ||
              ip.value() > ip_max ||
              ip.significance() < sip_min ){
                discriminator = 0;
          }
        }
        return discriminator;
}
float reco::TauImpactParameterInfo::discriminator ( ) const

Definition at line 27 of file TauImpactParameterInfo.cc.

                                                      {
        //default discriminator: returns the value of the discriminator of the jet tag
        return isolatedTaus->discriminator();
}
const IsolatedTauTagInfoRef & reco::TauImpactParameterInfo::getIsolatedTauTag ( ) const

Definition at line 52 of file TauImpactParameterInfo.cc.

                                                                                 {
        return isolatedTaus;
}
const reco::TauImpactParameterTrackData * TauImpactParameterInfo::getTrackData ( const reco::TrackRef trackRef) const
void reco::TauImpactParameterInfo::setIsolatedTauTag ( const IsolatedTauTagInfoRef &  isolationRef)

Definition at line 48 of file TauImpactParameterInfo.cc.

Referenced by ImpactParameterAlgorithm::tag().

                                                                                            {
        isolatedTaus = isolationRef;
}
void reco::TauImpactParameterInfo::storeTrackData ( const reco::TrackRef trackRef,
const TauImpactParameterTrackData trackData 
)

Definition at line 42 of file TauImpactParameterInfo.cc.

Referenced by ImpactParameterAlgorithm::tag().

                                                                    {

        trackDataMap.insert(trackRef, trackData);
}

Member Data Documentation

IsolatedTauTagInfoRef reco::TauImpactParameterInfo::isolatedTaus [private]

Definition at line 44 of file TauImpactParameterInfo.h.

Definition at line 43 of file TauImpactParameterInfo.h.