00001 #ifndef jetsubstructuremomenttools_jetsubstructurebase_header
00002 #define jetsubstructuremomenttools_jetsubstructurebase_header
00003
00004 #include "xAODCaloEvent/CaloCluster.h"
00005 #include "xAODJet/Jet.h"
00006 #include "xAODJet/JetContainer.h"
00007
00008 #include "JetRec/JetModifierBase.h"
00009 #include <vector>
00010
00011
00012
00013 namespace fastjet {
00014 class PseudoJet;
00015 }
00016
00017 class JetSubStructureMomentToolsBase :
00018 public JetModifierBase {
00019 public:
00020
00021 JetSubStructureMomentToolsBase(std::string name);
00022
00023 protected:
00024 bool checkForConstituents(const xAOD::Jet &jet) const {
00025 if(jet.numConstituents() == 0) {
00026 ATH_MSG_WARNING("Attempting to use a substructure tool on a jet that has no constituent");
00027 return false;
00028 } else {
00029 return true;
00030 }
00031 }
00032 };
00033
00034
00035 #endif