7 #ifndef CalibPPS_AlignmentRelative_StraightTrackAlignment_h 8 #define CalibPPS_AlignmentRelative_StraightTrackAlignment_h 73 std::vector<unsigned int>
rpIds;
174 std::map<std::set<unsigned int>,
unsigned long>
242 const std::set<unsigned int> &selectedRPs,
std::string taskDataFileName
the name task data file
TGraph * fitBxVsByGraph_fitted
plots bx vs. by
bool cutOnChiSqPerNdf
whether to cut on chi^2/ndf
TH1D * fitNdfHist_selected
fit num. of degrees of freedom histograms for all/selected tracks
std::map< std::set< unsigned int >, TH1D * > perRPSet_selected
std::vector< unsigned int > excludePlanes
list of planes to be excluded from processing
std::vector< unsigned int > rpIds
list of RPs for which the alignment parameters shall be optimized
TH1D * fitAyHist_selected
fit ay histograms for all/selected tracks
bool buildDiagnosticPlots
whether to build and save diagnostic plots
bool saveXMLUncertainties
whether to save uncertainties in the result XML files
signed int eventsSelected
counter of processed tracks
TGraph * fitBxVsByGraph_selected
unsigned int requireNumberOfUnits
select only tracks with activity in minimal number of units
virtual void finish()
performs analyses and fill results variable
TFile * taskDataFile
the file with task data
map: detector id –> residua histogram
CTPPSRPAlignmentCorrectionsData initialAlignments
(real geometry) alignments before this alignment iteration
TH1D * fitPHist_selected
fit p-value histograms for all/selected tracks
void buildConstraints(std::vector< AlignmentConstraint > &)
builds a selected set of constraints
void updateDiagnosticHistograms(const HitCollection &selection, const std::set< unsigned int > &selectedRPs, const LocalTrackFit &trackFit, bool trackSelected)
fills diagnostic (chi^2, residua, ...) histograms
TGraph * fitAxVsAyGraph_fitted
plots ax vs. ay
LocalTrackFitter fitter
track fitter
StraightTrackAlignment(const edm::ParameterSet &)
std::map< unsigned int, unsigned int > selectedHitsPerPlane
counter of selected hits per plane
std::string factoredFileNamePrefix
file name prefix for cumulative factored result files
signed int eventsTotal
counter of events
bool saveIntermediateResults
whether itermediate results (S, CS matrices) of alignments shall be saved
Local (linear) track description (or a fit result). Uses global reference system. ...
TGraph * selected_vs_chiSq
Performs straight-line fit and outlier rejection.
Represents an alignment task.
bool preciseXMLFormat
whether to use long format (many decimal digits) when saving XML files
AlignmentTask task
the alignment task to be solved
Track-based alignment using straight tracks.
signed int maxEvents
stops after this event number has been reached
void printN(const char *str, unsigned int N)
result pretty printing routines
unsigned int verbosity
verbosity level
std::string fileNamePrefix
file name prefix for result files
bool removeImpossible
remove events with impossible signatures (i.e. simultaneously top and bottom)
void removeInsufficientPots(HitCollection &, bool &selectionChanged)
removes the hits of pots with too few planes active
void fitLocalTrack(HitCollection &, LocalTrackFit &, bool &failed, bool &selectionChanged)
bool requireOverlap
if true, only track through vertical-horizontal overlap are seleceted
RPSetPlots globalPlots
global (all RP sets) chi^2 histograms
ConstraintsType
constraint types
TH1D * newResiduaHist(const char *name)
creates a new residua histogram
virtual void processEvent(const edm::EventID &eventId, const edm::DetSetVector< TotemRPUVPattern > &uvPatternsStrip, const edm::DetSetVector< CTPPSDiamondRecHit > &hitsDiamond, const edm::DetSetVector< CTPPSPixelRecHit > &hitsPixel, const edm::DetSetVector< CTPPSPixelLocalTrack > &tracksPixel)
std::string cumulativeFileNamePrefix
file name prefix for cumulative result files
void saveDiagnostics() const
saves a ROOT file with diagnostic plots
std::map< std::set< unsigned int >, unsigned long > selectedTracksPerRPSet
counter of selected tracks in a certain RP set
TH1D * chisqn_lin_selected
TH1D * chisqn_lin_fitted
normalised chi^2 histograms for all/selected tracks, in linear/logarithmic scale
virtual void begin(edm::ESHandle< CTPPSRPAlignmentCorrectionsData > hRealAlignment, edm::ESHandle< CTPPSGeometry > hRealGeometry, edm::ESHandle< CTPPSGeometry > hMisalignedGeometry)
TH1D * fitAxHist_selected
fit ax histograms for all/selected tracks
std::map< std::set< unsigned int >, TH1D * > perRPSet_fitted
TH1D * chisqn_log_selected
void printQuantitiesLine(const std::vector< std::map< unsigned int, AlignmentResult > > &)
virtual ~StraightTrackAlignment()
std::vector< std::set< unsigned int > > additionalAcceptedRPSets
list of RP sets accepted irrespective of the other "require" settings
double chiSqPerNdfCut
the value of chi^2/ndf cut threshold
std::vector< Hit > HitCollection
std::vector< AlignmentAlgorithm * > algorithms
the collection of the alignment algorithms
Container for CTPPS RP alignment corrections. The corrections are stored on two levels - RP and senso...
static std::string setToString(const std::set< unsigned int > &)
converts a set to string
ConstraintsType constraintsType
the chosen type of constraints
signed int eventsFitted
counter of processed tracks
TGraph * fitAxVsAyGraph_selected
std::string diagnosticsFile
file name for some event selection statistics
TH1D * fitByHist_selected
fit by histograms for all/selected tracks
bool requireAtLeast3PotsInOverlap
if a track goes through overlap, select it only if it leaves signal in at least 3 pots ...
TH1D * fitBxHist_selected
fit bx histograms for all/selected tracks
std::map< unsigned int, ResiduaHistogramSet > residuaHistograms
residua histograms
void printAlgorithmsLine(const std::vector< std::map< unsigned int, AlignmentResult > > &)
void printLineSeparator(const std::vector< std::map< unsigned int, AlignmentResult > > &)
double maxTrackAx
cuts on absolute values of the track angle
std::string expandedFileNamePrefix
file name prefix for cumulative expanded result files
std::map< std::set< unsigned int >, unsigned long > fittedTracksPerRPSet
counter of fitted tracks in a certain RP set
std::map< std::set< unsigned int >, RPSetPlots > rpSetPlots
chi^2 histograms per RP set