Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:19:54

0001 #ifndef GCTTESTUSINGLHCDATA_H_
0002 #define GCTTESTUSINGLHCDATA_H_
0003 
0004 /*!
0005  * \class gctTestUsingLhcData
0006  * \brief Helper for hardware/emulator comparison tests using single events
0007  * 
0008  * Read in the array of region energies from a file
0009  *
0010  * \author Greg Heath
0011  * \date February 2010
0012  *
0013  */
0014 
0015 #include <string>
0016 #include <vector>
0017 #include <stdint.h>
0018 
0019 class L1CaloRegion;
0020 class L1GlobalCaloTrigger;
0021 
0022 namespace edm {
0023   class Event;
0024   class InputTag;
0025 }  // namespace edm
0026 
0027 class gctTestUsingLhcData {
0028 public:
0029   // structs and typedefs
0030 
0031   // Constructor and destructor
0032   gctTestUsingLhcData();
0033   ~gctTestUsingLhcData();
0034 
0035   std::vector<L1CaloRegion> loadEvent(const edm::Event& iEvent, const int16_t bx);
0036 
0037   void checkHwResults(const L1GlobalCaloTrigger* gct, const edm::Event& iEvent);
0038   void checkEmResults(const L1GlobalCaloTrigger* gct, const edm::Event& iEvent);
0039 
0040 private:
0041   bool checkResults(const L1GlobalCaloTrigger* gct, const edm::Event& iEvent, const edm::InputTag tag);
0042 
0043   bool checkJets(const L1GlobalCaloTrigger* gct, const edm::Event& iEvent, const edm::InputTag tag);
0044   bool checkEtSums(const L1GlobalCaloTrigger* gct, const edm::Event& iEvent, const edm::InputTag tag);
0045   bool checkHtSums(const L1GlobalCaloTrigger* gct, const edm::Event& iEvent, const edm::InputTag tag);
0046 };
0047 
0048 #endif /*GCTTEST_H_*/