-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added dictionary classes in EcalCondDB to be used in pyroot for the laser monitoring analysis #29240
Merged
cmsbuild
merged 10 commits into
cms-sw:master
from
organtin:GOFC-dictionary-classes-added
Apr 16, 2020
Merged
Added dictionary classes in EcalCondDB to be used in pyroot for the laser monitoring analysis #29240
Changes from 8 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
332b70e
Added features to list laser runs extracted from DB. Added dicionary …
organtin 1b06366
New dictionary classes added
organtin 1bba218
Added test script for dictionary classes to read data from the laser DB
organtin 09cce71
Merge branch 'master' into GOFC-dictionary-classes-added
organtin a043455
patch applied (still I need to understand why I need that, since I am…
organtin d1787d1
Merge branch 'GOFC-dictionary-classes-added' of https://github.com/or…
organtin 5110e56
Updated again IODConfig.h to comply with code rules (uff...)
organtin d83c7c6
patch applied
organtin 755abdf
removed the definition of the class from classes.h, following a presc…
organtin 97ee8d4
code-format patch applied
organtin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import ROOT | ||
import sys | ||
db_sid = 'CMS_OMDS_LB' | ||
db_usr = 'CMS_ECAL_LASER_COND' | ||
db_pwd = sys.argv[1] | ||
|
||
runMin = 309000 | ||
runMax = 999999 | ||
|
||
econn = ROOT.EcalCondDBInterface( db_sid, db_usr, db_pwd ) | ||
my_locdef = ROOT.LocationDef() | ||
my_locdef.setLocation("P5_Co") | ||
my_rundef = ROOT.RunTypeDef() | ||
my_rundef.setRunType("PHYSICS") | ||
|
||
runtag = ROOT.RunTag() | ||
runtag.setLocationDef(my_locdef) | ||
runtag.setRunTypeDef(my_rundef) | ||
runtag.setGeneralTag("GLOBAL") | ||
runlist = econn.fetchNonEmptyGlobalRunList( runtag, runMin, runMax ).getRuns() | ||
runs = [ runlist[i].getRunNumber() for i in range( runlist.size() ) ] | ||
print(runs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,11 @@ | ||||||||||||||||
#include "OnlineDB/EcalCondDB/interface/EcalCondDBInterface.h" | ||||||||||||||||
#include "OnlineDB/EcalCondDB/interface/RunTag.h" | ||||||||||||||||
#include "OnlineDB/EcalCondDB/interface/RunIOV.h" | ||||||||||||||||
|
||||||||||||||||
namespace OnlineDB_EcalCondDB { | ||||||||||||||||
struct dictionnary { | ||||||||||||||||
RunTag r1; | ||||||||||||||||
RunIOV r2; | ||||||||||||||||
EcalCondDBInterface e1; | ||||||||||||||||
}; | ||||||||||||||||
} // namespace OnlineDB_EcalCondDB | ||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
These are not needed anymore. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<lcgdict> | ||
<class name="RunIOV"/> | ||
<class name="RunTag"/> | ||
<class name="EcalCondDBInterface"/> | ||
</lcgdict> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would seem that these classes need to move to CondFormats?