52 log <<
"Known colum names:\n";
53 for (
auto e :
ids) log <<
"+++ column: " <<
e.first
62 assert(trackerTopologyHandle.
isValid());
64 std::vector<ID> geomquantities;
80 std::vector<std::pair<std::string, TTField>> namedPartitions {
93 for (
auto&
e : namedPartitions) {
94 geomquantities.push_back(
intern(
e.first));
107 auto diskid =
intern(
"PXDisk");
110 auto disk = pxdisk(iq);
112 auto endcap = pxendcap(iq);
113 return endcap == 1 ? -disk : disk;
118 uint32_t
id = iq.sourceModule.rawId();
129 bool isUpgrade = phase == 1;
134 assert(trackerGeometryHandle.
isValid());
137 auto detids = trackerGeometryHandle->
detIds();
138 for (
DetId id : detids) {
158 iq.row = 0; iq.col = 0;
160 iq.row = topo->
nrows()-1; iq.col = 0;
162 iq.row = 0; iq.col = topo->
ncolumns()-1;
180 auto coord = std::make_shared<SiPixelCoordinates>(
phase);
204 case 1:
return Value(12);
205 case 2:
return Value(11);
206 case 3:
return Value(22);
207 case 4:
return Value(21);
217 case 1:
return Value(12);
218 case 2:
return Value(11);
219 case 3:
return Value(22);
220 case 4:
return Value(21);
229 return from_coord(coord->signed_ladder(iq.
sourceModule()));
234 return from_coord(coord->signed_module(iq.
sourceModule()));
239 return from_coord(coord->signed_blade(iq.
sourceModule()));
260 return from_coord(coord->signed_module_coord(iq.
sourceModule(),
261 std::make_pair(
int(iq.
row),
int(iq.
col))));
266 return from_coord(coord->signed_ladder_coord(iq.
sourceModule(),
267 std::make_pair(
int(iq.
row),
int(iq.
col))));
272 return from_coord(coord->signed_disk_coord(iq.
sourceModule(),
273 std::make_pair(
int(iq.
row),
int(iq.
col))));
278 return from_coord(coord->signed_disk_ring_coord(iq.
sourceModule(),
279 std::make_pair(
int(iq.
row),
int(iq.
col))));
285 return from_coord(coord->signed_blade_coord(
287 }
else if (phase == 1) {
288 return from_coord(coord->signed_blade_panel_coord(
298 return from_coord(coord->signed_blade_coord(
300 }
else if (phase == 1) {
301 return from_coord(coord->signed_shifted_blade_panel_coord(
310 return from_coord(coord->signed_blade_panel_coord(iq.
sourceModule(), std::make_pair(
int(iq.
row),
int(iq.
col))));
316 return from_coord(coord->signed_blade_panel_coord(iq.
sourceModule(), std::make_pair(
int(iq.
row),
int(iq.
col))));
324 std::make_pair(
int(iq.
row),
int(iq.
col))));
334 return from_coord(coord->channel(iq.
sourceModule(), std::make_pair(
int(iq.
row),
int(iq.
col))));
351 int onlineblock = iConfig.
getParameter<
int>(
"onlineblock");
352 int n_onlineblocks = iConfig.
getParameter<
int>(
"n_onlineblocks");
360 onlineblock, onlineblock+n_onlineblocks-1
371 -0.5, iConfig.
getParameter<
int>(
"max_lumisection")/lumiblock
405 std::shared_ptr<SiPixelFrameReverter> siPixelFrameReverter =
407 std::make_shared<SiPixelFrameReverter>(iSetup, theCablingMap.operator->());
451 if (val == 0) value =
"";
452 if (
name ==
"PXDisk" && val > 0)
453 value =
"_+" + std::to_string(
int(val));
455 std::map<int, std::string> shellname{
456 {11,
"_mI"}, {12,
"_mO"}, {21,
"_pI"}, {22,
"_pO"}};
457 if (
name ==
"HalfCylinder" ||
name ==
"Shell") value = shellname[
int(val)];
458 if (val ==
UNDEFINED) value =
"_UNDEFINED";
std::map< ID, Value > max_value
bool hasField(const DetId &id, DetIdFields idx) const
T getParameter(std::string const &) const
virtual int nrows() const =0
std::map< std::pair< Column, Value >, std::string > format_value
std::map< std::string, ID > ids
std::string pretty(Column col)
void addExtractor(ID id, std::function< Value(InterestingQuantities const &iq)> func, Value min=UNDEFINED, Value max=UNDEFINED, Value binwidth=1)
std::string formatValue(Column, Value)
int bunchCrossing() const
edm::LuminosityBlockNumber_t luminosityBlock() const
std::string name() const override
from base class
global coordinates (row and column in DetUnit, as in PixelDigi)
uint32_t rawId() const
get the raw id
const TrackerGeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
void loadFromTopology(edm::EventSetup const &iSetup, const edm::ParameterSet &iConfig)
void load(edm::EventSetup const &iSetup)
const edm::ParameterSet iConfig
const DetIdContainer & detIds() const override
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits)
std::vector< InterestingQuantities > all_modules
std::string name() const override
from base class
static const Value UNDEFINED
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
unsigned int getField(const DetId &id, DetIdFields idx) const
void loadFEDCabling(edm::EventSetup const &iSetup, const edm::ParameterSet &iConfig)
virtual int ncolumns() const =0
void loadModuleLevel(edm::EventSetup const &iSetup, const edm::ParameterSet &iConfig)
std::vector< std::function< Value(InterestingQuantities const &iq)> > extractors
const edm::Event * sourceEvent
std::map< ID, Value > min_value
ID intern(std::string const &id)
T mod(const T &a, const T &b)
void loadTimebased(edm::EventSetup const &iSetup, const edm::ParameterSet &iConfig)
void loadFromSiPixelCoordinates(edm::EventSetup const &iSetup, const edm::ParameterSet &iConfig)