CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/RecoEcal/EgammaCoreTools/interface/EcalTools.h

Go to the documentation of this file.
00001 
00010 #ifndef __EcalTools_h_
00011 #define __EcalTools_h_
00012 
00013 #include "DataFormats/DetId/interface/DetId.h"
00014 #include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h"
00015 #include "CondFormats/EcalObjects/interface/EcalChannelStatus.h"
00016 #include "FWCore/Framework/interface/Frameworkfwd.h"
00017 
00018 class EcalTools{
00019   
00020 public:
00021   
00023   static float swissCross( const DetId& id, 
00024                            const EcalRecHitCollection & recHits, 
00025                            float recHitThreshold , 
00026                            bool avoidIeta85=true);
00027 
00029 
00033   static bool isNextToDead( const DetId& id, const edm::EventSetup& es);
00034 
00036 
00042   static bool isNextToDeadFromNeighbours( const DetId& id, 
00043                                           const EcalChannelStatus& chs,
00044                                           int chStatusThreshold) ; 
00045 
00047   static bool isNextToBoundary (const DetId& id);
00048 
00050   static bool deadNeighbour(const DetId& id, const EcalChannelStatus& chs, 
00051                             int chStatusThreshold, 
00052                             int dx, int dy); 
00053 
00054 private:
00055 
00056   static float recHitE( const DetId id, const EcalRecHitCollection &recHits );
00057   static float recHitE( const DetId id, const EcalRecHitCollection & recHits, 
00058                         int dEta, int dPhi );
00059   static float recHitApproxEt( const DetId id, 
00060                                const EcalRecHitCollection &recHits );
00061 
00062 
00063 
00064 };
00065 
00066 
00067 #endif // __EcalTools_h_
00068 
00069 // Configure (x)emacs for this file ...
00070 // Local Variables:
00071 // mode:c++
00072 // compile-command: "scram b -k"
00073 // End: