```python #################### # Output # #################### # Configure SFs - read pruned objects from the pruned_ev and apply SFs and call the systematics weights = weight_manager(pruned_ev, self.SF_map, self.isSyst) # Configure systematics shifts if shift_name is None: systematics = ["nominal"] + list(weights.variations) # nominal + weight variation systematics else: systematics = [shift_name] # JES/JER systematics # Fill the weight to output arrys if not isRealData: pruned_ev["weight"] = weights.weight() for ind_wei in weights.weightStatistics.keys(): pruned_ev[f"{ind_wei}_weight"] = weights.partial_weight( include=[ind_wei] ) # Configure histograms- fill the histograms with pruned objects if not self.noHist: output = histo_writter( pruned_ev, output, weights, systematics, self.isSyst, self.SF_map ) # Output arrays - store the pruned objects in the output arrays if self.isArray: array_writer(self, pruned_ev, events, weights, systematics,dataset, isRealData) ```
Since the CI pipelines involve reading files via `xrootd` and access gitlab.cern.ch, you need to save some secrets in your forked directory. Yout can find the secret configuration in the direcotry : `Settings>>Secrets>>Actions`, and create the following secrets: - `GIT_CERN_SSH_PRIVATE`: 1. Create a ssh key pair with `ssh-keygen -t rsa -b 4096` (do not overwrite with your local one), add the public key to your CERN gitlab account 2. Copy the private key to the entry - `GRID_PASSWORD`: Add your grid password to the entry. - `GRID_USERCERT` & `GRID_USERKEY`: Encrypt your grid user certification `base64 -i ~/.globus/userkey.pem | awk NF=NF RS= OFS=` and `base64 -i ~/.globus/usercert.pem | awk NF=NF RS= OFS=` and copy the output to the entry.