Skip to content

Commit

Permalink
Put back writing APEs at Marco's request
Browse files Browse the repository at this point in the history
  • Loading branch information
hroskes committed Nov 9, 2015
1 parent 355f87f commit 99ef41c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,16 +144,19 @@ void TrackerSystematicMisalignments::analyze(const edm::Event& event, const edm:

// -------------- writing out to alignment record --------------
Alignments* myAlignments = theAlignableTracker->alignments() ;
AlignmentErrorsExtended* myAlignmentErrorsExtended = theAlignableTracker->alignmentErrors() ;

// Store alignment[Error]s to DB
edm::Service<cond::service::PoolDBOutputService> poolDbService;
std::string theAlignRecordName = "TrackerAlignmentRcd";
std::string theErrorRecordName = "TrackerAlignmentErrorExtendedRcd";

// Call service
if( !poolDbService.isAvailable() ) // Die if not available
throw cms::Exception("NotAvailable") << "PoolDBOutputService not available";

poolDbService->writeOne<Alignments>(&(*myAlignments), poolDbService->beginOfTime(), theAlignRecordName);
poolDbService->writeOne<AlignmentErrorsExtended>(&(*myAlignmentErrorsExtended), poolDbService->beginOfTime(), theErrorRecordName);
}

void TrackerSystematicMisalignments::applySystematicMisalignment(Alignable* ali)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#=================================
#inputs
globaltag = '74X_dataRun2_Prompt_v4' #don't think this matters but it's needed to get IdealGeometryRcd
inputsqlitefile = None #if None, uses the GT
globaltag = '74X_dataRun2_Prompt_v4' #APEs are copied from this GT (and IdealGeometry and TrackerTopology are used)
inputsqlitefile = None #if None, uses the GT alignment
alignmenttag = 'Alignments' #tag name for TrackerAlignmentRcd in the input file, also used for the output file
runnumberalignmentIOV = 1 #any run number in the iov that you want to start from

Expand Down Expand Up @@ -90,6 +90,10 @@
record = cms.string('TrackerAlignmentRcd'),
tag = cms.string(alignmenttag),
),
cms.PSet(
record = cms.string('TrackerAlignmentErrorExtendedRcd'),
tag = cms.string('AlignmentErrorsExtended'),
),
),
connect = cms.string('sqlite_file:'+outputfilename),
)
Expand Down

0 comments on commit 99ef41c

Please sign in to comment.