Skip to content

Commit

Permalink
update default values for APE,alignables. Remove cout from HIPAlignme…
Browse files Browse the repository at this point in the history
…ntAlgorithm.cc.
  • Loading branch information
CandiceYou committed May 27, 2016
1 parent e872db3 commit 375701d
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 62 deletions.
44 changes: 0 additions & 44 deletions Alignment/HIPAlignmentAlgorithm/data/ALCARECOTkAlCosmicsCTF0T.dat

This file was deleted.

This file was deleted.

4 changes: 2 additions & 2 deletions Alignment/HIPAlignmentAlgorithm/python/align_tpl_py.txt
Expand Up @@ -57,8 +57,8 @@ else :

process.AlignmentProducer.algoConfig.outfile = '<PATH>/HIPAlignmentEvents.root'
process.AlignmentProducer.algoConfig.outfile2 = '<PATH>/HIPAlignmentAlignables.root'
#process.AlignmentProducer.algoConfig.applyAPE = False
process.AlignmentProducer.algoConfig.applyAPE = True
process.AlignmentProducer.algoConfig.applyAPE = False
#process.AlignmentProducer.algoConfig.applyAPE = True
process.AlignmentProducer.algoConfig.apeParam = cms.VPSet(
cms.PSet(function = cms.string('linear'), #choose from linear,exponential,step
apeRPar = cms.vdouble(0.0001, 0.0, 20.0), #100 micro-rad
Expand Down
15 changes: 6 additions & 9 deletions Alignment/HIPAlignmentAlgorithm/python/common_cff_py.txt
Expand Up @@ -19,8 +19,8 @@ from RecoMuon.DetLayers.muonDetLayerGeometry_cfi import *
from Geometry.TrackerGeometryBuilder.idealForDigiTrackerGeometry_cff import *
from Geometry.CSCGeometryBuilder.idealForDigiCscGeometry_cff import *
from Geometry.DTGeometryBuilder.idealForDigiDtGeometry_cff import *
#process.load("Configuration.StandardSequences.MagneticField_cff")
process.load("Configuration.StandardSequences.MagneticField_38T_cff")
process.load("Configuration.StandardSequences.MagneticField_cff")
#process.load("Configuration.StandardSequences.MagneticField_38T_cff")
#process.load("Configuration.StandardSequences.MagneticField_0T_cff")

# loading the alignment producer
Expand All @@ -30,8 +30,6 @@ process.load("Alignment.CommonAlignmentProducer.AlignmentProducer_cff")
#process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff")
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")

#process.GlobalTag.globaltag = '80X_dataRun2_Prompt_Candidate_2016_04_18_10_23_57' #next-to-last one of 2015 EOY IOV
#process.GlobalTag.globaltag = '80X_dataRun2_Express_v7' #2016 first collision,before weasel incident
process.GlobalTag.globaltag = '80X_dataRun2_Prompt_Candidate_2016_05_12_11_59_51'

process.load("FWCore.MessageService.MessageLogger_cfi")
Expand All @@ -42,7 +40,6 @@ from CondCore.CondDB.CondDB_cfi import *

process.GlobalTag.toGet = cms.VPSet(
cms.PSet(record = cms.string('TrackerAlignmentRcd'),
# tag = cms.string('TrackerAlignment_2015-EOY_IOV09'),
# tag = cms.string('TrackerAlignment_2009_v1_express'),
tag = cms.string('TrackerAlignment_Run2016A_PseudoPCL_v1'),
# tag = cms.string('Alignments'),
Expand Down Expand Up @@ -90,15 +87,15 @@ process.AlignmentProducer.ParameterBuilder.Selector = cms.PSet(
alignParams = cms.vstring(
# 'TrackerTPBHalfBarrel,001000',

# 'TrackerTPBHalfBarrel,111111',
# 'TrackerTPEHalfCylinder,111111',
'TrackerTPBHalfBarrel,111111',
'TrackerTPEHalfCylinder,111111',
'TrackerTIBHalfBarrel,111111',
'TrackerTOBHalfBarrel,111111',
'TrackerTIDEndcap,111111',
'TrackerTECEndcap,111111',

'TrackerTPBModule,111111',
'TrackerTPEModule,111111',
# 'TrackerTPBModule,111111',
# 'TrackerTPEModule,111111',
# 'TrackerTIBModuleUnit,111111',
# 'TrackerTOBModuleUnit,111111',
# 'TrackerTIDModuleUnit,111111',
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion Alignment/HIPAlignmentAlgorithm/scripts/minbiasonly.lst

This file was deleted.

7 changes: 4 additions & 3 deletions Alignment/HIPAlignmentAlgorithm/src/HIPAlignmentAlgorithm.cc
Expand Up @@ -138,7 +138,7 @@ HIPAlignmentAlgorithm::initialize( const edm::EventSetup& setup,
// const Rcd & record = setup.get<TrackerAlignmentRcd>();
const edm::ValidityInterval & validity = setup.get<TrackerAlignmentRcd>().validityInterval();
const edm::IOVSyncValue first1 = validity.first();
std::cout << "xiaomeng "<<first1.eventID().run()<<std::endl;
// std::cout << "xiaomeng "<<first1.eventID().run()<<std::endl;
unsigned int firstrun = first1.eventID().run();
if(themultiIOV){
if(theIOVrangeSet.size()!=1){
Expand All @@ -162,7 +162,8 @@ HIPAlignmentAlgorithm::initialize( const edm::EventSetup& setup,
}
}
if(!findMatchIOV){
std::cout <<"error! Didn't find the matched IOV file"<<std::endl;
// std::cout <<"error! Didn't find the matched IOV file"<<std::endl;
edm::LogWarning("Alignment") << "error! Didn't find the matched IOV file!";
}
}
else{
Expand All @@ -172,7 +173,7 @@ HIPAlignmentAlgorithm::initialize( const edm::EventSetup& setup,
salignedfile.replace(salignedfile.end()-5, salignedfile.end(),iovapp);
siterationfile.replace(siterationfile.end()-5, siterationfile.end(),iovapp);
}
std::cout<< "xiaomeng "<< salignedfile <<std::endl;
// std::cout<< "xiaomeng "<< salignedfile <<std::endl;
}

// accessor Det->AlignableDet
Expand Down

0 comments on commit 375701d

Please sign in to comment.