Go to the documentation of this file.
2 #ifndef Alignment_CommonAlignmentAlgorithm_AlignmentAlgorithmBase_h
3 #define Alignment_CommonAlignmentAlgorithm_AlignmentAlgorithmBase_h
58 typedef std::vector<IntegratedCalibrationBase *>
Calibrations;
136 tmp.reserve(cals.size());
137 for (
const auto &ptr : cals) {
138 tmp.push_back(ptr.get());
const edm::RunID runId() const
std::vector< ConstTrajTrackPair > ConstTrajTrackPairCollection
std::vector< std::vector< TrajectoryStateOnSurface > > TsosVectorCollection
const edm::EventID eventId() const
std::pair< RunNumber, RunNumber > RunRange
cond::RealTimeType< cond::runnumber >::type RunNumber
virtual bool addCalibrations(const Calibrations &)
virtual void beginRun(const edm::Run &, const edm::EventSetup &, bool changed)
called at begin of run
virtual void endLuminosityBlock(const edm::EventSetup &setup)
called at end of luminosity block (no lumi block info passed yet)
virtual bool supportsCalibrations()
std::vector< ConstTrajTrackPair > ConstTrajTrackPairs
AlignmentAlgorithmBase::EndRunInfo EndRunInfo
const TsosVectorCollection * tkLasBeamTsoses_
might be null!
define run information passed to algorithms (in endRun)
const reco::BeamSpot & beamSpot() const
bool addCalibrations(const CalibrationsOwner &cals)
std::vector< std::unique_ptr< IntegratedCalibrationBase > > CalibrationsOwner
virtual void initialize(const edm::EventSetup &setup, AlignableTracker *tracker, AlignableMuon *muon, AlignableExtras *extras, AlignmentParameterStore *store)=0
Call at beginning of job (must be implemented in derived class)
virtual void endRun(const EndRunInfo &runInfo, const edm::EventSetup &setup)
called at end of run - order of arguments like in EDProducer etc.
std::pair< const Trajectory *, const reco::Track * > ConstTrajTrackPair
virtual void terminate()
Called at end of job (must be implemented in derived class)
std::vector< IntegratedCalibrationBase * > Calibrations
align::RunNumber RunNumber
const TkFittedLasBeamCollection * tkLasBeams() const
Constructor of the full muon geometry.
AlignmentAlgorithmBase::EventInfo EventInfo
const ConstTrajTrackPairCollection & trajTrackPairs_
const AliClusterValueMap * clusterValueMap() const
virtual bool processesEvents()
Returns whether algorithm proccesses events in current configuration.
eventInfo
add run, event number and lumi section
const TkFittedLasBeamCollection * tkLasBeams_
AlignmentAlgorithmBase(const edm::ParameterSet &, const edm::ConsumesCollector &)
Constructor.
std::pair< const Trajectory *, const reco::Track * > ConstTrajTrackPair
const edm::EventID eventId_
might be null!
std::vector< TkFittedLasBeam > TkFittedLasBeamCollection
const AliClusterValueMap * clusterValueMap_
virtual ~AlignmentAlgorithmBase()
Destructor.
virtual bool setParametersForRunRange(const RunRange &rr)
virtual bool storeAlignments()
Returns whether algorithm produced results to be stored.
virtual void startNewLoop()
const ConstTrajTrackPairCollection & trajTrackPairs() const
EventInfo(const edm::EventID &theEventId, const ConstTrajTrackPairCollection &theTrajTrackPairs, const reco::BeamSpot &theBeamSpot, const AliClusterValueMap *theClusterValueMap)
virtual void beginLuminosityBlock(const edm::EventSetup &setup)
called at begin of luminosity block (no lumi block info passed yet)
virtual void run(const edm::EventSetup &setup, const EventInfo &eventInfo)=0
Run the algorithm (must be implemented in derived class)
const reco::BeamSpot & beamSpot_
const TsosVectorCollection * tkLasBeamTsoses() const
might be null!
const edm::RunID runId_
might be null!
define event information passed to algorithms
EndRunInfo(const edm::RunID &theRunId, const TkFittedLasBeamCollection *theTkLasBeams, const TsosVectorCollection *theTkLasBeamTsoses)