File indexing completed on 2024-04-06 12:05:19
0001 #ifndef DataFormats_TrackerCommon_PixelPannelType_H
0002 #define DataFormats_TrackerCommon_PixelPannelType_H
0003
0004 #include "DataFormats/TrackerCommon/interface/PixelEndcapName.h"
0005
0006 class PixelPannelType {
0007 public:
0008 enum PannelType { p3L, p3R, p4L, p4R, p2x8 };
0009
0010 static PannelType pannelType(const PixelEndcapName& name) {
0011 PannelType type = (name.pannelName() == 1) ? p4L : p3L;
0012 return type;
0013 }
0014 };
0015
0016 #endif