CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/DQMOffline/Trigger/interface/EgHLTParticlePair.h

Go to the documentation of this file.
00001 #ifndef DQMOFFLINE_TRIGGER_EGHLTPARTICLEPAIR
00002 #define DQMOFFLINE_TRIGGER_EGHLTPARTICLEPAIR
00003 
00004 //a useful struct for defining a pair of particles
00005 
00006 
00007 namespace egHLT {
00008   template<class T> struct ParticlePair{
00009     const T& part1; 
00010     const T& part2;
00011     
00012     ParticlePair(const T& particle1,const T& particle2):part1(particle1),part2(particle2){}
00013     ~ParticlePair(){}
00014     
00015     float mass()const{return (part1.p4()+part2.p4()).mag();}
00016     
00017   };
00018 }
00019 #endif