Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:04:38

0001 #ifndef L1TriggerError_h
0002 #define L1TriggerError_h
0003 
0004 // -*- C++ -*-
0005 //
0006 // Package:     DataFormatsL1Trigger
0007 // Class  :     L1TriggerError
0008 //
0009 /**\class L1TriggerError \file L1TriggerError.h DataFormats/L1Trigger/interface/L1TriggerError.h \author Jim Brooke
0010 
0011  Description: Class for communicating errors between modules.
0012               Intended to be transient *only*
0013 */
0014 //
0015 // Original Author:  Jim Brooke
0016 //         Created:
0017 //
0018 
0019 class L1TriggerError {
0020 public:
0021   /// construct from an error code
0022   explicit L1TriggerError(unsigned short prodID = 0, unsigned short code = 0);
0023 
0024   /// dtor
0025   ~L1TriggerError();
0026 
0027   /// set error
0028   void setCode(int code) { code_ = code; }
0029 
0030   /// get error
0031   unsigned code() { return code_; }
0032 
0033   /// producer ID
0034   unsigned prodID();
0035 
0036   /// producer error
0037   unsigned prodErr();
0038 
0039 private:
0040   unsigned code_;
0041 };
0042 
0043 #include <vector>
0044 
0045 typedef std::vector<L1TriggerError> L1TriggerErrorCollection;
0046 
0047 #endif