39#include <TMatrixDSym.h>
62namespace globaltracking
68class TrackletTransformer;
72class TreeStreamRedirector;
88class ResidualsControllerFast;
182 bool readParameters(
const std::string& parfile =
"millepede.res",
bool useErrors =
true);
243 void Print(
const Option_t* opt =
"") const final;
248 static void MPRec2Mille(
const std::string& mprecfile,
const std::string& millefile =
"mpData.mille",
bool bindata =
true);
249 static void MPRec2Mille(TTree* mprTree,
const std::string& millefile =
"mpData.mille",
bool bindata =
true);
254 void checkSol(TTree* mpRecTree,
bool store =
true,
bool verbose =
false,
bool loc =
true,
const char* outName =
"resFast");
320 std::array<std::unique_ptr<AlignableDetector>, DetID::nDetectors>
mDetectors{};
Base class for detector: wrapper for set of volumes.
Track model for the alignment.
Collection of auxillary methods.
Definition of the GeometryManager class.
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char Directory with events to Events directory is and not inside events d
configStandalone Reconstruction rec_tpc multiplier for the combined cluster track error during track following area in cm for the search of for z only used if decrease removal by when above this local occupancy rowx Shift of TPC revert cluster flag edge bit distance to edge exceeds this ZOffset for secondary multiple of radius max P of electron K BB bands crossing max P of electron p BB bands crossing max P of electron d BB bands crossing max P of electron t BB bands crossing min accepted dEdxMaxTPC of the track Additive extra cluster error for Y2 if edge flag set Additive extra cluster error for Y2 if single set Additive extra cluster error for Y2 if or single set Additive extra cluster error for Z2 if or single set Extra errors to add to track when crossing depending on addErrorsCECrossing Inner portion of y range in sector that is not used in searching for extrapolated track candidates factor2YS for track merging factor2K for track merging Margin in cm of Y position when rejecting edge clusters based on uncorrected track Y Max fraction of shared clusters for tracklet Except pad from cluster finding if total number of charges in a fragment is above this Except pad from cluster finding if number of consecutive charges in a fragment is above this Threshold where a timebin is considered disabling the noisy pad check for that pad Treat signal above this minimum as saturated Smoothing factor for the exponential Highly Ionising Particle tail filter Number of timebins to use for the averaging Add additional custom track errors when crossing relative as fraction of Do N fit passes in final fit of< 0:reject at max -n hits") AddOptionRTC(rejectIFCLowRadiusCluster, uint8_t, 1, "", 0, "Reject clusters that get the IFC mask error during refit") AddOptionRTC(dEdxTruncLow, uint8_t, 2, "", 0, "Low truncation threshold, fraction of 128") AddOptionRTC(dEdxTruncHigh, uint8_t, 77, "", 0, "High truncation threshold, fraction of 128") AddOptionRTC(extrapolationTracking, int8_t, 1, "", 0, "Enable Extrapolation Tracking(prolong tracks to adjacent sectors to find short segments)") AddOptionRTC(disableRefitAttachment, uint8_t, 0, "", 0, "Bitmask to disable certain attachment steps during refit(1:attachment, 2:propagation, 4:loop following, 8:mirroring)") AddOptionRTC(rejectionStrategy, uint8_t, o2::gpu::GPUSettings::RejectionStrategyA, "", 0, "Enable rejection of TPC clusters for compression(0=no, 1=strategy A, 2=strategy B)") AddOptionRTC(mergeLoopersAfterburner, uint8_t, 1, "", 0, "Run afterburner for additional looper merging") AddOptionRTC(compressionTypeMask, uint8_t, o2::gpu::GPUSettings::CompressionFull, "", 0, "TPC Compression mode bits(1=truncate charge/width LSB, 2=differences, 4=track-model)") AddOptionRTC(compressionSortOrder, uint8_t, o2::gpu::GPUSettings::SortTime, "", 0, "Sort order of TPC compression(0=time, 1=pad, 2=Z-time-pad, 3=Z-pad-time, 4=no sorting(use incoming order))") AddOptionRTC(sigBitsCharge, uint8_t, 4, "", 0, "Number of significant bits for TPC cluster charge in compression mode 1") AddOptionRTC(sigBitsWidth, uint8_t, 3, "", 0, "Number of significant bits for TPC cluster width in compression mode 1") AddOptionRTC(dropLoopers, uint8_t, 0, "", 0, "Drop looping tracks starting from second loop") AddOptionRTC(mergerInterpolateErrors, uint8_t, 1, "", 0, "Use interpolation instead of extrapolation for chi2 based cluster rejection") AddOptionRTC(mergerInterpolateRejectAlsoOnCurrentPosition, uint8_t, 1, "", 0, "When using mergerInterpolateErrors, reject based on chi2 twice computed with interpolated and current track position starting from NDF > mergerNonInterpolateRejectMinNDF Merge tracks accross the central electrode Enable PID response Add sub threshold clusters in TPC dEdx computation OR mask of TPC flags that will reject the cluster in alternative dEdx Reject edge clusters based on uncorrected track Y during track fit Increase decrease removal by when on this number of pads from the edge h trd
Descriptor of geometrical constraint.
Class to write C binary file.
Millepede record in root format (can be converted to proper pede binary format.
Container for control residuals.
Result of top-bottom cosmic tracks leg matching.
calibration data from laser track calibration
void setDebugStream(o2::utils::TreeStreamRedirector *d)
static const int sSkipLayers[kNLrSkip]
const ResidualsController & getContResid() const
const GeometricalConstraint & getConstraint(int i) const
o2::tpc::VDriftCorrFact mTPCDrift
const o2::globaltracking::RecoContainer * getRecoContainer() const
void addAutoConstraints()
void writeCalibrationResults() const
bool getUseRecoOCDB() const
const o2::gpu::TPCFastTransformPOD * mTPCCorrMaps
bool mTRDTrigRecFilterActive
std::unique_ptr< TTree > mMPRecTree
control residuals
bool readParameters(const std::string &parfile="millepede.res", bool useErrors=true)
ResidualsController mCResid
MP record.
AlignableDetector * getDetector(DetID id) const
bool fillControlData(o2::dataformats::GlobalTrackID tid)
void setObligatoryDetector(DetID id, int tp, bool v=true)
std::vector< GeometricalConstraint > mConstraints
AlignableDetector * getDetOfDOFID(int id) const
void setControlFrac(float v=1.)
void setTimingInfo(const o2::framework::TimingInfo &ti)
std::string mMilleFileName
file to store control residuals tree
int getRefOCDBLoaded() const
bool getTRDTrigRecFilterActive() const
void setUseRecoOCDB(bool v=true)
void setInstanceID(int i)
int getDebugOutputLevel() const
AlignmentTrack * getAlgTrack() const
const o2::gpu::GPUParam * mTPCParam
bool checkDetectorPattern(DetID::mask_t patt) const
Char_t * getDOFLabelTxt(int idf) const
const Millepede2Record & getMPRecord() const
void expandGlobalsBy(int n)
std::unique_ptr< Mille > mMille
int getTracksType() const
void checkSol(TTree *mpRecTree, bool store=true, bool verbose=false, bool loc=true, const char *outName="resFast")
void addDetector(AlignableDetector *det)
bool storeProcessedTrack(o2::dataformats::GlobalTrackID tid={})
const std::vector< GeometricalConstraint > & getConstraints() const
static const Char_t * sDetectorName[kNDetectors]
std::array< DetID::mask_t, utils::NTrackTypes > mObligatoryDetPattern
TTree * getMPRecTree() const
float getControlFrac() const
int getGloParLab(int i) const
void checkConstraints(const char *params=nullptr)
AlignmentPoint * getRefPoint() const
int parID2Label(int i) const
int getInstanceID() const
o2::utils::TreeStreamRedirector * mDBGOut
void setRecoContainer(const o2::globaltracking::RecoContainer *cont)
std::vector< float > mGloParErr
void setDebugOutputLevel(int i)
void setTrackSourceMask(GTrackID::mask_t m)
bool getInitDOFsDone() const
void writeLabeledPedeResults() const
void setFieldOn(bool v=true)
o2::utils::TreeStreamRedirector * getDebugStream()
const o2::gpu::GPUParam * getTPCParam() const
std::unique_ptr< AlignmentPoint > mRefPoint
std::vector< int > mTrackSources
void setTRDTransformer(const o2::trd::TrackletTransformer *trans)
int label2ParID(int lab) const
bool getMPAlignDone() const
void genPedeSteerFile(const Option_t *opt="") const
void setAllowAfterburnerTracks(bool v)
int getNDetectors() const
Millepede2Record * mMPRecordPtr
MP record.
bool getAllowAfterburnerTracks() const
static Char_t * getDetNameByDetID(int id)
bool getInitGeomDone() const
GTrackID::mask_t getTrackSourceMask() const
void writePedeConstraints() const
const o2::globaltracking::RecoContainer * mRecoData
Controller(const Controller &)
std::unique_ptr< AlignmentTrack > mAlgTrack
auto getStat(int cls, int tp) const
static const Char_t * sMPDataTxtExt
const o2::trd::TrackletTransformer * getTRDTransformer() const
bool fillMPRecData(o2::dataformats::GlobalTrackID tid)
std::vector< float > mGloParVal
ResidualsController * mCResidPtr
control residuals
void setTRDTrigRecFilterActive(bool v)
static const Char_t * sMPDataExt
const o2::trd::TrackletTransformer * mTRDTransformer
int mDebugOutputLevel
reference point for track definition
void Print(const Option_t *opt="") const final
void applyAlignmentFromMPSol()
Controller & operator=(const Controller &)
std::unique_ptr< EventVertex > mVtxSens
void setDetectorsMask(DetID::mask_t m)
void setCosmic(bool v=true)
int getNConstraints() const
void setTPCParam(const o2::gpu::GPUParam *par)
DetID::mask_t getDetectorsMask() const
std::unique_ptr< TFile > mMPRecFile
tree to store control residuals
int getRefRunNumber() const
AlignableVolume * getVolOfLabel(int label) const
std::unique_ptr< TFile > mResidFile
file to store MP record tree
std::array< std::unique_ptr< AlignableDetector >, DetID::nDetectors > mDetectors
void setRefRunNumber(int r=-1)
const o2::tpc::VDriftCorrFact & getTPCVDrift() const
std::vector< GeometricalConstraint > & getConstraints()
void setTracksType(int t=utils::Coll)
void printStatistics() const
bool addVertexConstraint(const o2::dataformats::PrimaryVertex &vtx)
static void MPRec2Mille(const std::string &mprecfile, const std::string &millefile="mpData.mille", bool bindata=true)
std::unique_ptr< TTree > mResidTree
tree to store MP record
void setTPCCorrMaps(const o2::gpu::TPCFastTransformPOD *maph)
bool mAllowAfterburnerTracks
std::unordered_map< int, int > mLbl2ID
AlignableVolume * getVolOfDOFID(int id) const
Millepede2Record mMPRecord
Mille interface.
const o2::gpu::TPCFastTransformPOD * getTPCCorrMaps()
o2::framework::TimingInfo mTimingInfo
void setTPCVDrift(const o2::tpc::VDriftCorrFact &v)
EventVertex * getVertexSensor() const
bool checkDetectorPoints(const int *npsel) const
std::vector< int > mGloParLab
Static class with identifiers, bitmasks and names for ALICE detectors.
GLenum const GLfloat * params
GLuint GLsizei const GLchar * label
void align(gsl::span< ElinkEncoder< BareFormat, CHARGESUM > > elinks)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Common utility functions.
std::array< std::array< size_t, kMaxStat >, kNStatCl > data