Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:33:10

0001 #ifndef PhysicsTools_PatUtils_ParticleCode_h
0002 #define PhysicsTools_PatUtils_ParticleCode_h
0003 
0004 /**
0005    \file ParticleCode.h
0006    \brief Defines the enumerations of particle type and status.
0007 
0008    Inspired from the MrParticle ID flags.
0009 
0010    \author F.J. Ronga (ETH Zurich)
0011    \version $Id: $
0012 **/
0013 
0014 namespace pat {
0015 
0016   //! Definition of particle types
0017   enum ParticleType {
0018     UNKNOWN = 0,  //!< 0: Unidentified isolated particle
0019     ELECTRON,     //!< 1:
0020     MUON,         //!< 2:
0021     TAU,          //!< 3:
0022     PHOTON,       //!< 4:
0023     JET,          //!< 5:
0024     BJET,         //!< 6:
0025     TOP,          //!< 7:
0026     INVISIBLE     //!< 8: Invisible particle (Monte Carlo only)
0027   };
0028 
0029   //! Definition of particle status after selection
0030   enum ParticleStatus {
0031     GOOD = 0,  //!< 0: Passed selection
0032     BAD,       //!< 1: Failed selection (without additional info)
0033     HOVERE,    //!< 2: Bad H/E ratio
0034     SHOWER,    //!< 3: Bad ECAL shower shape
0035     MATCHING   //!< 4: Bad matching to track
0036   };
0037 
0038 }  // namespace pat
0039 
0040 #endif