|
ATLAS Offline Software
|
Go to the documentation of this file.
30 #include "Identifier/Identifier.h"
47 #include "GaudiKernel/ToolHandle.h"
68 SCTCalib(
const std::string &
name, ISvcLocator* pSvcLocator ) ;
98 ToolHandle<SCTCalibWriteTool>
m_pCalibWriteTool{
this,
"SCTCalibWriteTool",
"SCTCalibWriteTool",
"Tool to write out data from calibration loop"};
99 ToolHandle<ISCT_ConfigurationConditionsTool>
m_ConfigurationConditionsTool{
this,
"SCT_ConfigurationConditionsTool",
"SCT_ConfigurationConditionsTool/InDetSCT_ConfigurationConditionsTool",
"Tool to retrieve SCT Configuration"};
100 ToolHandle<ISCT_ReadCalibDataTool>
m_ReadCalibDataTool{
this,
"SCT_ReadCalibDataTool",
"SCT_ReadCalibDataTool/InDetSCT_ReadCalibDataTool",
"Tool to retrieve SCT calibration data"};
101 ToolHandle<ISCT_DetectorLevelConditionsTool>
m_MajorityConditionsTool{
this,
"SCT_MajorityConditionsTool",
"SCT_MajorityConditionsTool",
"Tool to retrieve the majority conditions of SCT"};
102 ToolHandle<ISCT_CablingTool>
m_CablingTool{
this,
"SCT_CablingTool",
"SCT_CablingTool",
"Tool to retrieve SCT Cabling"};
103 ToolHandle<ISCT_CalibHistoTool>
m_calibHitmapTool{
this,
"SCT_CalibHitmapTool",
"SCT_CalibHitmapTool",
"Tool for reading and writing HitMap histograms"};
104 ToolHandle<ISCT_CalibHistoTool>
m_calibLbTool{
this,
"SCT_CalibLbTool",
"SCT_CalibLbTool",
"Tool for reading and writing Lb dependent HitMap histograms"};
105 ToolHandle<ISCT_CalibHistoTool>
m_calibBsErrTool{
this,
"SCT_CalibBsErrorTool",
"SCT_CalibBsErrorTool",
"Tool for reading and writing BS error histograms"};
106 ToolHandle<ISCT_CalibModuleListTool>
m_calibModuleListTool{
this,
"SCT_CalibModuleListTool",
"SCT_CalibModuleListTool",
"Tool for handling list of modules"};
107 ToolHandle<ISCT_CalibEvtInfo>
m_calibEvtInfoTool{
this,
"SCT_CalibEventInfo",
"SCT_CalibEventInfo",
"Tool for handling event info"};
132 StringProperty
m_runEndTime{
this,
"RunEndTime",
"",
"from runInfo.txt"};
133 StringProperty
m_LBMax{
this,
"LBMax",
"1000",
"from runInfo.txt"};
140 StringArrayProperty
m_input_hist{
this,
"InputHist", {},
"list of HIST (assuming 1 file)"};
142 BooleanProperty
m_readBS{
this,
"ReadBS",
false,
"True if BS is used"};
143 BooleanProperty
m_histBefore2010{
this,
"HistBefore2010",
false,
"True if HIST is from 2009 or earlier"};
151 BooleanProperty
m_doHV{
this,
"DoHV",
false};
164 FloatProperty
m_noisyModuleAverageInDB{
this,
"NoisyModuleAverageInDB", -1.,
"Average number of modules with at least 1 noisy strip in COOL"};
165 IntegerProperty
m_noisyStripLastRunInDB{
this,
"NoisyStripLastRunInDB", -999,
"Number of noisy strips of the last run uploaded to COOL"};
166 FloatProperty
m_noisyStripAverageInDB{
this,
"NoisyStripAverageInDB", -999.,
"Number of noisy strips of the last run uploaded to COOL"};
215 StringProperty
m_badStripsAllFile{
this,
"BadStripsAllFile",
"BadStripsAllFile.xml",
"Output XML for all noisy strips"};
216 StringProperty
m_badStripsNewFile{
this,
"BadStripsNewFile",
"BadStripsNewFile.xml",
"Output XML for newly found noisy strips (i.e. not in config/calib data)"};
217 StringProperty
m_badStripsSummaryFile{
this,
"BadStripsSummaryFile",
"BadStripsSummaryFile.xml",
"Output XML for summary info from noisy strip search"};
219 StringProperty
m_badModulesFile{
this,
"BadModulesFile",
"BadModulesFile.xml",
"Output XML for HV trips"};
221 StringProperty
m_deadStripsFile{
this,
"DeadStripsFile",
"DeadStripsFile.xml",
"Output XML for dead strips"};
222 StringProperty
m_deadChipsFile{
this,
"DeadChipsFile",
"DeadChipsFile.xml",
"Output XML for dead chips"};
223 StringProperty
m_deadSummaryFile{
this,
"DeadSummaryFile",
"DeadSummaryFile.xml",
"Output XML for summary of Dead Finding"};
225 StringProperty
m_noiseOccupancyFile{
this,
"NoiseOccupancyFile",
"NoiseOccupancyFile.xml",
"Output XML for noise occupancy"};
226 StringProperty
m_noiseOccupancySummaryFile{
this,
"NoiseOccupancySummaryFile",
"NoiseOccupancySummaryFile.xml",
"Output XML for summary of noise occupancy"};
227 StringProperty
m_rawOccupancySummaryFile{
this,
"RawOccupancySummaryFile",
"RawOccupancySummaryFile.xml",
"Output XML for summary of raw occupancy"};
228 StringProperty
m_efficiencySummaryFile{
this,
"EfficiencySummaryFile",
"EfficiencySummaryFile.xml",
"Output XML for summary of efficiency"};
229 StringProperty
m_efficiencyModuleFile{
this,
"EfficiencyModuleFile",
"EfficiencyModuleSummary.xml",
"Output XML for efficiency"};
230 StringProperty
m_efficiencyChipFile{
this,
"EfficiencyChipFile",
"EfficiencyChipSummary.xml",
"Output XML for chip efficiency"};
231 StringProperty
m_BSErrorSummaryFile{
this,
"BSErrorSummaryFile",
"BSErrorSummaryFile.xml",
"Output XML for summary of BS Errors"};
232 StringProperty
m_BSErrorModuleFile{
this,
"BSErrorModuleFile",
"BSErrorModuleSummary.xml",
"Output XML for summary of BS Errors"};
233 StringProperty
m_LorentzAngleFile{
this,
"LorentzAngleFile",
"LorentzAngleFile.xml",
"Output XML for noise occupancy"};
234 StringProperty
m_LorentzAngleSummaryFile{
this,
"LorentzAngleSummaryFile",
"LorentzAngleSummaryFile.xml",
"Output XML for summary of lorentz angle"};
285 if (service.retrieve().isFailure()) {
308 (
const std::map<Identifier, std::set<Identifier>>& moduleListAll,
309 const std::map<Identifier, std::set<Identifier>>& moduleListNew,
310 const std::map<Identifier, std::set<Identifier>>& moduleListRef);
312 getStripList(
const std::set<Identifier>& stripIdList)
const;
315 getOverlapStripList(
const std::set<Identifier>& stripAllIdList,
const std::set<Identifier>& stripRefIdList )
const;
323 const std::map<
Identifier, std::set<Identifier>>& moduleListRef,
324 const std::string& badStripsFile)
const;
327 getNoisyChips(
const std::set<Identifier>& stripIdList)
const;
329 std::pair<std::string, float>
333 getLBList(
const std::set<int>& LBList)
const;
Property holding a SG store/key/clid from which a ReadHandle is made.
UnsignedIntegerProperty m_deadStripSignificance
virtual StatusCode initialize() override
std::ofstream m_outLASummary
This is an Identifier helper class for the SCT subdetector. This class is a factory for creating comp...
UnsignedIntegerProperty m_efficiencyMinStat
StringProperty m_badStripsSummaryFile
BooleanProperty m_deadStripUploadTest
BooleanProperty m_doHitMapsLB
BooleanProperty m_noisyStripAll
IntegerProperty m_eventNumber
BooleanProperty m_readHitMaps
const SCT_ID * m_pSCTHelper
std::string xmlChannelEfficiencyDataStringChip(const Identifier &waferId, const float efficiency, const float efficiency_bcid, const SCT_SerialNumber &serial, const int side, const int chip) const
UnsignedIntegerProperty m_BSErrorDBMinStat
UnsignedIntegerProperty m_deadStripMinStatBusy
StatusCode getBSErrors ATLAS_NOT_THREAD_SAFE()
ToolHandle< ISCT_CalibHistoTool > m_calibHitmapTool
UnsignedIntegerProperty m_LorentzAngleMinStat
StringProperty m_runStartTime
FloatProperty m_noisyThr4DeadFinding
IntegerProperty m_nLbsMerged
StatusCode openXML4DeadSummary(std::ofstream &file, const char *type, int n_Module=0, int n_Link=0, int n_Chip=0, int n_Strip=0) const
BooleanProperty m_useBSError
StatusCode noisyStripsToSummaryXml(const std::map< Identifier, std::set< Identifier >> &moduleListAll, const std::map< Identifier, std::set< Identifier >> &moduleListRef, const std::string &badStripsFile) const
BooleanProperty m_doEfficiency
StringProperty m_runEndTime
BooleanProperty m_LorentzAngleDebugMode
bool notEnoughStatistics(const int required, const int obtained, const std::string &histogramName="HIST") const
SCTCalib(const std::string &name, ISvcLocator *pSvcLocator)
BooleanProperty m_noisyStripThrDef
std::ofstream m_outBSErrModule
FloatProperty m_noisyWaferThrBarrel
StringProperty m_rawOccupancySummaryFile
StringProperty m_BSErrorModuleFile
std::ofstream m_outEffSummary
StringProperty m_efficiencySummaryFile
IntegerProperty m_noisyStripLastRunInDB
FloatProperty m_quietThresholdStrip
StatusCode getEfficiency ATLAS_NOT_THREAD_SAFE()
StringProperty m_badModulesFile
ToolHandle< ISCT_CalibHistoTool > m_calibBsErrTool
BooleanProperty m_noisyWaferWrite
StringProperty m_BSErrorSummaryFile
FloatProperty m_noisyModuleAverageInDB
IntegerProperty m_maxtbins
FloatProperty m_noisyModuleDiff
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
StatusCode getNoisyStrip ATLAS_NOT_THREAD_SAFE()
std::string xmlChannelEfficiencyDataString(const Identifier &waferId, const float efficiency, const SCT_SerialNumber &serial, const int side) const
Basic time unit for IOVSvc. Hold time as a combination of run and event numbers.
StringArrayProperty m_input_hist
StatusCode closeXML4DB(std::ofstream &) const
BooleanProperty m_efficiencyDoChips
StringProperty m_efficiencyChipFile
BooleanProperty m_doRawOccupancy
unsigned long long m_numberOfEvents
unsigned long long m_numberOfEventsHist
FloatProperty m_noisyStripAverageInDB
Basic time unit for IOVSvc. Hold time as a combination of run and event numbers.
StatusCode addStripsToList(Identifier &waferId, std::set< Identifier > &stripIdList, bool isNoisy, bool isNew) const
IntegerProperty m_noisyModuleList
std::vector< TProfile2D * > m_pnoiseoccupancymapHistoVector
void efficiency(std::vector< double > &bins, std::vector< double > &values, const std::vector< std::string > &files, const std::string &histname, const std::string &tplotname, const std::string &label="")
BooleanProperty m_useMajority
BooleanProperty m_useConfiguration
StringProperty m_deadSummaryFile
StringProperty m_badStripsAllFile
def TProfile(*args, **kwargs)
UnsignedIntegerProperty m_deadChipSignificance
BooleanProperty m_useCalibration
ToolHandle< ISCT_ConfigurationConditionsTool > m_ConfigurationConditionsTool
::StatusCode StatusCode
StatusCode definition for legacy code.
std::ofstream m_outBSErrSummary
StringProperty m_noiseOccupancyFile
BooleanProperty m_doBSErrorDB
BooleanProperty m_writeToCool
virtual StatusCode stop ATLAS_NOT_THREAD_SAFE() override
BooleanProperty m_doNoiseOccupancy
StatusCode openXML4DB(std::ofstream &, const char *, const char *, const IOVTime &, const IOVTime &) const
IntegerProperty m_runNumber
std::string getLBList(const std::set< int > &LBList) const
StringProperty m_badStripsNewFile
BooleanProperty m_noisyWaferFinder
StringProperty m_LorentzAngleSummaryFile
BooleanProperty m_doDeadStrip
ToolHandle< ISCT_CalibModuleListTool > m_calibModuleListTool
StatusCode getRawOccupancy ATLAS_NOT_THREAD_SAFE()
StringProperty m_tagID4NoiseOccupancy
StatusCode getLorentzAngle ATLAS_NOT_THREAD_SAFE()
ToolHandle< ISCT_ReadCalibDataTool > m_ReadCalibDataTool
ToolHandle< ISCT_DetectorLevelConditionsTool > m_MajorityConditionsTool
ToolHandle< SCTCalibWriteTool > m_pCalibWriteTool
ToolHandle< ISCT_CalibHistoTool > m_calibLbTool
std::vector< std::vector< std::pair< int, int > > > m_summarytrips
FloatProperty m_noisyWaferThrECA
StatusCode wrapUpXML4Summary(std::ofstream &, const char *, std::ostringstream &) const
std::string getStripList(const std::set< Identifier > &stripIdList) const
StringProperty m_noiseOccupancySummaryFile
std::set< int > getNoisyChips(const std::set< Identifier > &stripIdList) const
BooleanProperty m_doDeadChip
std::vector< TProfile2D * > m_pnoiseoccupancymapHistoVectorECp
StringProperty m_LorentzAngleFile
BooleanProperty m_doHitMaps
FloatProperty m_noisyChipFraction
std::ofstream m_outDeadSummary
std::pair< std::string, float > getNoisyLB(const Identifier &moduleId, int &chipId) const
void doHVPrintXML(const std::pair< int, int > &timeInterval, const std::pair< int, int > &lbRange, Identifier)
doHVPrintXML() Prints XML file for hv modules
std::pair< int, bool > getNumNoisyStrips(const Identifier &waferId) const
BooleanProperty m_doBSErrors
StringProperty m_tagID4DeadStrips
std::vector< std::vector< std::pair< int, int > > > m_summarytripslb
StatusCode addToSummaryStr(std::ostringstream &, const Identifier &, const char *, const char *, const char *) const
UnsignedIntegerProperty m_noiseOccupancyMinStat
std::ofstream m_outDeadChips
FloatProperty m_noisyStripDiff
virtual StatusCode finalize() override
Finalize - delete any memory allocation from the heap.
BooleanProperty m_noisyUpdate
StatusCode addToXML4DB(std::ofstream &, const Identifier &, const char *, float, const char *) const
UnsignedIntegerProperty m_rawOccupancyMinStat
UnsignedIntegerProperty m_deadChipMinStat
BooleanProperty m_noisyWaferAllStrips
BooleanProperty m_deadNotQuiet
FloatProperty m_busyThr4DeadFinding
StringProperty m_deadChipsFile
StringProperty m_deadStripsFile
bool retrievedService(S &service) const
StatusCode getNoiseOccupancy ATLAS_NOT_THREAD_SAFE()
StatusCode getDeadStrip ATLAS_NOT_THREAD_SAFE()
FloatProperty m_noisyStripThrOnline
BooleanProperty m_noiseOccupancyTriggerAware
std::vector< TProfile * > m_h_phiVsNstripsSideHistoVector
UnsignedIntegerProperty m_deadStripMinStat
FloatProperty m_quietThresholdChip
FloatProperty m_noisyWaferFraction
std::ofstream m_outNOSummary
StringProperty m_tagID4NoisyStrips
std::vector< TProfile2D * > m_pnoiseoccupancymapHistoVectorECm
StringProperty m_efficiencyModuleFile
std::set< Identifier > getOverlapStripList(const std::set< Identifier > &stripAllIdList, const std::set< Identifier > &stripRefIdList) const
BooleanProperty m_deadChipUploadTest
FloatProperty m_noisyStripThrOffline
StatusCode noisyStripsToXml(const std::map< Identifier, std::set< Identifier > > &moduleList, const std::string &badStripsFile) const
ToolHandle< ISCT_CablingTool > m_CablingTool
BooleanProperty m_noisyUploadTest
UnsignedIntegerProperty m_noisyMinStat
BooleanProperty m_histBefore2010
StatusCode openXML4MonSummary(std::ofstream &, const char *) const
std::ofstream m_outDeadStrips
BooleanProperty m_doNoisyStrip
BooleanProperty m_doLorentzAngle
BooleanProperty m_noisyWriteAllModules
ToolHandle< ISCT_CalibEvtInfo > m_calibEvtInfoTool
std::string xmlChannelNoiseOccDataString(const Identifier &waferId, const float occupancy, const SCT_SerialNumber &serial) const
std::ofstream m_outROSummary
StringProperty m_tagID4DeadChips
virtual StatusCode execute() override
FloatProperty m_noisyWaferThrECC