Changeset 23 in Idarraga


Ignore:
Timestamp:
Dec 23, 2010, 4:04:58 PM (13 years ago)
Author:
idarraga
Message:
 
Location:
SLHCTrackAnalysis
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • SLHCTrackAnalysis/SLHCTrackAnalysis/SLHCTrackAnalysis.h

    r21 r23  
    7373        // In single particle mode, pdgId of the single particule to study
    7474        int m_pdgIdRootParticle;
     75        bool m_doTruth;
    7576
    7677        int                    m_nt_nTracks;
  • SLHCTrackAnalysis/src/SLHCTrackAnalysis.cxx

    r22 r23  
    1212    m_truthToTrack("Trk::TruthToTrack"),
    1313    m_pdgIdRootParticle(15), // tau by default // test svn
     14    m_doTruth(true),
    1415    m_maxTrackEta(2.5),
    1516    m_minTrackEta(0.0)
     
    2223        declareProperty("SiClusterContKey", m_SiClusterContKey="PixelClusters");
    2324        declareProperty("pdgIdRootParticle", m_pdgIdRootParticle=15);
     25        declareProperty("doTruth", m_doTruth=true);
    2426
    2527}
     
    7779        /////////////////////////
    7880        // Truth
    79         if( Truth() != StatusCode::SUCCESS ){
     81
     82        if( m_doTruth && Truth() != StatusCode::SUCCESS ){
    8083                log << MSG::ERROR << "SLHCTrackAnalysis::Truth()" << endreq;
    8184                return StatusCode::FAILURE;
    8285        }
    83 
    8486        // fill and rewind
    8587        m_nt_T->Fill();
Note: See TracChangeset for help on using the changeset viewer.