Skip to content

Commit 9c5ad81

Browse files
committed
templates update and reset script
1 parent 7336e6c commit 9c5ad81

File tree

7 files changed

+97
-81
lines changed

7 files changed

+97
-81
lines changed

recastfrontend/asynctasks.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
from celery import shared_task
1+
#from celery import shared_task, task
2+
from recastsearch.sync import SyncService
3+
from celeryapp import app
24

3-
@shared_task
5+
# @shared_task
6+
@app.task
47
def hello_world():
58
print "hello world"
9+
print "*"*200
610

7-
@shared_task
11+
# @shared_task
812
def upload_to_zenodo(current_user, ORCID, reason_for_request, lhe_file):
913
url = "https://zenodo.org/api/deposit/depositions/?access_token={}".format(ZENODO_ACCESS_TOKEN)
1014

@@ -35,6 +39,8 @@ def upload_to_zenodo(current_user, ORCID, reason_for_request, lhe_file):
3539
deposition_file_response = requests.post(url_deposition_file, data=deposition_file_data, files=files)
3640

3741

38-
39-
42+
# @shared_task
43+
def sync_elasticsearch(elasticsearchconfig):
44+
sync = SyncService(elasticsearchconfig)
45+
sync.sync()
4046

recastfrontend/populate_db.py

Lines changed: 25 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@
5151
description="We report on a search for pair-produced particles both decaying into two jets, based on a data sample of 2.2/fb of proton-proton collisions collected at √s=7 TeV with the CMS detector at the LHC. We select events with at least four jets, require pairs of dijets with equal mass, and search for pair production of new particles. We set upper limits on the product of the resonance cross section, branching fraction into dijets, and acceptance. The cross section limit is compared with the predictions of a model of pair-produced colorons in which each coloron decays to qq~. We exclude pair production of colorons with mass between 320 and 580 GeV at 95% confidence level.",
5252
owner_id=user1.id,
5353
run_condition_id=run_condition1.id,
54-
doi="DOI:/example",
55-
uuid=str(uuid.uuid4())
54+
doi="DOI:/example"
5655
)
5756
db.session.add(analysis1)
5857
db.session.commit()
@@ -71,8 +70,7 @@
7170
e_print='http://recast.perimeterinstitute.ca/1502.05686',
7271
description='Results of a search for decays of massive particles to fully hadronic final states are presented. This search uses 20.3 fb−1 of data collected by the ATLAS detector in √s = 8 TeV proton–proton collisions at the LHC. Signatures based on high jet multiplicities without requirements on the missing transverse momentum are used to search for R-parity-violating supersymmetric gluino pair production with subsequent decays to quarks. The analysis is performed using a requirement on the number of jets, in combination with separate requirements on the number of b-tagged jets, as well as a topological observable formed from the scalar sum of the mass values of large-radius jets in the event. Results are interpreted in the context of all possible branching ratios of direct gluino decays to various quark flavors. No significant deviation is observed from the expected Standard Model backgrounds estimated using jet-counting as well as data- driven templates of the total-jet-mass spectra. Gluino pair decays to ten or more quarks via intermediate neutralinos are excluded for a gluino with mass mg ̃ < 1 TeV for a neutralino mass mχ ̃01 = 500 GeV. Direct gluino decays to six quarks are excluded for mg ̃ < 917 GeV for light-flavor final states, and results for various flavor hypotheses are presented.',
7372
owner_id=user1.id,
74-
run_condition_id=run_condition2.id,
75-
uuid = str(uuid.uuid4())
73+
run_condition_id=run_condition2.id
7674
)
7775
db.session.add(analysis2)
7876
db.session.commit()
@@ -84,16 +82,14 @@
8482
additional_information='Stealth SUSY is described in: 1105.5135 and 1201.4875. Existing LHC searches require photons (1210.2052) and/or leptons (1411.7255) or displaced decays (1504.03634), there have been no searches for the challenging case of prompt purely hadronic topologies. An LHE file will be provided upon request (contact: [email protected]). The first topology to consider is gluino decay to gluon + singlino, singlino decay to two jets plus soft gravitino (the left topology of figure 10 of 1201.4875). The parameters to vary are the gluino and singlino masses (fixing the singlet mass near the singlino mass). This leads to 3 jets on each side, but with different kinematics than the gluino > 3jet RPV topology. Additional topologies with more jets can also be considered. ',
8583
analysis_id=analysis2.id,
8684
requester_id=user1.id,
87-
zenodo_deposition_id="110959",
88-
uuid=str(uuid.uuid4())
85+
zenodo_deposition_id="110959"
8986
)
9087
db.session.add(request2)
9188
db.session.commit()
9289

9390
point_request2 = models.PointRequest(
9491
scan_request_id=request2.id,
95-
requester_id=user1.id,
96-
uuid = str(uuid.uuid4())
92+
requester_id=user1.id
9793
)
9894
db.session.add(point_request2)
9995
db.session.commit()
@@ -123,14 +119,12 @@
123119
db.session.commit()
124120

125121
scan_response2 = models.ScanResponse(
126-
scan_request_id = request2.id,
127-
uuid = str(uuid.uuid4())
122+
scan_request_id = request2.id
128123
)
129124
db.session.add(scan_response2)
130125
db.session.commit()
131126

132127
parameter_response2 = models.PointResponse(
133-
uuid = str(uuid.uuid4()),
134128
lower_1sig_expected_CLs = 1.2,
135129
lower_2sig_expected_CLs = 0.2,
136130
expected_CLs = 21.1,
@@ -146,7 +140,6 @@
146140

147141

148142
basic_response2 = models.BasicResponse(
149-
uuid = str(uuid.uuid4()),
150143
lower_1sig_expected_CLs = 9.2,
151144
lower_2sig_expected_CLs = 121.12,
152145
expected_CLs = 21.1,
@@ -197,8 +190,7 @@
197190
doi='10.1007/JHEP10(2013)189',
198191
description='The results of a search for pair production of supersymmetric partners of the Standard Model third-generation quarks are reported. This search uses 20.1 fb-1 of pp collisions at sqrt{s}=8 TeV collected by the ATLAS experiment at the Large Hadron Collider. The lightest bottom and top squarks (b1 and t1 respectively) are searched for in a final state with large missing transverse momentum and two jets identified as originating from b-quarks. No excess of events above the expected level of Standard Model background is found. The results are used to set upper limits on the visible cross section for processes beyond the Standard Model. Exclusion limits at the 95% confidence level on the masses of the third-generation squarks are derived in phenomenological supersymmetric R-parity-conserving models in which either the bottom or the top squark is the lightest squark. The b1 is assumed to decay via b1->b chi0 and the t via t1->b chipm, with undetectable products of the subsequent decay of the chipm due to the small mass splitting between the chipm and the chi0.',
199192
owner_id=user1.id,
200-
run_condition_id=run_condition3.id,
201-
uuid=str(uuid.uuid4())
193+
run_condition_id=run_condition3.id
202194
)
203195
db.session.add(analysis3)
204196
db.session.commit()
@@ -210,16 +202,14 @@
210202
additional_information='Additional files can be provided upon request.',
211203
analysis_id=analysis3.id,
212204
requester_id=user1.id,
213-
zenodo_deposition_id="110959",
214-
uuid=str(uuid.uuid4())
205+
zenodo_deposition_id="110959"
215206
)
216207
db.session.add(request3)
217208
db.session.commit()
218209

219210
point_request3 = models.PointRequest(
220211
scan_request_id=request3.id,
221-
requester_id=user1.id,
222-
uuid = str(uuid.uuid4())
212+
requester_id=user1.id
223213
)
224214
db.session.add(point_request3)
225215
db.session.commit()
@@ -263,8 +253,7 @@
263253
inspire_URL='http://cdsweb.cern.ch/record/1370064',
264254
description='The results of a search for new physics in events with two same-sign isolated leptons (electrons, muons, or hadronically decaying tau-leptons), hadronic jets, and missing transverse energy in the final state are presented. These results are based on analysis of a data sample with a corresponding integrated luminosity of 0.98~fb−1 produced in \Pp\Pp collisions at a center-of-mass energy of 7~TeV collected by the CMS experiment at the LHC. The observed numbers of events agree with the standard model predictions, and no evidence for new physics is found. These observations are used to set upper limits on the number of events from new physics contributions and to constrain supersymmetric models.',
265255
owner_id=user1.id,
266-
run_condition_id=run_condition4.id,
267-
uuid=str(uuid.uuid4())
256+
run_condition_id=run_condition4.id
268257
)
269258
db.session.add(analysis4)
270259
db.session.commit()
@@ -276,16 +265,14 @@
276265
additional_information='I will provide ZIP files upon request',
277266
analysis_id=analysis4.id,
278267
requester_id=user1.id,
279-
zenodo_deposition_id="110959",
280-
uuid=str(uuid.uuid4())
268+
zenodo_deposition_id="110959"
281269
)
282270
db.session.add(request4)
283271
db.session.commit()
284272

285273
point_request4 = models.PointRequest(
286274
scan_request_id=request4.id,
287-
requester_id=user1.id,
288-
uuid=str(uuid.uuid4())
275+
requester_id=user1.id
289276
)
290277
db.session.add(point_request4)
291278
db.session.commit()
@@ -315,14 +302,12 @@
315302
db.session.commit()
316303

317304
scan_response4 = models.ScanResponse(
318-
uuid = str(uuid.uuid4()),
319305
scan_request_id = request4.id
320306
)
321307
db.session.add(scan_response4)
322308
db.session.commit()
323309

324310
parameter_response4 = models.PointResponse(
325-
uuid = str(uuid.uuid4()),
326311
lower_1sig_expected_CLs = 12.1,
327312
lower_2sig_expected_CLs = 21.4,
328313
expected_CLs = 0.1,
@@ -337,7 +322,6 @@
337322
db.session.commit()
338323

339324
basic_response4 = models.BasicResponse(
340-
uuid = str(uuid.uuid4()),
341325
lower_1sig_expected_CLs = 1.2,
342326
lower_2sig_expected_CLs = 21.3,
343327
expected_CLs = 21.3,
@@ -377,16 +361,14 @@
377361
additional_information='Request follows http://arxiv.org/abs/1202.6616',
378362
analysis_id=analysis4.id,
379363
requester_id=user1.id,
380-
zenodo_deposition_id="110959",
381-
uuid=str(uuid.uuid4())
364+
zenodo_deposition_id="110959"
382365
)
383366
db.session.add(request4_2)
384367
db.session.commit()
385368

386369
point_request4_2 = models.PointRequest(
387370
scan_request_id=request4_2.id,
388-
requester_id=user1.id,
389-
uuid=str(uuid.uuid4())
371+
requester_id=user1.id
390372
)
391373
db.session.add(point_request4_2)
392374
db.session.commit()
@@ -415,14 +397,12 @@
415397
db.session.commit()
416398

417399
scan_response4_2 = models.ScanResponse(
418-
uuid = str(uuid.uuid4()),
419400
scan_request_id = request4_2.id
420401
)
421402
db.session.add(scan_response4_2)
422403
db.session.commit()
423404

424405
parameter_response4_2 = models.PointResponse(
425-
uuid = str(uuid.uuid4()),
426406
lower_1sig_expected_CLs = 12.2,
427407
lower_2sig_expected_CLs = 10.1,
428408
expected_CLs = 32.1,
@@ -437,7 +417,6 @@
437417
db.session.commit()
438418

439419
basic_response4_2 = models.BasicResponse(
440-
uuid = str(uuid.uuid4()),
441420
lower_1sig_expected_CLs = 21.2,
442421
lower_2sig_expected_CLs = 32.1,
443422
expected_CLs = 32.2,
@@ -485,8 +464,7 @@
485464
inspire_URL='http://inspirehep.net/search?p=find%20eprint%201201.109',
486465
description='An inclusive search for anomalous production of two prompt, isolated muons with the same electric charge is presented. The search is performed in a data sample corresponding to 1.6 fb^-1 of integrated luminosity collected in 2011 at sqrt(s) = 7 TeV with the ATLAS detector at the LHC. Muon pairs are selected by requiring two isolated muons of the same electric charge with pT > 20 GeV and abs(eta) < 2.5. Minimal requirements are placed on the rest of the event activity. The distribution of the invariant mass of the muon pair m(mumu) is found to agree well with the background expectation. Upper limits on the cross section for anomalous production of two muons with the same electric charge are placed as a function of m(mumu) within a fiducial region defined by the event selection. The fiducial cross- section limit constrains the like-sign top-quark pair-production cross section to be below 3.7 pb at 95% confidence level. The data are also analyzed to search for a narrow like-sign dimuon resonance as predicted for e.g. doubly charged Higgs bosons (H++/H--). Assuming pair production of H++/H-- bosons and a branching ratio to muons of 100% (33%), this analysis excludes masses below 355 (244) GeV and 251 (209) GeV for H++/H-- bosons coupling to left-handed and right-handed fermions, respectively.',
487466
owner_id=user1.id,
488-
run_condition_id=run_condition5.id,
489-
uuid=str(uuid.uuid4())
467+
run_condition_id=run_condition5.id
490468
)
491469
db.session.add(analysis5)
492470
db.session.commit()
@@ -498,16 +476,14 @@
498476
additional_information='I will provide LHE files upon request',
499477
analysis_id=analysis5.id,
500478
requester_id=user1.id,
501-
zenodo_deposition_id="110959",
502-
uuid=str(uuid.uuid4())
479+
zenodo_deposition_id="110959"
503480
)
504481
db.session.add(request5)
505482
db.session.commit()
506483

507484
point_request5 = models.PointRequest(
508485
scan_request_id=request5.id,
509-
requester_id=user1.id,
510-
uuid=str(uuid.uuid4())
486+
requester_id=user1.id
511487
)
512488
db.session.add(point_request5)
513489
db.session.commit()
@@ -543,16 +519,14 @@
543519
additional_information='Request follows http://arxiv.org/abs/1202.6616',
544520
analysis_id=analysis5.id,
545521
requester_id=user1.id,
546-
zenodo_deposition_id="110959",
547-
uuid=str(uuid.uuid4())
522+
zenodo_deposition_id="110959"
548523
)
549524
db.session.add(request5_2)
550525
db.session.commit()
551526

552527
point_request5_2 = models.PointRequest(
553528
scan_request_id=request5_2.id,
554-
requester_id=user1.id,
555-
uuid=str(uuid.uuid4())
529+
requester_id=user1.id
556530
)
557531
db.session.add(point_request5_2)
558532
db.session.commit()
@@ -596,8 +570,7 @@
596570
inspire_URL='http://inspirehep.net/record/930002',
597571
description='A search for squarks and gluinos in events containing jets, missing transverse momentum and no electrons or muons is presented. The data were recorded in 2011 by the ATLAS experiment in sqrt(s)=7 TeV proton-proton collisions at the Large Hadron Collider. No excess above the Standard Model background expectation is observed in 1.04 fb^-1 of data. Gluino and squark masses below 700 GeV and 875 GeV respectively are excluded at the 95% confidence level in simplified models containing only squarks of the first two generations, a gluino octet and a massless neutralino. The exclusion limit increases to 1075 GeV for squarks and gluinos of equal mass. In MSUGRA/CMSSM models with tan(beta)=10, A_0=0 and mu> 0, squarks and gluinos of equal mass are excluded for masses below 950 GeV. These limits extend the region of supersymmetric parameter space excluded by previous measurements.',
598572
owner_id=user1.id,
599-
run_condition_id=run_condition6.id,
600-
uuid=str(uuid.uuid4())
573+
run_condition_id=run_condition6.id
601574
)
602575
db.session.add(analysis6)
603576
db.session.commit()
@@ -609,16 +582,14 @@
609582
additional_information='I will provide LHE files on request.',
610583
analysis_id=analysis6.id,
611584
requester_id=user1.id,
612-
zenodo_deposition_id="110959",
613-
uuid=str(uuid.uuid4())
585+
zenodo_deposition_id="110959"
614586
)
615587
db.session.add(request6)
616588
db.session.commit()
617589

618590
point_request6 = models.PointRequest(
619591
scan_request_id=request6.id,
620-
requester_id=user1.id,
621-
uuid=str(uuid.uuid4())
592+
requester_id=user1.id
622593
)
623594
db.session.add(point_request6)
624595
db.session.commit()
@@ -654,16 +625,14 @@
654625
additional_information='No information available',
655626
analysis_id=analysis6.id,
656627
requester_id=user1.id,
657-
zenodo_deposition_id="110959",
658-
uuid=str(uuid.uuid4())
628+
zenodo_deposition_id="110959"
659629
)
660630
db.session.add(request6_2)
661631
db.session.commit()
662632

663633
point_request6_2 = models.PointRequest(
664634
scan_request_id=request6_2.id,
665-
requester_id=user1.id,
666-
uuid=str(uuid.uuid4())
635+
requester_id=user1.id
667636
)
668637
db.session.add(point_request6_2)
669638
db.session.commit()
@@ -699,16 +668,14 @@
699668
additional_information='Useful initial results could assume that the LKP mass is much less than the KK squark or KK gluon masses. In this regime the bounds are roughly independent of the precise LKP mass. The production cross sections will be larger for the KK particles than for SUSY analogues, because they contain more spin degrees of freedom, and the efficiencies for detecting the signal events are likely to be somewhat different from SUSY analogues because of the differing spins. ',
700669
analysis_id=analysis6.id,
701670
requester_id=user1.id,
702-
zenodo_deposition_id="110959",
703-
uuid=str(uuid.uuid4())
671+
zenodo_deposition_id="110959"
704672
)
705673
db.session.add(request6_3)
706674
db.session.commit()
707675

708676
point_request6_3 = models.PointRequest(
709677
scan_request_id=request6_3.id,
710-
requester_id=user1.id,
711-
uuid=str(uuid.uuid4())
678+
requester_id=user1.id
712679
)
713680
db.session.add(point_request6_2)
714681
db.session.commit()

0 commit comments

Comments
 (0)