15 std::vector<std::string> residNames;
17 residNames.push_back(
"x hit residuals pos track");
18 residNames.push_back(
"x hit residuals neg track");
19 residNames.push_back(
"y hit residuals pos track");
20 residNames.push_back(
"y hit residuals neg track");
26 unsigned int nAlignable = alignables.size();
27 unsigned int nResidName = residNames.size();
29 for (
unsigned int i = 0;
i < nAlignable; ++
i) {
34 hists.resize(nResidName,
nullptr);
39 for (
unsigned int n = 0;
n < nResidName; ++
n) {
42 TString histName(
name.c_str());
43 histName += Form(
"_%s_%d", alignableObjectId.idToString(
type),
id);
44 histName.ReplaceAll(
" ",
"");
73 for (
unsigned int t = 0;
t <
tracks.size(); ++
t) {
78 const std::vector<TrajectoryMeasurement>& meass =
tracks[
t].first->measurements();
80 for (
unsigned int m = 0;
m < meass.size(); ++
m) {
88 std::map<const Alignable*, Hist1Ds>::iterator
h =
m_resHists.find(ali);
99 if (localAPE.valid()) {
100 err2 =
LocalError(err2.
xx() - localAPE.xx(), err2.
xy() - localAPE.xy(), err2.
yy() - localAPE.yy());
AlignableNavigator * pNavigator()
AlignmentParameterStore * pStore()
Alignable * mother() const
Return pointer to container alignable (if any)
const LocalTrajectoryError & localError() const
std::map< const Alignable *, Hist1Ds > m_resHists
LocalPoint localPosition() const
static AlignableObjectId commonObjectIdProvider(const AlignableObjectId &, const AlignableObjectId &)
TrajectoryStateOnSurface const & forwardPredictedState() const
Access to forward predicted state (from fitter or builder)
AlignmentMonitorGeneric(const edm::ParameterSet &, edm::ConsumesCollector iC)
const align::Alignables & alignables(void) const
get all alignables
AlignableTracker * pTracker()
LocalError positionError() const
void event(const edm::Event &, const edm::EventSetup &, const ConstTrajTrackPairCollection &) override
Called for each event (by "run()"): may be reimplemented.
void book() override
Book or retrieve histograms; MUST be reimplemented.
std::vector< TH1F * > Hist1Ds
virtual StructureType alignableObjectId() const =0
Return the alignable type identifier.
TrajectoryStateOnSurface const & backwardPredictedState() const
Access to backward predicted state (from smoother)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
std::vector< ConstTrajTrackPair > ConstTrajTrackPairCollection
TH1F * book1D(std::string dir, std::string name, std::string title, int nchX, double lowX, double highX)
align::ID id() const
Return the ID of Alignable, i.e. DetId of 'first' component GeomDet(Unit).
auto const & tracks
cannot be loose
LocalError const & localAlignmentError() const
Return local alligment error.
#define DEFINE_EDM_PLUGIN(factory, type, name)
static const unsigned int nBin_
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
AlignableDetOrUnitPtr alignableFromDetId(const DetId &detid)
Returns AlignableDetOrUnitPtr corresponding to given DetId.
ConstRecHitPointer const & recHit() const