00001 #ifndef MSLayersKeeperX0Averaged_H 00002 #define MSLayersKeeperX0Averaged_H 00003 00004 #include "RecoTracker/TkMSParametrization/interface/MSLayersKeeper.h" 00005 #include "FWCore/Framework/interface/EventSetup.h" 00006 class MSLayersKeeperX0Averaged : public MSLayersKeeper { 00007 public: 00008 MSLayersKeeperX0Averaged() : isInitialised(false) { } 00009 virtual ~MSLayersKeeperX0Averaged() { } 00010 virtual void init(const edm::EventSetup &iSetup); 00011 virtual MSLayer layer(const DetLayer* layer) const 00012 {return *theLayersData.findLayer(MSLayer(layer)); } 00013 virtual const MSLayersAtAngle & layers(float cotTheta) const 00014 {return theLayersData;} 00015 00016 private: 00017 bool isInitialised; 00018 MSLayersAtAngle theLayersData; 00019 }; 00020 #endif